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 |
Guido van Rossum | 4c22cb2 | 1991-01-25 13:28:15 +0000 | [diff] [blame] | 4 | \textwidth = 160mm |
Guido van Rossum | 515834a | 1991-01-22 11:45:29 +0000 | [diff] [blame] | 5 | \textheight = 240mm |
| 6 | \topmargin = -11mm |
Guido van Rossum | 4c22cb2 | 1991-01-25 13:28:15 +0000 | [diff] [blame] | 7 | \oddsidemargin = 0mm |
| 8 | \evensidemargin = 0mm |
| 9 | %\parindent = 0mm |
Guido van Rossum | 515834a | 1991-01-22 11:45:29 +0000 | [diff] [blame] | 10 | |
| 11 | % Frequently used system names |
Guido van Rossum | 4c22cb2 | 1991-01-25 13:28:15 +0000 | [diff] [blame] | 12 | \newcommand{\Python}{Python} % Sometimes I want this italicized |
Guido van Rossum | 515834a | 1991-01-22 11:45:29 +0000 | [diff] [blame] | 13 | \newcommand{\UNIX}{U{\sc nix}} |
| 14 | |
Guido van Rossum | 4c22cb2 | 1991-01-25 13:28:15 +0000 | [diff] [blame] | 15 | % Variable used by begin code command |
Guido van Rossum | 44000ed | 1991-01-24 16:54:29 +0000 | [diff] [blame] | 16 | \newlength{\codewidth} |
Guido van Rossum | 44000ed | 1991-01-24 16:54:29 +0000 | [diff] [blame] | 17 | |
Guido van Rossum | 4c22cb2 | 1991-01-25 13:28:15 +0000 | [diff] [blame] | 18 | \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 | } |