The @latex tag is the equivalent of the @html tag for LaTeX output formats. Text inside a @latex(...) tag will be copied verbatim when pasdoc generates documentation in LaTeX or latex2rtf formats, otherwise it will be discarded. E.g.

  (*
    Text visible in every output format.

    @latex(Some {\bf test} text, visible only in LaTeX/latex2rtf output.)

    @html(Some <b>test</b> text, visible only in HTML output.)
  *)

Example how to include graphics in LaTeX output

The @latex tag together with the --latex-head CommandLine option can be used to include graphics in the LaTeX output. For example, the following inserts a figure with a caption.

@latex(\begin{figure}[h]
\centering
\includegraphics{algorithm1.png}
\caption{Polygon, point, and line illustrating algorithm.}
\end{figure})

For this to work, however, you must insert one of the following two lines into the preamble of the LaTeX document using the --latex-head CommandLine option.

\usepackage[pdftex]{graphicx}
\usepackage[dvips]{graphicx}

Use the first line if you want to create a pdf from the LaTeX file. Use the second if you want to create a dvi file from the LaTeX file.

LatexTag (last edited 2007-10-28 22:57:09 by localhost)