Guido van Rossum | 515834a | 1991-01-22 11:45:29 +0000 | [diff] [blame] | 1 | % 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 Rossum | 44000ed | 1991-01-24 16:54:29 +0000 | [diff] [blame^] | 21 | % 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 Rossum | 515834a | 1991-01-22 11:45:29 +0000 | [diff] [blame] | 27 | \newenvironment{code}% |
Guido van Rossum | 44000ed | 1991-01-24 16:54:29 +0000 | [diff] [blame^] | 28 | {\vspace{10pt}\par\begin{minipage}{\codewidth}}% begin stuff |
| 29 | {\end{minipage}\par\vspace{10pt}\noindent}% end stuff |