[Python-checkins] CVS: python/dist/src/Doc/doc doc.tex,1.41,1.42

Fred L. Drake fdrake@users.sourceforge.net
Mon, 18 Jun 2001 08:00:00 -0700


Update of /cvsroot/python/python/dist/src/Doc/doc
In directory usw-pr-cvs1:/tmp/cvs-serv28487/doc

Modified Files:
	doc.tex 
Log Message:

Add some information on the use of \verbatiminput to display sources from
an external file.


Index: doc.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/doc/doc.tex,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -r1.41 -r1.42
*** doc.tex	2001/05/11 01:01:12	1.41
--- doc.tex	2001/06/18 14:59:58	1.42
***************
*** 612,615 ****
--- 612,630 ----
      lines at the top or bottom of any \env{verbatim} display.
  
+     Longer displays of verbatim text may be included by storing the
+     example text in an external file containing only plain text.  The
+     file may be included using the standard \macro{verbatiminput}
+     macro; this macro takes a single argument naming the file
+     containing the text.  For example, to include the Python source
+     file \file{example.py}, use:
+ 
+ \begin{verbatim}
+ \verbatiminput{example.py}
+ \end{verbatim}
+ 
+     Use of \macro{verbatiminput} allows easier use of special editing
+     modes for the included file.  The file should be placed in the
+     same directory as the \LaTeX{} files for the document.
+ 
      The Python Documentation Special Interest Group has discussed a
      number of approaches to creating pretty-printed code displays and