comparison Doc/texinputs/python.sty @ 31507:354129143809 legacy-trunk

add support for \e to the {alltt} environment
author Fred Drake <fdrake@acm.org>
date Tue, 10 Feb 2004 18:30:22 +0000
parents 51c3d452af2f
children 64cc163eeaf1
comparison
equal deleted inserted replaced
31505:1f5f6cca2f21 31507:354129143809
234 \renewcommand{\alltt}{% 234 \renewcommand{\alltt}{%
235 \setlength{\parindent}{1cm}% 235 \setlength{\parindent}{1cm}%
236 % Calculate the text width for the minipage: 236 % Calculate the text width for the minipage:
237 \setlength{\py@codewidth}{\linewidth}% 237 \setlength{\py@codewidth}{\linewidth}%
238 \addtolength{\py@codewidth}{-\parindent}% 238 \addtolength{\py@codewidth}{-\parindent}%
239 \let\e=\textbackslash%
239 % 240 %
240 \par\indent% 241 \par\indent%
241 \begin{minipage}[t]{\py@codewidth}% 242 \begin{minipage}[t]{\py@codewidth}%
242 \small% 243 \small%
243 \py@OldAllTT% 244 \py@OldAllTT%