Commits

Robert Mařík  committed 1c61842

fix for missing Sage commands for picture - bug introduced when initiating PNG support

  • Participants
  • Parent commits 5d62fb3

Comments (0)

Files changed (1)

File tex4ht-sage.cfg

 \makeatletter
 \let\orisage\sage
 \let\orisagestr\sagestr
-\let\oriST@sageplot\ST@sageplot
 \newtoks\sagetextoks
 \def\sage#1{\orisage{#1}\savesage{#1}}%
 \def\sagestr#1{\orisagestr{#1}\savesage{#1}}%
-\def\ST@sageplot[#1][#2]#3{\savesage{show(#3)}\oriST@sageplot[#1][#2]{#3}}
 \def\savesage#1{\expandafter\global\expandafter\sagetextoks
   \expandafter{\the\sagetextoks \HCode{<sage>\Hnewline
     }\HCode{#1\Hnewline}\HCode{</sage>\Hnewline
          \gdef\ST@rerun{x}}}%
     {\ST@inclgrfx{#1}{eps}}}%
 \fi
-\stepcounter{ST@plot}}
+\stepcounter{ST@plot}%
+\savesage{show(#3)}}
 
 \makeatother