On Thu, Jul 21, 2011 at 1:55 PM, Johannes Wilm <[email protected]>wrote:

> On Wed, Jul 20, 2011 at 1:55 PM, Johannes Wilm <[email protected]>wrote:
>
>> If I remove the external legend argument ("legend to
>> name=govconsumptionlegend") the page compiles fine also during the 2nd run.
>
>
> 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.
> ...
>

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:

\def\pgfplots@label#1#2{%
        \begingroup
        \edef\@currentlabel{%
                \string\expandafter
%                \string\protect
%                \string\csname\space #2#1\string\endcsname
        }%
        \pgfutil@ifundefined{hyper@makecurrent}{}{%
                \hyper@makecurrent{pgfplotslink}%
                \hyper@anchorstart{\@currentHref}{}\hyper@anchorend
                \pgfplotsutil@advancestringcounter@global\c@pgfplots@label
        }%
        \expandafter\label\expandafter{#1}%
        \endgroup
}%

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.



-- 
Johannes Wilm
http://www.johanneswilm.org
tel: +1 (520) 399 8880

Reply via email to