Commit 29f5933f authored by Fred Drake's avatar Fred Drake

add support for \e to the {alltt} environment

parent d311f1fb
...@@ -790,7 +790,8 @@ This \UNIX\ is also followed by a space. ...@@ -790,7 +790,8 @@ This \UNIX\ is also followed by a space.
\begin{macrodesc}{e}{} \begin{macrodesc}{e}{}
Produces a backslash. This is convenient in \macro{code}, 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 create a backslash in ordinary text (such as the contents of the
\macro{citetitle} macro), use the standard \macro{textbackslash} \macro{citetitle} macro), use the standard \macro{textbackslash}
macro. macro.
......
...@@ -236,6 +236,7 @@ ...@@ -236,6 +236,7 @@
% Calculate the text width for the minipage: % Calculate the text width for the minipage:
\setlength{\py@codewidth}{\linewidth}% \setlength{\py@codewidth}{\linewidth}%
\addtolength{\py@codewidth}{-\parindent}% \addtolength{\py@codewidth}{-\parindent}%
\let\e=\textbackslash%
% %
\par\indent% \par\indent%
\begin{minipage}[t]{\py@codewidth}% \begin{minipage}[t]{\py@codewidth}%
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment