blob: a9acd819de47cdc36c48e6e9ea7c6fb53eb4cc0d [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
4\textwidth = 150mm
5\textheight = 240mm
6\topmargin = -11mm
7\oddsidemargin = 5mm
8\evensidemargin = 5mm
9
10% Macros for e.g. and E.g. if you want them italicized:
11% \newcommand{\eg}{{\it e.g.}}
12% \newcommand{\Eg}{{\it E.g.}}
13% If you don't want them italicized:
14\newcommand{\eg}{e.g.}
15\newcommand{\Eg}{E.g.}
16
17% Frequently used system names
18\newcommand{\Python}{Python}
19\newcommand{\UNIX}{U{\sc nix}}
20
Guido van Rossum44000ed1991-01-24 16:54:29 +000021% 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!
Guido van Rossum515834a1991-01-22 11:45:29 +000027\newenvironment{code}%
Guido van Rossum44000ed1991-01-24 16:54:29 +000028{\vspace{10pt}\par\begin{minipage}{\codewidth}}% begin stuff
29{\end{minipage}\par\vspace{10pt}\noindent}% end stuff