Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When compiling a file with tex4ht, the sections are transformed with header HTML tags with anchor. So, if I compile


with latex, tex4ht, I obtain the following html code

<h3>[...]<a id="x1-10001"></a>Hello</h3>

Is it possible to move the anchor tag to the end, and to make it non empty? Specifically, I would like something like:

<h3>[...]Hello<a class="anchor" id="x1-10001">¶</a></h3>

Is that possible?

share|improve this question
Anchor id's are rather hardwired, I believe it is hard to change the way it gets inserted since it is the only mechanism through which TeX4ht tracks various anchor points by making use of \jobname.xref. This is very much used to track and cross-link various linkable items correctly even if the html output is split into several different files with \CutAt{...} command, the argument of which can by any logical sectional unit or chapter. – CV Radhakrishnan Oct 9 '12 at 23:58
I take it that it is impossible to achieve what I want to do? – Olivier Oct 10 '12 at 10:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.