Hi there,
I wondered why it is impossible to include the sourcecode in pdf/latex output... Surely you don't need this very often, but at the moment I am writing my diploma thesis and it would be very useful if the API-Documentation would have a link to the sourcecode like doxygen can do it.
For formatting Python in latex, I would recommend the "listings" package, it prettyprints Python and automagically breaks lines if you tell it to do so... and it marks the breaks.
All that is needed:
\usepackage{listings}
then (after \begin{document})
\lstset{language=Python, basicstyle={\upshape\small}, prebreak=\mbox{\small$\searrow$}, postbreak=\mbox{{\color{blue}\small$\rightarrow$}}, breaklines, texcl,breakatwhitespace=true}
later:
\begin{lstlisting}
def foo:
print "bar"
\end{lstlisting}
Is there a chance that this might be added soon?
Logged In: YES
user_id=195958
Originator: NO
There's no particular reason why this feature shouldn't be added, but I won't have time to look at adding it myself for at least a month. If you'd like to write up a patch that adds this feature, I'd be happy to take a look at it.
Otherwise, if this is for just one project, you could add the source code for your project (e.g. as an appendix) by using "--latex" to generate the latex output, and then editing the latex files to include the listings you want. Of course, this wouldn't give you any reference links between the API docs and the source code (unless you added those by hand as well).
-Edward