1 Sep 2004 22:12
Re: Generating LaTeX for Python manual
David Goodger <goodger <at> python.org>
2004-09-01 20:12:18 GMT
2004-09-01 20:12:18 GMT
[Greg Ward] > Hi all -- I've been having a bit of fun with docutils lately, trying > to turn my reStructuredText docs for Optik into LaTeX for the Python > Library Reference. Some work has been done on this. Check in the sandbox (http://docutils.sf.net/sandbox) there are files under edloper/docpy/ and dkuhlman/. > The good news is that I can do almost everything by subclassing > docutils.writers.latex2e.LaTeXTranslator; I'll include my subclass > below for posterity and critiquing. Cool; thanks! > There are a few annoyances: > > * the Python doc markup has many ways of saying "literal": > \method{}, \func{}, \var{}, \class{}, \module{}, \code{}, etc. ... > Given reST's syntax, though, I can't think of a fundamentally > better way, but I'm open to ideas for improving my > implementation. That would be the :role:`interpreted text` syntax: :method:`add_option()` `set_defaults()`:method: :class:`OptionParser` `Option`:class:(Continue reading)
RSS Feed