Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29f5933

Browse files
committed
add support for \e to the {alltt} environment
1 parent d311f1f commit 29f5933

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/doc/doc.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,8 @@ \section{Special Markup Constructs \label{special-constructs}}
790790

791791
\begin{macrodesc}{e}{}
792792
Produces a backslash. This is convenient in \macro{code},
793-
\macro{file}, and similar macros, and is only defined there. To
793+
\macro{file}, and similar macros, and the \env{alltt}
794+
environment, and is only defined there. To
794795
create a backslash in ordinary text (such as the contents of the
795796
\macro{citetitle} macro), use the standard \macro{textbackslash}
796797
macro.

Doc/texinputs/python.sty

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
% Calculate the text width for the minipage:
237237
\setlength{\py@codewidth}{\linewidth}%
238238
\addtolength{\py@codewidth}{-\parindent}%
239+
\let\e=\textbackslash%
239240
%
240241
\par\indent%
241242
\begin{minipage}[t]{\py@codewidth}%

0 commit comments

Comments
 (0)