Skip to content

HTML output with quarto and tikz too small and not cross-referenced #52

@amael-ls

Description

@amael-ls

Hello, I am having two problems with diagram converting a tikz figure within a quarto document:

  1. The font of the html output is too small (but is of normal size in pdf output)
  2. The reference does not work for both html and pdf output

Here is a MWE:

---
title: "A tikz diagram extension test"
filters:
  - diagram
---

## Test section

Hello, please see \ref{fig-delta} and @fig-delta

```tikz
%%| label: fig-delta
%%| caption: A test
\begin{tikzpicture}
	\node (a) at (0, 0) {a};
	\node (b) at (2, 0) {b};
	\draw (a) -- (b);
\end{tikzpicture}
```

And here is the output (I am using firefox)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions