Fix for delta values reported by vFW vLB
[demo.git] / vnfs / VES5.0 / doxygen-1.8.12 / html / formulas.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
6 <meta name="generator" content="Doxygen 1.8.12"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>Doxygen: Including formulas</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <link href="navtree.css" rel="stylesheet" type="text/css"/>
13 <script type="text/javascript" src="resize.js"></script>
14 <script type="text/javascript" src="navtreedata.js"></script>
15 <script type="text/javascript" src="navtree.js"></script>
16 <script type="text/javascript">
17   $(document).ready(initResizable);
18 </script>
19 <link href="doxygen_manual.css" rel="stylesheet" type="text/css" />
20 </head>
21 <body>
22 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
23 <div id="titlearea">
24 <table cellspacing="0" cellpadding="0">
25  <tbody>
26  <tr style="height: 56px;">
27   <td id="projectalign" style="padding-left: 0.5em;">
28    <div id="projectname">Doxygen
29    </div>
30   </td>
31  </tr>
32  </tbody>
33 </table>
34 </div>
35 <!-- end header part -->
36 <!-- Generated by Doxygen 1.8.12 -->
37 </div><!-- top -->
38 <div id="side-nav" class="ui-resizable side-nav-resizable">
39   <div id="nav-tree">
40     <div id="nav-tree-contents">
41       <div id="nav-sync" class="sync"></div>
42     </div>
43   </div>
44   <div id="splitbar" style="-moz-user-select:none;" 
45        class="ui-resizable-handle">
46   </div>
47 </div>
48 <script type="text/javascript">
49 $(document).ready(function(){initNavTree('formulas.html','');});
50 </script>
51 <div id="doc-content">
52 <div class="header">
53   <div class="headertitle">
54 <div class="title">Including formulas </div>  </div>
55 </div><!--header-->
56 <div class="contents">
57 <div class="textblock"><p>Doxygen allows you to put <img class="formulaInl" alt="$\mbox{\LaTeX}$" src="form_0.png"/> formulas in the output (this works only for the HTML and <img class="formulaInl" alt="$\mbox{\LaTeX}$" src="form_0.png"/> 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 </p><ul>
58 <li>
59 <code>latex:</code> the <img class="formulaInl" alt="$\mbox{\LaTeX}$" src="form_0.png"/> compiler, needed to parse the formulas. To test I have used the teTeX 1.0 distribution. </li>
60 <li>
61 <code>dvips:</code> a tool to convert DVI files to PostScript files I have used version 5.92b from Radical Eye software for testing. </li>
62 <li>
63 <code>gs:</code> the GhostScript interpreter for converting PostScript files to bitmaps. I have used Aladdin GhostScript 8.0 for testing. </li>
64 </ul>
65 <p>For the HTML output there is also an alternative solution using <a href="http://www.mathjax.org">MathJax</a> which does not require the above tools. If you enable <a class="el" href="config.html#cfg_use_mathjax">USE_MATHJAX</a> in the config then the latex formulas will be copied to the HTML "as is" and a client side javascript will parse them and turn them into (interactive) images.</p>
66 <p>There are three ways to include formulas in the documentation. </p><ol>
67 <li>
68 <p class="startli">Using in-text formulas that appear in the running text. These formulas should be put between a pair of \f$ commands, so </p><pre class="fragment">  The distance between \f$(x_1,y_1)\f$ and \f$(x_2,y_2)\f$ is 
69   \f$\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\f$.
70 </pre><p> results in:</p>
71 <p class="endli">The distance between <img class="formulaInl" alt="$(x_1,y_1)$" src="form_1.png"/> and <img class="formulaInl" alt="$(x_2,y_2)$" src="form_2.png"/> is <img class="formulaInl" alt="$\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$" src="form_3.png"/>. <br />
72  </p>
73 </li>
74 <li>
75 Unnumbered displayed formulas that are centered on a separate line. These formulas should be put between \f[ and \f] commands. An example: <pre class="fragment">  \f[
76     |I_2|=\left| \int_{0}^T \psi(t) 
77              \left\{ 
78                 u(a,t)-
79                 \int_{\gamma(t)}^a 
80                 \frac{d\theta}{k(\theta,t)}
81                 \int_{a}^\theta c(\xi)u_t(\xi,t)\,d\xi
82              \right\} dt
83           \right|
84   \f]
85 </pre> results in: <p class="formulaDsp">
86 <img class="formulaDsp" alt="\[ |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| \]" src="form_4.png"/>
87 </p>
88  </li>
89 <li>
90 Formulas or other latex elements that are not in a math environment can be specified using \f{environment}, where <code>environment</code> is the name of the <img class="formulaInl" alt="$\mbox{\LaTeX}$" src="form_0.png"/> environment, the corresponding end command is \f}. Here is an example for an equation array <pre class="fragment">   \f{eqnarray*}{
91         g &amp;=&amp; \frac{Gm_2}{r^2} \\ 
92           &amp;=&amp; \frac{(6.673 \times 10^{-11}\,\mbox{m}^3\,\mbox{kg}^{-1}\,
93               \mbox{s}^{-2})(5.9736 \times 10^{24}\,\mbox{kg})}{(6371.01\,\mbox{km})^2} \\ 
94           &amp;=&amp; 9.82066032\,\mbox{m/s}^2
95    \f}
96 </pre> which results in: <p class="formulaDsp">
97 <img class="formulaDsp" alt="\begin{eqnarray*} g &amp;=&amp; \frac{Gm_2}{r^2} \\ &amp;=&amp; \frac{(6.673 \times 10^{-11}\,\mbox{m}^3\,\mbox{kg}^{-1}\, \mbox{s}^{-2})(5.9736 \times 10^{24}\,\mbox{kg})}{(6371.01\,\mbox{km})^2} \\ &amp;=&amp; 9.82066032\,\mbox{m/s}^2 \end{eqnarray*}" src="form_5.png"/>
98 </p>
99  </li>
100 </ol>
101 <p>For the first two commands one should make sure formulas contain valid commands in <img class="formulaInl" alt="$\mbox{\LaTeX}$" src="form_0.png"/>'s math-mode. For the third command the section should contain valid command for the specific environment.</p>
102 <dl class="section warning"><dt>Warning</dt><dd>Currently, doxygen is not very fault tolerant in recovering from typos in formulas. It may be necessary to remove the file <code>formula.repository</code> that is written to the html directory to get rid of an incorrect formula.</dd></dl>
103 <p> 
104 Go to the <a href="tables.html">next</a> section or return to the
105  <a href="index.html">index</a>.
106  </p>
107 </div></div><!-- contents -->
108 </div><!-- doc-content -->
109 <!-- start footer part -->
110 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
111   <ul>
112     <li class="footer">Generated by
113     <a href="http://www.doxygen.org/index.html">
114     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
115   </ul>
116 </div>
117 </body>
118 </html>