TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

tex4ht generates a page head and foot with navigation elements, such as [next] [tail] [up] with hyperlinks.

Now I would like to change that appearance to have the page heading left and right of the title:

[prev] My second section [next]

instead of

[prev] [next]

My second section

and (challange!) in the foot:

[prev] My first section <-            -> My third section [next]

where My first section is the name of the previos section and similar with My third section

share|improve this question
I found an obscure reference to \Configure{crosslinks}{}{}{}{}{}{}{}{} (eight parameters!) which seems to configure the way the navigation links behave. Unfortunately I never got tex4ht to work, so I can't test it. :( – Paulo Cereda Feb 4 '12 at 21:01

Your first question is not so hard. Just create dummy sty file, testcrosslink.sty for example, testcrosslink.4ht and put \usepackage{testcrosslink} to your document preamble.

Content of testcrosslink.4ht:



This configuration makes top crosslinks empty and redefines section to include links to previous and next file.

To change bottom crosslinks, you can try this:

\Configure{crosslinks}{}{}{ -> \macrofornexttitle [next]}{[prev] \macroforprevtitle <- }{}{}{}{}

For more information about various configuration options for crosslinks etc., see the CVR's blog

Problem is, I don't know how to automatically retrieve contents of prev and next sections, so how to define macros \macrofornexttitle and \macroforprevtitle must answer someone else. Maybe it could be done using nameref or zref and automatically generated labels, but what I have tried failed.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.