Author: bugman Date: Sat Jun 22 00:45:10 2013 New Revision: 20255 URL: http://svn.gna.org/viewcvs/relax?rev=20255&view=rev Log: The prompt examples in the user function chapter of the manual now use the listing environment. This is via the fetch_docstrings.py script and results in much better formatting of these subsections. Modified: trunk/docs/latex/fetch_docstrings.py Modified: trunk/docs/latex/fetch_docstrings.py URL: http://svn.gna.org/viewcvs/relax/trunk/docs/latex/fetch_docstrings.py?rev=20255&r1=20254&r2=20255&view=diff ============================================================================== --- trunk/docs/latex/fetch_docstrings.py (original) +++ trunk/docs/latex/fetch_docstrings.py Sat Jun 22 00:45:10 2013 @@ -1006,13 +1006,8 @@ # Loop over the examples. for text in list: - # LaTeX formatting. - text = self.break_functions(text) - text = self.latex_quotes(text) - text = self.latex_special_chars(text) - # Write to file. - self.file.write("\\smallexample{%s}\n\n" % text) + self.file.write("\\begin{lstlisting}[numbers=none]\n%s\n\\end{lstlisting}\n\n" % text) # An extra newline. self.file.write("\n")