[tex4ht] TOC as an HTML aside

Michal Hoftich michal.h21 at gmail.com
Wed Jun 1 12:48:25 CEST 2016

Hi Hans,

> I would like to see the table of contents of my TeX document displayed
> as some kind of navigation menu, probably as an HTML aside in a fixed
> position on the side of the page.  I am sure I can hack it up with a
> bit of scripting, but I am not sure which is the best approach to start.

you can create such navigational menu using simple CSS:

\Css{body{max-width:40em;margin:0 auto;}}
\Css{@media (max-width:64em){

This will make centered document with sidepanel, which will collapse
when the browser windows is too small.

With scripting, you can create something more interesting see:


Best regards,

More information about the tex4ht mailing list