michal-h21 / dvisvgm4ht

TikZ driver for tex4ht which uses dvisvgm for the SVG production
10 stars 1 forks source link

Undefined control sequence with \pgfuseshading inside pgfpicture #3

Closed dcpurton closed 4 years ago

dcpurton commented 5 years ago

\pgfuseshading generates an undefined control sequence when used inside a pgfpicture environment:

! Undefined control sequence.
\b:tikzpicture ...fined \EndPicture \end@pict@cmd 
                                                  \fi 
l.8 ...oint{1cm}{0cm}] {\pgfuseshading{myshadingD}
                                                  }
? 

MWE

This example is taken from the pgf manual.

\documentclass{article}
\def\pgfsysdriver{pgfsys-dvisvgm4ht.def}
\usepackage{pgf}
\begin{document}
\begin{pgfpicture}
  \pgfdeclareverticalshading{myshadingD}
  {20pt}{color(0pt)=(red); color(20pt)=(blue)}
  \pgftext[at=\pgfpoint{1cm}{0cm}] {\pgfuseshading{myshadingD}}
  \pgftext[at=\pgfpoint{2cm}{0.5cm}]{\pgfuseshading{myshadingD}}
\end{pgfpicture}
\end{document}
dcpurton commented 5 years ago

Sorry! Should have mentioned that this occurs with the development version of pgf, not with the version 3.1.1 which I currently have installed.

It seems to happen in other situations too.

michal-h21 commented 5 years ago

No, there is an error. There was missing parameter for the \Picture command, so it ate an \fi command. It should be fixed now.

dcpurton commented 5 years ago

Thanks, this is fixed in my tests.

Iey4iej3 commented 4 years ago

Since it is said fixed, let us close this issue.

michal-h21 commented 4 years ago

@Iey4iej3 you are right, thanks for reminding me.