<br><div class="gmail_quote">On Thu, Jul 21, 2011 at 1:55 PM, Johannes Wilm <span dir="ltr"><<a href="mailto:mail@johanneswilm.org">mail@johanneswilm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, Jul 20, 2011 at 1:55 PM, Johannes Wilm <span dir="ltr"><<a href="mailto:mail@johanneswilm.org" target="_blank">mail@johanneswilm.org</a>></span> wrote:<br></div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If I remove the external legend argument ("legend to name=govconsumptionlegend") the page compiles fine also during the 2nd run.</blockquote><div><br></div></div><div>Being a bit scared that no-one might have the answer, I've started to debug a bit myself. So far I've gotten to that if I remove line 1545 in html4.4ht it compiles without failures.</div>

<div>...</div></div></blockquote><div><br></div><div>In the file pgfplots.code.tex I have to comment out lines 3944-45 like this for it to compile. That obviously also makes the legends disappear:</div><div><br></div><div>
\def\pgfplots@label#1#2{%</div><div>        \begingroup</div><div>        \edef\@currentlabel{%</div><div>                \string\expandafter</div><div>%                \string\protect</div><div>%                \string\csname\space #2#1\string\endcsname</div>
<div>        }%</div><div>        \pgfutil@ifundefined{hyper@makecurrent}{}{%</div><div>                \hyper@makecurrent{pgfplotslink}%</div><div>                \hyper@anchorstart{\@currentHref}{}\hyper@anchorend</div>
<div>                \pgfplotsutil@advancestringcounter@global\c@pgfplots@label</div><div>        }%</div><div>        \expandafter\label\expandafter{#1}%</div><div>        \endgroup</div><div>}%</div><div><br></div><div>
Doing that, it mostly compiles the way I expect it to do and I actually get a working html-file. But the graphs are gone and I wonder: Is pgpfplots actually supported by tex4ht? If not, I think I need to experiment with "externalizing" the graphs.</div>
<div><br></div><div><br></div></div><br>-- <br>Johannes Wilm<br><a href="http://www.johanneswilm.org" target="_blank">http://www.johanneswilm.org</a><br>tel: +1 (520) 399 8880<br><div style="display:inline"></div><br>