aboutsummaryrefslogtreecommitdiff
path: root/doc/myformat.sty
diff options
context:
space:
mode:
authorSkip Montanaro <[email protected]>2021-02-16 14:40:46 -0600
committerSkip Montanaro <[email protected]>2021-02-16 14:40:46 -0600
commita19a216bc60160c162e616145ef091dd18ce4e61 (patch)
treefa4bdff21f9b04a125c84a2bfab8a1c738359e15 /doc/myformat.sty
downloadpython-0.9.1-patched-QoL-a19a216bc60160c162e616145ef091dd18ce4e61.tar.xz
python-0.9.1-patched-QoL-a19a216bc60160c162e616145ef091dd18ce4e61.zip
Python 0.9.1 as posted in alt.sources
Diffstat (limited to 'doc/myformat.sty')
-rw-r--r--doc/myformat.sty34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/myformat.sty b/doc/myformat.sty
new file mode 100644
index 0000000..be70239
--- /dev/null
+++ b/doc/myformat.sty
@@ -0,0 +1,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
+}