hcomp can also generate LaTeX files containing the complete reference manuals adapted to the different supported programming languages, i.e. the description of the operators is provided in a specific syntax. Use
hcomp -Rlatex:plang [-ppackage] [-llang] [-aauthor-info] [-fcopyright-footer] def-files
to create LaTeX files. plang can be set to c, cpp, com, dotnet, and hdevelop (HDevelop syntax). hdevelop is default and may therefore be omitted. The package name specified with [-p] is used for the title page of the manual.
The information passed with the parameter -a appears in the PDF version of the manual (see below) in the field “Author” of the dialog describing the document. With the parameter -f you can pass a string, which then appears on the back side of the title page. A typical use of this parameter is to print a copyright notice.
The generated LaTeX files use the package halcon_reference_en_US.sty (or similar for other languages). This package resides in the directory $HALCONROOT/doc/macros (Linux notation). You must include this directory in the environment variable TEXINPUTS. If the variable is empty, set it to:
:$HALCONROOT/doc/macros
Otherwise LaTeX will be unable to find it (typical error message: File `halcon_reference_en_US.sty' not found.
The LaTeX file(s) can be transformed into PDF files by using pdflatex and makeindex. Note, that pdflatex must be called several times to get the references right; to get a correct table of context and index the sequence of calls is pdflatex - pdflatex - makeindex - pdflatex - pdflatex.
The generated PDF contains interactive bookmarks and hyperlinks similar to the HTML version (and the author information passed with the parameter -a). Note, that this functionality requires that your LaTeX distribution includes the package hyperref; if this package exists but is too old, a warning will be issued, as this can result in errors during the LaTeX process or in suboptimal PDFs.
For a printer-friendly variant of the PDF file you can disable the interactive features by modifying the file index.tex before starting pdflatex: Replace the line (possibly with different language key)
\usepackage[pdflinks]{halcon_reference_en_US}
by
\usepackage{halcon_reference_en_US}
If you want to create both documents with and without PDF links, please use different directories or remember to delete all auxiliary LaTeX files before starting to pdflatex the modified index.tex, because the two versions are not compatible.