[tex4ht] tex4ht vs pgf
Victor Ivrii
vivrii at gmail.com
Thu Apr 3 20:02:29 CEST 2014
On Fri, Apr 4, 2014 at 4:24 AM, Bernd-Peter Paris <pparis at gmu.edu> wrote:
>
> for what it's worth, if you replace
>
> \def\pgfsys at svg@newline{\Hnewline}
>
> with
>
> \def\pgfsys at svg@newline{{?nl}}
>
> in texmf/tex/generic/pgf/systemlayer/pgfsys-tex4ht.def then the error
> goes away and (my) documents come out right - even if I use tikz for
> drawing something like a block diagram. I don't know if this is the correct
> way of fixing the problem.
>
> I found the latter definition in
> texmf/tex/generic/pgf/systemlayer/pgfsys-dvisvgm.def.
>
> I'll go ahead and file a bug report with the pgf folks.
>
>
>
I confirm that this patch works.
There are other issues:
1) Command \centering is not honored
2) If I use package subfig and do not add any \capture subfloat numbers
like (a) (b) etc are not reset after \end{figure}
Example demonstrating these two errors (after above patch applied)
\documentclass[12pt]{article}
\usepackage{pgf,tikz}
\usepackage{subfig}
\begin{document}
\begin{figure}[ht]
\centering
\subfloat[red circle]{%
\begin{tikzpicture}
\fill[red] (0,0) circle (1);
\end{tikzpicture}}
\qquad
\subfloat[blue circle]{%
\begin{tikzpicture}
\fill[blue] (0,0) circle (1);
\end{tikzpicture}}
\end{figure}
\begin{figure}[ht]
\centering
\subfloat[red square]{%
\begin{tikzpicture}
\fill[red] (0,0) rectangle (1,1);
\end{tikzpicture}}
\qquad
\subfloat[blue square]{%
\begin{tikzpicture}
\fill[blue] (0,0) rectangle (1,1);
\end{tikzpicture}}
\end{figure}
\end{document}
--
Victor Ivrii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex4ht/attachments/20140404/da4e662e/attachment.html>
More information about the tex4ht
mailing list