0
0
mirror of https://github.com/python/cpython.git synced 2024-11-25 01:20:47 +01:00
cpython/Doc/myformat.sty
Guido van Rossum 4c22cb2f31 Changed code environment into \bcode and \ecode macros.
Learned a lot about these things.
1991-01-25 13:28:15 +00:00

35 lines
699 B
TeX

% Style parameters and macros used by all documents here
% Page lay-out parameters
\textwidth = 160mm
\textheight = 240mm
\topmargin = -11mm
\oddsidemargin = 0mm
\evensidemargin = 0mm
%\parindent = 0mm
% Frequently used system names
\newcommand{\Python}{Python} % Sometimes I want this italicized
\newcommand{\UNIX}{U{\sc nix}}
% Variable used by begin code command
\newlength{\codewidth}
\newcommand{\bcode}{
% Calculate the text width for the minipage:
\setlength{\codewidth}{\linewidth}
\addtolength{\codewidth}{-\parindent}
%
\vspace{3mm}
\par
\indent
\begin{minipage}[t]{\codewidth}
}
\newcommand{\ecode}{
\end{minipage}
\vspace{3mm}
\par
\noindent
}