\hypertarget{formulas}{}\section{Including formulas}\label{formulas}
 Doxygen allows you to put $\mbox{\LaTeX}$ formulas in the output (this works only for the HTML and $\mbox{\LaTeX}$ output,  not for the RTF nor for the man page output). To be able to include  formulas (as images) in the HTML documentation, you will also need to  have the following tools installed \begin{CompactItemize}
\item 
{\tt latex}: the $\mbox{\LaTeX}$ compiler, needed to parse the formulas.  To test I have used the te\-Te\-X 0.9 distribution. \item 
{\tt dvips}: a tool to convert DVI files to Post\-Script files  I have used version 5.86 from Radical Eye software for testing. \item 
{\tt gs}: the Ghost\-Script interpreter for converting Post\-Script files  to bitmaps. I have used Aladdin Ghost\-Script 5.10 for testing. \end{CompactItemize}
There are two ways to include formulas in the documentation. \begin{enumerate}
\item 
Using in-text formulas that appear in the running text.  These formulas should be put between a pair of $\backslash$f\$  commands, so 

\footnotesize\begin{verbatim}
  The distance between \f$(x_1,y_1)\f$ and \f$(x_2,y_2)\f$ is 
  \f$\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\f$.
\end{verbatim}\normalsize 
 results in:

The distance between $(x_1,y_1)$ and $(x_2,y_2)$ is  $\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$. \par
 \item 
Unnumbered displayed formulas that are centered on a separate line. These formulas should be put between $\backslash$f\mbox{[} and $\backslash$f\mbox{]} commands. An example: 

\footnotesize\begin{verbatim}
  \f[
    |I_2|=\left| \int_{0}^T \psi(t) 
             \left\{ 
                u(a,t)-
                \int_{\gamma(t)}^a 
                \frac{d\theta}{k(\theta,t)}
                \int_{a}^\theta c(\xi)u_t(\xi,t)\,d\xi
             \right\} dt
          \right|
  \f]
\end{verbatim}\normalsize 
 results in: \[ |I_2|=\left| \int_{0}^T \psi(t) \left\{ u(a,t)- \int_{\gamma(t)}^a \frac{d\theta}{k(\theta,t)} \int_{a}^\theta c(\xi)u_t(\xi,t)\,d\xi \right\} dt \right| \] \end{enumerate}
Formulas should be valid commands in $\mbox{\LaTeX}$'s math-mode.

\begin{Desc}
\item[Warning: ]\par
Currently, doxygen is not very fault tolerant in recovering  from typos in formulas. It may have to be necessary to remove the file {\tt formula.repository} that is written in the html directory to  a rid of an incorrect formula\end{Desc}


