The .. math:: provided builds fine for me for HTML & latexpdf with no
warnings.



I noticed that your warning shows a beginning and ending $ that are not
showing in your math example. I always remove the beginning & ending $ or
\[ markup before adding it to a math directive or role. Does your document
have the $ surrounding it?



Kathy



Hi,



I have some sphinx documentation that require displaying a matrix in latex
notation. The code looks like this



.. math::



   \mathbf{\Delta} =

    \begin{pmatrix}

    1      & -1     &  0     & \cdots & 0\\

    0      & 1      & -1     & \cdots & 0\\

    \vdots & \vdots & \vdots & \ddots & 0\\

    0      & 0      & 0      & \cdots & -1\\

    \end{pmatrix}



The code works in latex itself, but sphinx complains



sphinxext/mathmpl.py:56: Warning: Could not render math expression
$\mathbf{\Delta} = \begin{pmatrix} 1      & -1     &  0     & \cdots & 0\\
0      & 1      & -1     & \cdots & 0\\ \vdots & \vdots & \vdots & \ddots &
0\\ 0      & 0      & 0      & \cdots & -1\\ \end{pmatrix}$



Is there something I am missing?



Thanks

Jose

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to