diff options
author | Fred Drake <fdrake@acm.org> | 2004-02-10 18:30:22 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2004-02-10 18:30:22 (GMT) |
commit | 29f5933fcba949afb00af50923a7bccc07ffd94e (patch) | |
tree | 1497917f3ff45ac0fe65c7655271d9bf45d128b7 /Doc | |
parent | d311f1fb9b8fc9269db4ede838702b3f2d355e0d (diff) | |
download | cpython-29f5933fcba949afb00af50923a7bccc07ffd94e.zip cpython-29f5933fcba949afb00af50923a7bccc07ffd94e.tar.gz cpython-29f5933fcba949afb00af50923a7bccc07ffd94e.tar.bz2 |
add support for \e to the {alltt} environment
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/doc/doc.tex | 3 | ||||
-rw-r--r-- | Doc/texinputs/python.sty | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Doc/doc/doc.tex b/Doc/doc/doc.tex index 7d84a4b..dddb9a9 100644 --- a/Doc/doc/doc.tex +++ b/Doc/doc/doc.tex @@ -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. diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index 734ffa3..770499e 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -236,6 +236,7 @@ % 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}% |