[PPL-devel] Wrong escaping introduced in one of the latest snapshots

Roberto Bagnara bagnara at cs.unipr.it
Tue Nov 5 21:29:14 CET 2002


Dear Dimitri,

Doxygen 1.2.18-20021030 appears to translate things like

--------------------------
<DL>

<DT> [BGP99] </DT>
<DD>
...
--------------------------

into LaTeX like

--------------------------
\begin{description}
\item[\[BGP99\]  ]
...
--------------------------

The problem is that \[ and \], in LaTeX, delimit math display mode
so that the translation is not valid.
I would suggest to translate

<DT> something </DT>

to

\item[\hbox{latex(something)}]

where latex(something) encodes all the required escaping
(remembering that `[' and `]' need not be escaped).
To see why the \hbox (or something with similar effect)
is required, try running latex on, e.g.,

\documentclass{article}
\begin{document}
\begin{itemize}
\item[\hbox{[a]}] b
\item[[a]] b
\end{itemize}
\end{document}

All the best

    Roberto

-- 
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara at cs.unipr.it




More information about the PPL-devel mailing list