Index
Go up to Controlling Hyperlatex
Go forward to Customizing the navigation panels

Splitting into nodes and menus

Normally, the HTML output for your document document.tex are created in files document_?.html in the same directory. You can change both the name of these files as well as the directory using the two commands \htmlname and \htmldirectory in the preamble of your source file:
  \htmldirectory{directory}
  \htmlname{basename}
The actual files created by Hyperlatex are called directory/basename.html, directory/basename_1.html, directory/basename_2.html, and so on. The filename can be changed for individual nodes using the \xname command.

  Hyperlatex automatically partitions the document into several nodes. This is done based on the LaTeX sectioning. The section commands \chapter, \section, \subsection, \subsubsection, \paragraph, and \subparagraph are assigned levels 1 to 6. (If you use the article document style, \section to \subparagraph are given levels 1 to 5, as there are no chapters).

The \htmldepth command in the preamble determines at what depth separate nodes are created. The default setting is 4, which means that (for article style) sections, subsections, and subsubsections are given their own nodes, while paragraphs and subparagraphs are put into the node of their parent subsection. You can change this by putting

  \htmldepth{depth}
in the preamble. A value of 1 means that the full document will be stored in a single file.

  The individual nodes of a HTML document are linked together using hyperlinks. Hyperlatex automatically places buttons on every node that link it to the previous and next node of the same depth, if they exist, and a button to go to the parent node.

Furthermore, Hyperlatex automatically adds a menu to every node, containing pointers to all subsections of this section. (Here, "section" is used as the generic term for chapters, sections, subsections, ....) This may not always be what you want. You might want to add nicer menus, with a short description of the subsections. In that case you can turn off the automatic menus by putting

  \htmlautomenu{0}
in the preamble. On the other hand, you might also want to have more detailed menus, containing not only pointers to the direct subsections, but also to all subsubsections and so on. This can be achieved by putting
  \htmlautomenu{depth}
in the preamble, where depth is the desired depth of recursion. The default behavior corresponds to a depth of 1.

Remember that all commands in the preamble must start at the beginning of a line if you want Hyperlatex to see them.


otfried@postech.vision.ac.kr

Up Next