# [tex4ht] tex4ht with pgfplots and external legends

Johannes Wilm mail at johanneswilm.org
Thu Jul 21 22:55:21 CEST 2011

On Wed, Jul 20, 2011 at 1:55 PM, Johannes Wilm <mail at johanneswilm.org>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.

So changing current the current lines 1544-1548:

*\Configure{ref}*
*   {\ifx \RefArg\:UnDef\else*
*   {}*

to

*\Configure{ref}*
*   {}*
*   {\ifx \RefArg\:UnDef\else*
*   {}*

Means that it compiles fine. That means it is in the *\Link* part. I've
tried grepping for "Link" but I can that that is used rather extensively, so
if anyone on here has a clue that probably would save a bit of time. On a
more abstract level, it seems that the "\ref" possibly is usd rather
creatively by this package. Normally one would expect a simple textual
reference, but in this case the \ref is placed wherever one wants the legend
to go. it seems that tex4ht is trying to turn all these links into
hyperlinks, which really would make no sense whatsoever in this case. May
that be the cause of what is going wrong here?

--
Johannes Wilm
http://www.johanneswilm.org
tel: +1 (520) 399 8880
-------------- next part --------------
An HTML attachment was scrubbed...