The following example aims to produce an svg output, using tikz library animations
.
% main.tex
\documentclass[tikz, dvisvgm]{standalone}
\usetikzlibrary{animations}
\begin{document}
\tikz \node
:fill opacity = {0s="0", 5s="1"}
:rotate = {6s="0", 10s="360", repeats, restart=false}
[fill=blue!20, draw=blue, ultra thick, circle] {Hello!};
\end{document}
In the tex -> dvi/xdv
process, xelatex -no-pdf main
produces latex3 error
! LaTeX3 Error: Backend request inconsistent with engine: using 'xdvipdfmx'
(LaTeX3) backend.
But both pdflatex -output-format=dvi main
and lualatex -output-format=dvi main
work fine. I am using
- LaTeX2e <2020-02-02> patch level 2
- L3 programming layer <2020-02-14>
This might be related to LaTeX2e release 2020-02-02, since in this release expl3
is packaged into latex format.
Question
Why the example works for both pdflatex and lualatex, but not xelatex? Is this a problem?
Workaround
Clear the latex3 inner macro storing backend name before \documentclass
fixes the problem.
\ExplSyntaxOn
\str_clear:N \c_sys_backend_str
\ExplSyntaxOff
\documentclass[tikz, dvisvgm]{standalone}
... ...