blob: 7415c51a16509e4823e67ddf5498f2598fd4be50 [file] [log] [blame]
Guido van Rossum515834a1991-01-22 11:45:29 +00001% Style parameters and macros used by all documents here
2
3% Page lay-out parameters
Guido van Rossum4c22cb21991-01-25 13:28:15 +00004\textwidth = 160mm
Guido van Rossum515834a1991-01-22 11:45:29 +00005\textheight = 240mm
6\topmargin = -11mm
Guido van Rossum4c22cb21991-01-25 13:28:15 +00007\oddsidemargin = 0mm
8\evensidemargin = 0mm
9%\parindent = 0mm
Guido van Rossum515834a1991-01-22 11:45:29 +000010
11% Frequently used system names
Guido van Rossum4c22cb21991-01-25 13:28:15 +000012\newcommand{\Python}{Python} % Sometimes I want this italicized
Guido van Rossum515834a1991-01-22 11:45:29 +000013\newcommand{\UNIX}{U{\sc nix}}
14
Guido van Rossum4c22cb21991-01-25 13:28:15 +000015% Variable used by begin code command
Guido van Rossum44000ed1991-01-24 16:54:29 +000016\newlength{\codewidth}
Guido van Rossum44000ed1991-01-24 16:54:29 +000017
Guido van Rossum4c22cb21991-01-25 13:28:15 +000018\newcommand{\bcode}{
19 % Calculate the text width for the minipage:
20 \setlength{\codewidth}{\linewidth}
21 \addtolength{\codewidth}{-\parindent}
22 %
23 \vspace{3mm}
24 \par
25 \indent
26 \begin{minipage}[t]{\codewidth}
27}
28
29\newcommand{\ecode}{
30 \end{minipage}
31 \vspace{3mm}
32 \par
33 \noindent
34}