Kaydet (Commit) b5309a95 authored tarafından Fred Drake's avatar Fred Drake

Import the alltt package and wrap that environment in a similar way to

the way we handle verbatim, so that it picks up the same indentation and
minipage behavior.
üst e9901f32
...@@ -185,6 +185,27 @@ ...@@ -185,6 +185,27 @@
\end{minipage}% \end{minipage}%
} }
% This does a similar thing for the {alltt} environment:
\RequirePackage{alltt}
\let\py@OldAllTT=\alltt
\let\py@OldEndAllTT=\endalltt
\renewcommand{\alltt}{%
\setlength{\parindent}{1cm}%
% Calculate the text width for the minipage:
\setlength{\py@codewidth}{\linewidth}%
\addtolength{\py@codewidth}{-\parindent}%
%
\par\indent%
\begin{minipage}[t]{\py@codewidth}%
\small%
\py@OldAllTT%
}
\renewcommand{\endalltt}{%
\py@OldEndAllTT%
\end{minipage}%
}
\newcommand{\py@modulebadkey}{{--just-some-junk--}} \newcommand{\py@modulebadkey}{{--just-some-junk--}}
......
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