summaryrefslogtreecommitdiffstats
path: root/Doc/myformat.sty
blob: 7415c51a16509e4823e67ddf5498f2598fd4be50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% 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
}