![](https://secure.gravatar.com/avatar/67eadceb08f909ead3915fc9d9145a7d.jpg?s=120&d=mm&r=g)
epydoc orders the elements of the docstring according to an hard-coded list. Here is a small patch to epydoc that lets you insert examples as :Example: an example here
trythis(a) [3,4,5]
There is certainly a better way to achieve this but I'm still not aware of it. HTH, David 2007/4/26, David Cournapeau <david@ar.media.kyoto-u.ac.jp>:
David Huard wrote:
Here is a patch to the latest docutils svn implementing the math role from Jens.
You can look at docutils/sandbox/jens/latex-math/test/test.txt for an example. Note that I changed the name of the role from latex-math to math, so you'll have to replace occurrences of latex-math by math. Then run
rst2latex test.txt | pdflatex Thanks, this is working great ! I have another questions regarding epydoc's usage. First, when I have a Examples section in my docstring, it is put before :Parameters: in the output html, even if I put the example section after in the docstring. Why is that ?
David _______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-dev