Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to pass arguments to dvisvgm through engine.opts (fixes #2038) #2039

Merged
merged 4 commits into from
Aug 28, 2021

Conversation

andrewheiss
Copy link
Contributor

When using fig.ext="svg" with a TikZ chunk, it is now possible to pass additional arguments and flags to the dvisvgm command, like --font-format=X for embedding fonts, or --no-fonts for converting all text to outlines. A chunk like this will now convert to an SVG with embedded fonts, for instance:

```{tikz example, fig.ext="svg", engine.opts=list(dvisvgm.opts = "--font-format=woff")}
\usetikzlibrary{positioning}
\begin{tikzpicture}
\node (X) at (0,0) {$X_{it}$};
\end{tikzpicture}
```

@CLAassistant
Copy link

CLAassistant commented Aug 28, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Owner

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I'll merge tomorrow or next Monday (this new feature needs to be mentioned in NEWS.md; it'll be great if you could add a bullet there). Thanks!

@yihui yihui added the next Issues/PRs considered for the next release label Aug 28, 2021
@yihui yihui merged commit fad3ead into yihui:master Aug 28, 2021
@andrewheiss andrewheiss deleted the dvisvgm branch August 30, 2021 14:49
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
next Issues/PRs considered for the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants