Include math equation with ocamldoc
<p>I would like to include equations in a documentation generated with ocamldoc. I am using a small (bat) script :</p>

<pre><code>ocamldoc -latex maths.ml 
pdflatex ocamldoc.out
</code></pre>

<p>where maths.ml contains the following comments :</p>

<pre><code>(** "Given a list of indices \\( v \\)  and a vector of weights \f$ w \f$, this returns $ sum_iw_{v_i} $"*)
let dot_product indices weights = [...]
</code></pre>

<p>However, the only thing produced in the pdf file is :</p>

<pre><code>val dot_product : int list -&gt; float array -&gt; float
"Given a list of indices \\( v \\) and a vector of weights \f$ w \f$, this returns $ sum_iw_
$"
</code></pre>

<p>I tried various ways to indicate the equations ($, \f$,  \( ) but none of these were identified. Is there a specific way to indicate equations for them to be recognized by ocamldoc ?</p>