As the following trivial example shows, this problem still hasn't been fixed in texlive 2016.
\documentclass{mathquiz}\usepackage{tikz}\def\pgfsysdriver{pgfsys-tex4ht.def}\begin{document}\begin{tikzpicture}\draw(0,0)--(10,0);
\foreach\x in {1,...,9}\draw[thin](\x,0.2)--(\x,-0.2);
\end{tikzpicture}\end{document}
Compiling this with htlatex qtikz.tex "xhtml,html5" results in multiple instances of the error
I just checked that the pgfsys-tex4ht.def currently at version 1.25 in CVS doesn't have the fix. So here's the trivial patch, which works for me too:
Last edit: Respawned Fluff 2014-07-31
this solution would add
{?nl}
string in the place of newlines. we may useinstead, this will insert correct newlines in the svg file
As the following trivial example shows, this problem still hasn't been fixed in texlive 2016.
Compiling this with
htlatex qtikz.tex "xhtml,html5"
results in multiple instances of the errorThe trivial patch supplied by Miachel fixes the problem.
Incidentally, it would be good to have tikz set
\def\pgfsysdriver{pgfsys-tex4ht.def}
when tex4ht is being used.Bug still present with un up to date TL 2017, as shown by the following MCE (to be compiled with
htlatex test.tex
):Here is my file list:
Last edit: Denis Bitouzé 2017-07-06
Thank you for reporting. This is fixed now.