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

Documented tikz option dvisvgm is not supported #1281

Open
muzimuzhi opened this issue Sep 23, 2023 · 1 comment
Open

Documented tikz option dvisvgm is not supported #1281

muzimuzhi opened this issue Sep 23, 2023 · 1 comment
Labels

Comments

@muzimuzhi
Copy link
Member

Brief outline of the bug

Current state:

  • In sec. 10.2.4 "Producing SVG Output", the pgfmanual reads

    If the option dvisvgm is given to the tikz package, this driver gets selected (normally, the driver selected by graphics would be used).

  • But tikz.sty declares no options.
  • As a package option, dvisvgm is only known to pgfsys.sty.
    \DeclareOption{dvisvgm}{\def\pgfsysdriver{pgfsys-dvisvgm.def}}
  • Hence currently to use dvisvgm driver (for tikz or pgf LaTeX package), one has to either defining \def\pgfsysdriver{pgfsys-dvisvgm.def} or using it as a class option. (LaTeX packages won't throw errors for unknown global/class options.)

Some history:

  • Commit 10624dc (*** empty log message ***, 2013-08-23) added package option dvisvgm for pgf.sty and the corresponding doc mentioned above. (Yes, the option was added to pgf.sty, but documented for tikz.sty.)
  • Commit ab8bbb5 (fixed Vertex.lua anchoring problem, 2013-12-18) moved option dvisvgm from pgf.sty to pgfsys.sty.

Proposal:

  • Add tikz package option dvisvgm (how to treat the same option in pgfsys?)
  • Revise related doc since graphicx package now supports dvisvgm driver (hence \PassOptionsToPackage{dvisvgm}{graphicx} is another possibility).

Minimal working example (MWE)

% !TeX program = latex
\documentclass{article}
\usepackage[dvisvgm]{tikz}

\begin{document}
\end{document}
@muzimuzhi
Copy link
Member Author

  • Add tikz package option dvisvgm (how to treat the same option in pgfsys?)

One possibility is to add dummy option dvisvgm to both tikz.sty and pgf.sty.

\DeclareOption{dvisvgm}{} % will be used later in pgfsys.sty

\ProcessOptions % tikz.sty needs this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant