[tex4ht] Use Original \label as Anchor Text

Allen Barnett allen at transpireinc.com
Sat Sep 26 02:12:12 CEST 2009

On Fri, 2009-09-25 at 18:35 -0500, Karl Berry wrote:
> What I actually do in the TL manual is this (when processing with
> tex4ht):
> \def\htmlanchor#1{\HCode{<a id="#1"></a>}}
> I also define \htmlanchor to just gobble its argument when processing
> otherwise, since \HCode wouldn't be defined.  (Of course there are other
> ways to conditionalize it.)
> Bottom line: you can use \HCode{...} to insert literal HTML into your
> document.

That works great!

Thanks, Karl.

Allen Barnett
Transpire, Inc
E-Mail: allen at transpireinc.com
Skype:  allenbarnett

More information about the tex4ht mailing list