On Wed, Jul 20, 2011 at 1:55 PM, Johannes Wilm <span dir="ltr"><<a href="mailto:mail@johanneswilm.org">mail@johanneswilm.org</a>></span> wrote:<br><div class="gmail_quote"><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>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><br></div><div>So changing current the current lines 1544-1548:</div><div><br></div><div><div><i>\Configure{ref}</i></div><div><i>   {\Link}</i></div><div><i>   {\ifx \RefArg\:UnDef\else</i></div><div><i>      \Tg<!--tex4ht:ref: \RefArg\space-->\fi\EndLink}</i></div>
<div><i>   {}</i></div></div><div><br></div><div>to</div><div><br></div><div><div><i>\Configure{ref}</i></div><div><i>   {}</i></div><div><i>   {\ifx \RefArg\:UnDef\else</i></div><div><i>      \Tg<!--tex4ht:ref: \RefArg\space-->\fi\EndLink}</i></div>
<div><i>   {}</i></div></div><div><br></div><div>Means that it compiles fine. That means it is in the <i>\Link</i> 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? </div>
<div> </div><div> </div></div>-- <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>