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 0ed6918 commit 44000edCopy full SHA for 44000ed
1 file changed
Doc/myformat.sty
@@ -18,7 +18,12 @@
18
\newcommand{\Python}{Python}
19
\newcommand{\UNIX}{U{\sc nix}}
20
21
-% Code environment (use together with verbatim!)
+% Calculate the text width for the minipage in the code environment:
22
+\newlength{\codewidth}
23
+\setlength{\codewidth}{\textwidth}
24
+\addtolength{\codewidth}{-\parindent}
25
+
26
+% Code environment. Use together with begin/end verbatim!
27
\newenvironment{code}%
-{\nopagebreak\begin{list}{\nopagebreak}{\nopagebreak}\nopagebreak}%
-{\nopagebreak\end{list}\nopagebreak}
28
+{\vspace{10pt}\par\begin{minipage}{\codewidth}}% begin stuff
29
+{\end{minipage}\par\vspace{10pt}\noindent}% end stuff
0 commit comments