matplotlib does not support the `\begin{array}` construct. You can see what is supported here:

http://matplotlib.org/users/mathtext.html

If you need something like that in Sphinx, there are a number of other math plugins here:

http://sphinx-doc.org/ext/math.html

Mike

On 03/28/2013 02:45 AM, Ilias Miroslav wrote:
Hi again,

if you did not receive the attachement of my previous email, the files are here:

https://docs.google.com/folder/d/0B8qBHKNhZAipZ2pnS0ViTUZBdXM/edit?usp=sharing

The log of the simplest non-rendering formula:

.. math::
  \begin{array}{c}
  {\Psi}^{L} \\
  {\Psi}^{S}
  \end{array}

is as follows:

ilias@miro_ilias_desktop:~/Dokumenty/Work/programming/sphinx-math-test/.sphinx-build
 .  .
Running Sphinx v1.1.3

loading pickled environment... not yet created
No builder selected, using default: html
building [html]: targets for 1 source files that are out of date
updating environment: 1 added, 0 changed, 0 removed
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
/usr/lib/pymodules/python2.7/matplotlib/sphinxext/mathmpl.py:56: Warning: Could 
not render math expression $\begin{array}{c}{\Psi}^{L} \\{\Psi}^{S}\end{array}$
   Warning)
#
writing additional files... genindex search
copying static files... done
dumping search index... done
dumping object inventory... done
build succeeded.


Best, Miro

________________________________________
From: Ilias Miroslav
Sent: Wednesday, March 27, 2013 8:28 PM
To: matplotlib-users@lists.sourceforge.net
Subject: difficult LaTeX formula for rendering

Dear experts,

in our sphinx-based project documentation (www.diracprogram.org) we have a 
complicated latex math formula, which is not rendered:

/usr/lib/pymodules/python2.7/matplotlib/sphinxext/mathmpl.py:56: Warning: Could 
not render math expression $i \hbar \frac{\partial}{\partial t} \left( 
\begin{array}{c}\Psi^L \\\Psi^S \end{array} \right) = c  \left( 
\begin{array}{c}(\vec{\sigma} \cdot \vec{\pi}) \Psi^S \\(\vec{\sigma} \cdot 
\vec{\pi}) \Psi^L \end{array} \right)+ m_ec^2  \left( \begin{array}{c} \Psi^L 
\\-\Psi^S \end{array} \right) + V  \left( \begin{array}{c}\Psi^L \\\Psi^S 
\end{array} \right)$

The index.rst file with the sole math formula is attached.

I have most recent Ubuntu 12.10 (x86_64) with default packages python-sphinx 
1.1.2, python-matplotlib 1.1.1.

Any help, please ? I was trying to cut this formula down; the smallest LaTeX part not 
rendered is "\begin{array}{c}\Psi^L \\ \Psi^S \end{array}".

Yours,

Miro
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to