You must edit the standard configuration file that sphinx-quickstart creates, otherwise sphinx will be barf in the math blocks. In the conf.py file conf.py I changed
extensions = []
to
extensions = ['sphinx.ext.pngmath']
After that, more or less the following file worked:
.. foo documentation master file, created by sphinx-quickstart on Thu Oct 25 11:04:31 2012. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to foo documentation! =============================== Contents: .. toctree:: :maxdepth: 2 This is the first chapter ========================= Instead, I am doing multi-line stuff, often like eqnarray in LaTeX: .. math:: DividendYield &=& \frac{DVT(t)}{CurrentMarketCap} \\ Avg_Assets &=& \biggl( A/B \biggr) \textrm { when B is not zero...}
He produced the following LaTeX code for the math fragment:
\chapter{This is the first chapter} \label{index:welcome-to-foo-s-documentation}\label{index:this-is-the-first-chapter} Instead, I am doing multi-line stuff, often like eqnarray in LaTeX: \begin{gather} \begin{split}DividendYield &=& \frac{DVT(t)}{CurrentMarketCap} \\ Avg_Assets &=& \biggl( A/B \biggr) \textrm { when B is not zero...}\end{split}\notag\\\begin{split}\end{split}\notag \end{gather}
Choosing to use a combination of split and gather seems a little strange to me and, obviously, doesn't work very well with the code you wrote for eqnarray, but it is hardcoded in Sphinx.
Running pdflatex stopped at \end{gather} , with the error Extra alignment tab has been changed to \cr. but I was able to continue this by introducing nonstopmode. This gives me the following result:

Although there is still something wrong with alignment (due to the differences between split and eqnarray ), textrm and biggl are working fine. (Note that you still have to avoid underscores in Average_Assets , but this is consistent with the course, AFAICT).
You can get away with post-processing the generated LaTeX code, for example. replacing \begin{gather}\begin{split} and \end{split}\notag\\\begin{split}\end{split}\notag\end{gather} with the math environment of your choice.
Update
The screenshot from the update seems to be from a web page, not from a LaTeX document! Therefore, it seems to me that what creates the error is a handler that converts the mathematical notation of LaTeX, so there is something that the browser can show. It will probably be either MathJax or jsMath . After reviewing the code, pngmath will generate other error messages. According to this page , your code snippet should work in mathjax. From the jsMath character page , this does not look like jsmath \Biggl . Therefore, I believe that SPhinx is configured to use jsMath. Take a look at the source of the webpage you created to tell you what is used to visualize math. If my guess is correct, switching the configuration to using mathjax and slightly adapting your equation may solve the problem.
Update2 . I can definitely confirm that it works great with MathJax (see below). However, I do not have jsMath.
