]> granicus.if.org Git - python/commitdiff
add support for \e to the {alltt} environment
authorFred Drake <fdrake@acm.org>
Tue, 10 Feb 2004 18:30:22 +0000 (18:30 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 10 Feb 2004 18:30:22 +0000 (18:30 +0000)
Doc/doc/doc.tex
Doc/texinputs/python.sty

index 7d84a4bbf206aaef6962f0e292badd0723c446c5..dddb9a973888d2947ecc4a61924492540eb74f85 100644 (file)
@@ -790,7 +790,8 @@ This \UNIX\ is also followed by a space.
 
     \begin{macrodesc}{e}{}
       Produces a backslash.  This is convenient in \macro{code},
-      \macro{file}, and similar macros, and is only defined there.  To
+      \macro{file}, and similar macros, and the \env{alltt}
+      environment, and is only defined there.  To
       create a backslash in ordinary text (such as the contents of the
       \macro{citetitle} macro), use the standard \macro{textbackslash}
       macro.
index 734ffa30eebb6336ebe85145dbce03e28d4313c9..770499eaa11b25a9713158170b1ba06a936ddd3f 100644 (file)
   % Calculate the text width for the minipage:
   \setlength{\py@codewidth}{\linewidth}%
   \addtolength{\py@codewidth}{-\parindent}%
+  \let\e=\textbackslash%
   %
   \par\indent%
   \begin{minipage}[t]{\py@codewidth}%