Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Alan Isaac <aisaac@am...>  20061218 18:14:27

On Mon, 18 Dec 2006, David Huard wrote: > I got epydoc running on plain docstrings and the > latexmath role from Jens running. However, I havent't > looked at how to use both together. I'm in the same position. But I guess this should be simple for anyone familiar with docutils, so I'll copy this to docutilsusers. Cheers, Alan Isaac 
From: Alan G Isaac <aisaac@am...>  20061210 02:50:03

On Sat, 9 Dec 2006, Jonathan Guyer apparently wrote:=20 > I see my confusion. I'd gotten the sandbox via svn along with=20 > docutils HEAD, and it doesn't work with that (it throws an error deep=20 > within docutils). I switched to docutils0.4 and it seems=20 > fine.=20 This problem that docutils SVN head creates for the =20 latexmath module in the sandbox should interest the=20 docutils developers and perhaps the latexmath developer=20 (Jens J=C3=B8rgen Mortensen), so I'll forward your comment to the=20 docutils list. You may wish to followup with any useful=20 details. Cheers,=20 Alan Isaac=20 
From: Alan Isaac <aisaac@am...>  20061218 18:14:27

On Mon, 18 Dec 2006, David Huard wrote: > I got epydoc running on plain docstrings and the > latexmath role from Jens running. However, I havent't > looked at how to use both together. I'm in the same position. But I guess this should be simple for anyone familiar with docutils, so I'll copy this to docutilsusers. Cheers, Alan Isaac 
From: David Huard <david.huard@gm...>  20061219 20:56:25

Le Mon, 18 Dec 2006 13:14:22 0500, Alan Isaac a écrit : > On Mon, 18 Dec 2006, David Huard wrote: >> I got epydoc running on plain docstrings and the >> latexmath role from Jens running. However, I havent't >> looked at how to use both together. > > I'm in the same position. But > I guess this should be simple for anyone familiar with > docutils, so I'll copy this to docutilsusers. > > Cheers, > Alan Isaac If I understand correctly, I'd have to add the latexmath role to rst/roles.py and the latexmath directive to the rst/directives directory and register it in the __init__. However, the directives defined in Jens' sandbox are writer specific, so I'm a bit lost. A little bit of context: The SciPy and NumPy folks are looking at the various documentation systems out there to build the API documentation and tutorials. Up to now, the combination epydoc+reST seems to most powerful. However, Latex formulas are a must for those packages and the raw role is a bit lowlevel for our needs, hence the interest in including the latexmath role and directive in the trunk so that epydoc can run smoothly using it. Thanks a lot, David 
From: Jens Mortensen <jensj@fy...>  20061220 13:10:26

On Tue, 20061219 at 15:34 0500, David Huard wrote: > If I understand correctly, I'd have to add the latexmath > role to rst/roles.py and the latexmath directive to the=20 > rst/directives directory and register it in the __init__. However, the > directives defined in Jens' sandbox are writer specific, so I'm a bit l= ost. You will have to merge the code from rst2mathml.py and rst2latexmath.py. I would start from the code in rst2mathml.py, where the node class (latex_math) will have to be changed to something like this: class latex_math(nodes.Element): tagname =3D '#latexmath' def __init__(self, rawsource, mathml_tree, latex): nodes.Element.__init__(self, rawsource) self.mathml_tree =3D mathml_tree self.latex =3D latex Also the latex_math_role function and the latex_math_directive class will have to be modified a bit to use the new node class. =20 And then the visit/depart methods should be added to the writers. Hope that helps, Jens J=C3=B8rgen > A little bit of context:=20 > The SciPy and NumPy folks are looking at the > various documentation systems out there to build the API documentation > and tutorials. Up to now, the combination epydoc+reST seems to most > powerful. However, Latex formulas are a must for those packages and the > raw role is a bit lowlevel for our needs, hence the interest in > including the latexmath role and directive in the trunk so that epydoc > can run smoothly using it. =20 
From: Jens Mortensen <jensj@fy...>  20061212 15:59:29

On Sat, 20061209 at 21:52 0500, Alan G Isaac wrote: > On Sat, 9 Dec 2006, Jonathan Guyer apparently wrote:=20 > > I see my confusion. I'd gotten the sandbox via svn along with=20 > > docutils HEAD, and it doesn't work with that (it throws an error deep= =20 > > within docutils). I switched to docutils0.4 and it seems=20 > > fine.=20 >=20 > This problem that docutils SVN head creates for the =20 > latexmath module in the sandbox should interest the=20 > docutils developers and perhaps the latexmath developer=20 > (Jens J=C3=B8rgen Mortensen), so I'll forward your comment to the=20 > docutils list. You may wish to followup with any useful=20 > details. The problem was that I registered the latexmath directive in an old fashioned way that did not work with new docutils versions. I fixed it in svn so that it should work with both old and new versions. I also changed the name of the rst2latex.py script to rst2latexmath.py. Jens J=C3=B8rgen > Cheers,=20 > Alan Isaac=20 >=20 >=20 >=20 > =  > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys  and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Docutilsusers mailing list > Docutilsusers@... > https://lists.sourceforge.net/lists/listinfo/docutilsusers >=20 > Please use "Reply All" to reply to the list. 
From: Neal Becker <ndbecker2@gm...>  20061212 17:45:33

Jens Jørgen Mortensen wrote: > On Sat, 20061209 at 21:52 0500, Alan G Isaac wrote: >> On Sat, 9 Dec 2006, Jonathan Guyer apparently wrote: >> > I see my confusion. I'd gotten the sandbox via svn along with >> > docutils HEAD, and it doesn't work with that (it throws an error deep >> > within docutils). I switched to docutils0.4 and it seems >> > fine. >> >> This problem that docutils SVN head creates for the >> latexmath module in the sandbox should interest the >> docutils developers and perhaps the latexmath developer >> (Jens Jørgen Mortensen), so I'll forward your comment to the >> docutils list. You may wish to followup with any useful >> details. > > The problem was that I registered the latexmath directive in an old > fashioned way that did not work with new docutils versions. I fixed it > in svn so that it should work with both old and new versions. I also > changed the name of the rst2latex.py script to rst2latexmath.py. > I'm interested in playing with this. I grabbed the current docutils svn, but it doesn't seem to work: rst2latex.py README.txt > stuff README.txt:1: (ERROR/3) Unknown interpreted text role "latexmath". .. defaultrole:: latexmath I don't know anything about rest or docutils, any hints? 
From: Alan G Isaac <aisaac@am...>  20061212 18:03:42

On Tue, 12 Dec 2006, Neal Becker apparently wrote: > rst2latex.py README.txt > stuff > README.txt:1: (ERROR/3) Unknown interpreted text role "latexmath". Did you mean to use rst2latexmath.py? (In the sandbox; recently renamed.) Cheers, Alan Isaac 
Sign up for the SourceForge newsletter:
No, thanks