From: <michael.abbott@di...>  20110627 10:48:42

I'm trying to figure out the options for writing equations in reST, and the possibilities appear to be to use either itex2MML or the latexmath plugin from http://docutils.sourceforge.net/sandbox/jensj/latex_math/ However, it seems that the latex generated by rst2latexmath.py (in the tools directory of the link above) is incomplete. For example, running the commands (latex_math.txt from the docs directory): rst2latexmath.py latex_math.txt latex_math.tex pdflatex latex_math.tex complains about undefined symbols. To get latex_math.tex to build I have to apply this patch:  latex_math.tex.original 20110627 09:18:18.000000000 +0100 +++ latex_math.tex 20110627 09:18:43.000000000 +0100 @@ 14,9 +14,19 @@ %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times +\usepackage{amsmath} +\usepackage{amsfonts} +\usepackage{amssymb} \usepackage[scaled=.90]{helvet} \usepackage{courier} +\let\amalg=\undefined +\let\coprod=\undefined +\DeclareSymbolFont{cmsymbols}{OMS}{cmsy}{m}{n} +\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n} +\DeclareMathSymbol{\amalg}{\mathbin}{cmsymbols}{"71} +\DeclareMathSymbol{\coprod}{\mathop}{cmlargesymbols}{"60} + %%% User specified packages and stylesheets %%% Fallback definitions for Docutilsspecific commands Unfortunately, of course, I'm patching completely the wrong file here! So two questions: 1. How do I modify rst2latexmath.py so that the changes above occur in the generated .tex file? I'm wholly unfamiliar with the docutils plugin mechanism, so pointers to relevant documents will be gratefully received. 2. What's the state of play with equation support in reST, in particular, should I pay more attention to the latexmath plugin or to itex2MML? Or am I missing more recent work? I'm not subscribed to this list, so *please* CC me.  I'm very very sorry, but I can do nothing about the garbage added by my employer below this email :(  This email and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the email and do not use, copy, retain, distribute or disclose the information in or attached to the email. Any opinions expressed within this email are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this email or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom 