Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9901f3 commit b5309a9Copy full SHA for b5309a9
1 file changed
Doc/texinputs/python.sty
@@ -185,6 +185,27 @@
185
\end{minipage}%
186
}
187
188
+% This does a similar thing for the {alltt} environment:
189
+\RequirePackage{alltt}
190
+\let\py@OldAllTT=\alltt
191
+\let\py@OldEndAllTT=\endalltt
192
+
193
+\renewcommand{\alltt}{%
194
+ \setlength{\parindent}{1cm}%
195
+ % Calculate the text width for the minipage:
196
+ \setlength{\py@codewidth}{\linewidth}%
197
+ \addtolength{\py@codewidth}{-\parindent}%
198
+ %
199
+ \par\indent%
200
+ \begin{minipage}[t]{\py@codewidth}%
201
+ \small%
202
+ \py@OldAllTT%
203
+}
204
+\renewcommand{\endalltt}{%
205
+ \py@OldEndAllTT%
206
+ \end{minipage}%
207
208
209
210
\newcommand{\py@modulebadkey}{{--just-some-junk--}}
211
0 commit comments