Debian Codegraph @

doc/KPyCon2009/arlimsTPPM.cls

raw
1 %%
2 %% This is file `arlims.cls',
3 %% It is based on the original `article.cls' from a tetex 3.0
4 %% distribution (Ubuntu tetex-base 3.0-19 package).
5 %%
6 %% Additions to it were made by (probably) various authors at the
7 %% Massey University Institute of Information and Mathematical
8 %% Sciences.
9 %%
10 %% For further information contact Heath James
11 %% <[email protected]>, Guy Kloss <[email protected]>, Paul
12 %% Cowpertwait <[email protected]> or anybody you expect
13 %% suitable for this purpose ...
14 %%
15 %% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004
16 %% The LaTeX3 Project and any individual authors listed elsewhere
17 %% in this file.
18 %%
19 %% This file was generated from file(s) of the LaTeX base system.
20 %% Numerous changes were made to be fit for RLIMS.
21 %% --------------------------------------------------------------
22 %%
23 %% Changes:
24 %%
25 %% * numerous changes previously to fit article.sty for the purpose
26 %%
27 %% version 1.5:
28 %%
29 %% * fixed the instructions
30 %% * added better default options to the template
31 %% * changed the year to 2008
32 %%
33 %% version 1.4:
34 %%
35 %% * fitted to a newer version of article.sty
36 %% * cleanups in layout and formatting
37 %% * better compliance to LaTeX2e
38 %% * re-fitted \institute, \instituteB, ...C, ...D
39 %% it doesn't work 100% nicely, but it works)
40 %% * removed dependency on natbib.sty (so cite.sty, or else can be
41 %% used as liked)
42 %% * changed paper size to a4paper by default
43 %% * removed dependencies to graphicx.sty and subfigure.sty
44 %% (users like to choose and do that themselves)
45 %%
46 %% --------------------------------------------------------------
47 %%
48 %% It may be distributed and/or modified under the
49 %% conditions of the LaTeX Project Public License, either version 1.3
50 %% of this license or (at your option) any later version.
51 %% The latest version of this license is in
52 %% http://www.latex-project.org/lppl.txt
53 %% and version 1.3 or later is part of all distributions of LaTeX
54 %% version 2003/12/01 or later.
55 %%
56 %% This file has the LPPL maintenance status "maintained".
57 %%
58 %% This file may only be distributed together with a copy of the LaTeX
59 %% base system. You may however distribute the LaTeX base system without
60 %% such generated files.
61 %%
62 %% The list of all files belonging to the LaTeX base distribution is
63 %% given in the file `manifest.txt'. See also `legal.txt' for additional
64 %% information.
65 %%
66 %% The list of derived (unpacked) files belonging to the distribution
67 %% and covered by LPPL is defined by the unpacking scripts (with
68 %% extension .ins) which are part of the distribution.
69 %% \CharacterTable
70 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
71 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
72 %% Digits \0\1\2"s\4\5\6\7\8\9
73 %% Exclamation \! Double quote \" Hash (number) \#
74 %% Dollar \$ Percent \% Ampersand \&
75 %% Acute accent \' Left paren \( Right paren \)
76 %% Asterisk \* Plus \+ Comma \,
77 %% Minus \- Point \. Solidus \/
78 %% Colon \: Semicolon \; Less than \<
79 %% Equals \= Greater than \> Question mark \?
80 %% Commercial at \@ Left bracket \[ Backslash \\
81 %% Right bracket \] Circumflex \^ Underscore \_
82 %% Grave accent \` Left brace \{ Vertical bar \|
83 %% Right brace \} Tilde \~}
84 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
85 \ProvidesClass{arlims}
86 [2008/04/23 v1.5
87 Massey Research Letters Article Class]
88 \newcommand\@ptsize{}
89 \newif\if@restonecol
90 \newif\if@titlepage
91 \@titlepagefalse
92 \if@compatibility\else
93 \DeclareOption{a4paper}
94 {\setlength\paperheight {297mm}%
95 \setlength\paperwidth {210mm}}
96 \DeclareOption{a5paper}
97 {\setlength\paperheight {210mm}%
98 \setlength\paperwidth {148mm}}
99 \DeclareOption{b5paper}
100 {\setlength\paperheight {250mm}%
101 \setlength\paperwidth {176mm}}
102 \DeclareOption{letterpaper}
103 {\setlength\paperheight {11in}%
104 \setlength\paperwidth {8.5in}}
105 \DeclareOption{legalpaper}
106 {\setlength\paperheight {14in}%
107 \setlength\paperwidth {8.5in}}
108 \DeclareOption{executivepaper}
109 {\setlength\paperheight {10.5in}%
110 \setlength\paperwidth {7.25in}}
111 \DeclareOption{landscape}
112 {\setlength\@tempdima {\paperheight}%
113 \setlength\paperheight {\paperwidth}%
114 \setlength\paperwidth {\@tempdima}}
115 \fi
116 \if@compatibility
117 \renewcommand\@ptsize{0}
118 \else
119 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
120 \fi
121 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
122 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
123 \if@compatibility\else
124 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
125 \fi
126 \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
127 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
128 \if@compatibility\else
129 \DeclareOption{final}{\setlength\overfullrule{0pt}}
130 \fi
131 \DeclareOption{titlepage}{\@titlepagetrue}
132 \if@compatibility\else
133 \DeclareOption{notitlepage}{\@titlepagefalse}
134 \fi
135 \if@compatibility\else
136 \DeclareOption{onecolumn}{\@twocolumnfalse}
137 \fi
138 \DeclareOption{twocolumn}{\@twocolumntrue}
139 \DeclareOption{leqno}{\input{leqno.clo}}
140 \DeclareOption{fleqn}{\input{fleqn.clo}}
141 \DeclareOption{openbib}{%
142 \AtEndOfPackage{%
143 \renewcommand\@openbib@code{%
144 \advance\leftmargin\bibindent
145 \itemindent -\bibindent
146 \listparindent \itemindent
147 \parsep \z@
148 }%
149 \renewcommand\newblock{\par}}%
150 }
151 \ExecuteOptions{a4paper,10pt,oneside,onecolumn,final}
152 \ProcessOptions
153 \input{size1\@ptsize.clo}
154 \setlength\lineskip{1\p@}
155 \setlength\normallineskip{1\p@}
156 \renewcommand\baselinestretch{}
157 \setlength\parskip{0\p@ \@plus \p@}
158 \@lowpenalty 51
159 \@medpenalty 151
160 \@highpenalty 301
161 \setcounter{topnumber}{2}
162 \renewcommand\topfraction{.7}
163 \setcounter{bottomnumber}{1}
164 \renewcommand\bottomfraction{.3}
165 \setcounter{totalnumber}{3}
166 \renewcommand\textfraction{.2}
167 \renewcommand\floatpagefraction{.5}
168 \setcounter{dbltopnumber}{2}
169 \renewcommand\dbltopfraction{.7}
170 \renewcommand\dblfloatpagefraction{.5}
171 \if@twoside
172 \def\ps@headings{%
173 \let\@oddfoot\@empty\let\@evenfoot\@empty
174 \def\@evenhead{\thepage\hfil\slshape\leftmark}%
175 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
176 \let\@mkboth\markboth
177 \def\sectionmark##1{%
178 \markboth {\MakeUppercase{%
179 \ifnum \c@secnumdepth >\z@
180 \thesection\quad
181 \fi
182 ##1}}{}}%
183 \def\subsectionmark##1{%
184 \markright {%
185 \ifnum \c@secnumdepth >\@ne
186 \thesubsection\quad
187 \fi
188 ##1}}}
189 \else
190 \def\ps@headings{%
191 \let\@oddfoot\@empty
192 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
193 \let\@mkboth\markboth
194 \def\sectionmark##1{%
195 \markright {\MakeUppercase{%
196 \ifnum \c@secnumdepth >\m@ne
197 \thesection\quad
198 \fi
199 ##1}}}}
200 \fi
201 \def\ps@myheadings{%
202 \let\@oddfoot\@empty\let\@evenfoot\@empty
203 \def\@evenhead{\thepage\hfil\slshape\leftmark}%
204 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
205 \let\@mkboth\@gobbletwo
206 \let\sectionmark\@gobble
207 \let\subsectionmark\@gobble
208 }
209
210
211 %---------- old definition of title page -------------------------------
212 \newif\ifGrxlb\ifGrxlb
213
214 \if@titlepage
215 \newcommand\maketitle{\begin{titlepage}%
216 \let\footnotesize\small
217 \let\footnoterule\relax
218 \let \footnote \thanks
219 \null\vfil
220 \vskip 60\p@
221 \begin{center}%
222 {\LARGE \@title \par}%
223 \vskip 3em%
224 {\large
225 \lineskip .75em%
226 \begin{tabular}[t]{c}%
227 \@author
228 \end{tabular}\par}%
229 \vskip 1.5em%
230 {\large \@date \par}% % Set date in \large size.
231 \end{center}\par
232 \@thanks
233 \vfil\null
234 \end{titlepage}%
235 \setcounter{footnote}{0}%
236 \global\let\thanks\relax
237 \global\let\maketitle\relax
238 \global\let\@thanks\@empty
239 \global\let\@author\@empty
240 \global\let\@date\@empty
241 \global\let\@title\@empty
242 \global\let\title\relax
243 \global\let\author\relax
244 \global\let\date\relax
245 \global\let\and\relax
246 }
247 \else
248 \newcommand\maketitle{\par
249 \begingroup
250 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
251 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
252 \long\def\@makefntext##1{\parindent 1em\noindent
253 \hb@[email protected]{%
254 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
255 \if@twocolumn
256 \ifnum \col@number=\@ne
257 \@maketitle
258 \else
259 \twocolumn[\@maketitle]%
260 \fi
261 \else
262 \newpage
263 \global\@topnum\z@ % Prevents figures from going at top of page.
264 \@maketitle
265 \fi
266 \thispagestyle{plain}\@thanks
267 \endgroup
268 \setcounter{footnote}{0}%
269 \global\let\thanks\relax
270 \global\let\maketitle\relax
271 \global\let\@maketitle\relax
272 \global\let\@thanks\@empty
273 \global\let\@author\@empty
274 \global\let\@date\@empty
275 \global\let\@title\@empty
276 \global\let\title\relax
277 \global\let\author\relax
278 \global\let\date\relax
279 \global\let\and\relax
280 }
281 \def\@maketitle{%
282 \newpage
283 \null
284 \vskip 2em%
285 \begin{center}%
286 \let \footnote \thanks
287 {\LARGE \@title \par}%
288 \vskip 1.5em%
289 {\large
290 \lineskip .5em%
291 \begin{tabular}[t]{c}%
292 \@author
293 \end{tabular}\par}%
294 \vskip 1em%
295 {\large \@date}%
296 \end{center}%
297 \par
298 \vskip 1.5em}
299 \fi
300
301 \fi
302 %---------------- end of old definition of title page ---------------------
303
304 \setcounter{secnumdepth}{3}
305 \newcounter {part}
306 \newcounter {section}
307 \newcounter {subsection}[section]
308 \newcounter {subsubsection}[subsection]
309 \newcounter {paragraph}[subsubsection]
310 \newcounter {subparagraph}[paragraph]
311 \renewcommand \thepart {\@Roman\c@part}
312 \renewcommand \thesection {\@arabic\c@section}
313 \renewcommand\thesubsection {\thesection.\@arabic\c@subsection}
314 \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
315 \renewcommand\theparagraph {\thesubsubsection.\@arabic\c@paragraph}
316 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
317 \newcommand\part{%
318 \if@noskipsec \leavevmode \fi
319 \par
320 \addvspace{4ex}%
321 \@afterindentfalse
322 \secdef\@part\@spart}
323
324 \def\@part[#1]#2{%
325 \ifnum \c@secnumdepth >\m@ne
326 \refstepcounter{part}%
327 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
328 \else
329 \addcontentsline{toc}{part}{#1}%
330 \fi
331 {\parindent \z@ \raggedright
332 \interlinepenalty \@M
333 \normalfont
334 \ifnum \c@secnumdepth >\m@ne
335 \Large\bfseries \partname\nobreakspace\thepart
336 \par\nobreak
337 \fi
338 \huge \bfseries #2%
339 \markboth{}{}\par}%
340 \nobreak
341 \vskip 3ex
342 \@afterheading}
343 \def\@spart#1{%
344 {\parindent \z@ \raggedright
345 \interlinepenalty \@M
346 \normalfont
347 \huge \bfseries #1\par}%
348 \nobreak
349 \vskip 3ex
350 \@afterheading}
351 \newcommand\section{\@startsection {section}{1}{\z@}%
352 {-3.5ex \@plus -1ex \@minus -.2ex}%
353 {2.3ex \@plus.2ex}%
354 {\normalfont\Large\bfseries}}
355 \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
356 {-3.25ex\@plus -1ex \@minus -.2ex}%
357 {1.5ex \@plus .2ex}%
358 {\normalfont\large\bfseries}}
359 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
360 {-3.25ex\@plus -1ex \@minus -.2ex}%
361 {1.5ex \@plus .2ex}%
362 {\normalfont\normalsize\bfseries}}
363 \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
364 {3.25ex \@plus1ex \@minus.2ex}%
365 {-1em}%
366 {\normalfont\normalsize\bfseries}}
367 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
368 {3.25ex \@plus1ex \@minus .2ex}%
369 {-1em}%
370 {\normalfont\normalsize\bfseries}}
371 \if@twocolumn
372 \setlength\leftmargini {2em}
373 \else
374 \setlength\leftmargini {2.5em}
375 \fi
376 \leftmargin \leftmargini
377 \setlength\leftmarginii {2.2em}
378 \setlength\leftmarginiii {1.87em}
379 \setlength\leftmarginiv {1.7em}
380 \if@twocolumn
381 \setlength\leftmarginv {.5em}
382 \setlength\leftmarginvi {.5em}
383 \else
384 \setlength\leftmarginv {1em}
385 \setlength\leftmarginvi {1em}
386 \fi
387 \setlength \labelsep {.5em}
388 \setlength \labelwidth{\leftmargini}
389 \addtolength\labelwidth{-\labelsep}
390 \@beginparpenalty -\@lowpenalty
391 \@endparpenalty -\@lowpenalty
392 \@itempenalty -\@lowpenalty
393 \renewcommand\theenumi{\@arabic\c@enumi}
394 \renewcommand\theenumii{\@alph\c@enumii}
395 \renewcommand\theenumiii{\@roman\c@enumiii}
396 \renewcommand\theenumiv{\@Alph\c@enumiv}
397 \newcommand\labelenumi{\theenumi.}
398 \newcommand\labelenumii{(\theenumii)}
399 \newcommand\labelenumiii{\theenumiii.}
400 \newcommand\labelenumiv{\theenumiv.}
401 \renewcommand\p@enumii{\theenumi}
402 \renewcommand\p@enumiii{\theenumi(\theenumii)}
403 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
404 \newcommand\labelitemi{\textbullet}
405 \newcommand\labelitemii{\normalfont\bfseries \textendash}
406 \newcommand\labelitemiii{\textasteriskcentered}
407 \newcommand\labelitemiv{\textperiodcentered}
408 \newenvironment{description}
409 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
410 \let\makelabel\descriptionlabel}}
411 {\endlist}
412 \newcommand*\descriptionlabel[1]{\hspace\labelsep
413 \normalfont\bfseries #1}
414 \if@titlepage
415 \newenvironment{abstract}{%
416 \titlepage
417 \null\vfil
418 \@beginparpenalty\@lowpenalty
419 \begin{center}%
420 \bfseries \abstractname
421 \@endparpenalty\@M
422 \end{center}}%
423 {\par\vfil\null\endtitlepage}
424 \else
425 \newenvironment{abstract}{%
426 \if@twocolumn
427 \section*{\abstractname}%
428 \else
429 \small
430 \begin{center}%
431 {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
432 \end{center}%
433 \quotation
434 \fi}
435 {\if@twocolumn\else\endquotation\fi}
436 \fi
437 \newenvironment{verse}
438 {\let\\\@centercr
439 \list{}{\itemsep \z@
440 \itemindent -1.5em%
441 \listparindent\itemindent
442 \rightmargin \leftmargin
443 \advance\leftmargin 1.5em}%
444 \item\relax}
445 {\endlist}
446 \newenvironment{quotation}
447 {\list{}{\listparindent 1.5em%
448 \itemindent \listparindent
449 \rightmargin \leftmargin
450 \parsep \z@ \@plus\p@}%
451 \item\relax}
452 {\endlist}
453 \newenvironment{quote}
454 {\list{}{\rightmargin\leftmargin}%
455 \item\relax}
456 {\endlist}
457 \if@compatibility
458 \newenvironment{titlepage}
459 {%
460 \if@twocolumn
461 \@restonecoltrue\onecolumn
462 \else
463 \@restonecolfalse\newpage
464 \fi
465 \thispagestyle{empty}%
466 \setcounter{page}\z@
467 }%
468 {\if@restonecol\twocolumn \else \newpage \fi
469 }
470 \else
471 \newenvironment{titlepage}
472 {%
473 \if@twocolumn
474 \@restonecoltrue\onecolumn
475 \else
476 \@restonecolfalse\newpage
477 \fi
478 \thispagestyle{empty}%
479 \setcounter{page}\@ne
480 }%
481 {\if@restonecol\twocolumn \else \newpage \fi
482 \if@twoside\else
483 \setcounter{page}\@ne
484 \fi
485 }
486 \fi
487 \newcommand\appendix{\par
488 \setcounter{section}{0}%
489 \setcounter{subsection}{0}%
490 \gdef\thesection{\@Alph\c@section}}
491 \setlength\arraycolsep{5\p@}
492 \setlength\tabcolsep{6\p@}
493 \setlength\arrayrulewidth{.4\p@}
494 \setlength\doublerulesep{2\p@}
495 \setlength\tabbingsep{\labelsep}
496 \skip\@mpfootins = \skip\footins
497 \setlength\fboxsep{3\p@}
498 \setlength\fboxrule{.4\p@}
499 \renewcommand \theequation {\@arabic\c@equation}
500 \newcounter{figure}
501 \renewcommand \thefigure {\@arabic\c@figure}
502 \def\fps@figure{tbp}
503 \def\ftype@figure{1}
504 \def\ext@figure{lof}
505 \def\fnum@figure{\figurename\nobreakspace\thefigure}
506 \newenvironment{figure}
507 {\@float{figure}}
508 {\end@float}
509 \newenvironment{figure*}
510 {\@dblfloat{figure}}
511 {\end@dblfloat}
512 \newcounter{table}
513 \renewcommand\thetable{\@arabic\c@table}
514 \def\fps@table{tbp}
515 \def\ftype@table{2}
516 \def\ext@table{lot}
517 \def\fnum@table{\tablename\nobreakspace\thetable}
518 \newenvironment{table}
519 {\@float{table}}
520 {\end@float}
521 \newenvironment{table*}
522 {\@dblfloat{table}}
523 {\end@dblfloat}
524 \newlength\abovecaptionskip
525 \newlength\belowcaptionskip
526 \setlength\abovecaptionskip{10\p@}
527 \setlength\belowcaptionskip{0\p@}
528 \long\def\@makecaption#1#2{%
529 \vskip\abovecaptionskip
530 \sbox\@tempboxa{#1: #2}%
531 \ifdim \wd\@tempboxa >\hsize
532 #1: #2\par
533 \else
534 \global \@minipagefalse
535 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
536 \fi
537 \vskip\belowcaptionskip}
538 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
539 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
540 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
541 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
542 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
543 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
544 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
545 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
546 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
547 \newcommand\@pnumwidth{1.55em}
548 \newcommand\@tocrmarg{2.55em}
549 \newcommand\@dotsep{4.5}
550 \setcounter{tocdepth}{3}
551 \newcommand\tableofcontents{%
552 \section*{\contentsname
553 \@mkboth{%
554 \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
555 \@starttoc{toc}%
556 }
557 \newcommand*\l@part[2]{%
558 \ifnum \c@tocdepth >-2\relax
559 \addpenalty\@secpenalty
560 \addvspace{2.25em \@plus\p@}%
561 \setlength\@tempdima{3em}%
562 \begingroup
563 \parindent \z@ \rightskip \@pnumwidth
564 \parfillskip -\@pnumwidth
565 {\leavevmode
566 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
567 \nobreak
568 \if@compatibility
569 \global\@nobreaktrue
570 \everypar{\global\@nobreakfalse\everypar{}}%
571 \fi
572 \endgroup
573 \fi}
574 \newcommand*\l@section[2]{%
575 \ifnum \c@tocdepth >\z@
576 \addpenalty\@secpenalty
577 \addvspace{1.0em \@plus\p@}%
578 \setlength\@tempdima{1.5em}%
579 \begingroup
580 \parindent \z@ \rightskip \@pnumwidth
581 \parfillskip -\@pnumwidth
582 \leavevmode \bfseries
583 \advance\leftskip\@tempdima
584 \hskip -\leftskip
585 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
586 \endgroup
587 \fi}
588 \newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
589 \newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
590 \newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
591 \newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
592 \newcommand\listoffigures{%
593 \section*{\listfigurename}%
594 \@mkboth{\MakeUppercase\listfigurename}%
595 {\MakeUppercase\listfigurename}%
596 \@starttoc{lof}%
597 }
598 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
599 \newcommand\listoftables{%
600 \section*{\listtablename}%
601 \@mkboth{%
602 \MakeUppercase\listtablename}%
603 {\MakeUppercase\listtablename}%
604 \@starttoc{lot}%
605 }
606 \let\l@table\l@figure
607 \newdimen\bibindent
608 \setlength\bibindent{1.5em}
609 \newenvironment{thebibliography}[1]
610 {\section*{\refname}%
611 \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
612 \list{\@biblabel{\@arabic\c@enumiv}}%
613 {\settowidth\labelwidth{\@biblabel{#1}}%
614 \leftmargin\labelwidth
615 \advance\leftmargin\labelsep
616 \@openbib@code
617 \usecounter{enumiv}%
618 \let\p@enumiv\@empty
619 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
620 \sloppy
621 \clubpenalty4000
622 \@clubpenalty \clubpenalty
623 \widowpenalty4000%
624 \sfcode`\.\@m}
625 {\def\@noitemerr
626 {\@latex@warning{Empty `thebibliography' environment}}%
627 \endlist}
628 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
629 \let\@openbib@code\@empty
630 \newenvironment{theindex}
631 {\if@twocolumn
632 \@restonecolfalse
633 \else
634 \@restonecoltrue
635 \fi
636 \twocolumn[\section*{\indexname}]%
637 \@mkboth{\MakeUppercase\indexname}%
638 {\MakeUppercase\indexname}%
639 \thispagestyle{plain}\parindent\z@
640 \parskip\z@ \@plus .3\p@\relax
641 \columnseprule \z@
642 \columnsep 35\p@
643 \let\item\@idxitem}
644 {\if@restonecol\onecolumn\else\clearpage\fi}
645 \newcommand\@idxitem{\par\hangindent 40\p@}
646 \newcommand\subitem{\@idxitem \hspace*{20\p@}}
647 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
648 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
649 \renewcommand\footnoterule{%
650 \kern-3\p@
651 \hrule\@width.4\columnwidth
652 \kern2.6\p@}
653 \newcommand\@makefntext[1]{%
654 \parindent 1em%
655 \noindent
656 \hb@[email protected]{\hss\@makefnmark}#1}
657 \newcommand\contentsname{Contents}
658 \newcommand\listfigurename{List of Figures}
659 \newcommand\listtablename{List of Tables}
660 \newcommand\refname{References}
661 \newcommand\indexname{Index}
662 \newcommand\figurename{Figure}
663 \newcommand\tablename{Table}
664 \newcommand\partname{Part}
665 \newcommand\appendixname{Appendix}
666 \newcommand\abstractname{}
667 \def\today{\ifcase\month\or
668 January\or February\or March\or April\or May\or June\or
669 July\or August\or September\or October\or November\or December\fi
670 \space\number\day, \number\year}
671 \setlength\columnsep{10\p@}
672 \setlength\columnseprule{0\p@}
673 \pagestyle{plain}
674 \pagenumbering{arabic}
675
676 % === ARLIMS adaptions following ============================================
677 \pagestyle{empty}
678
679 \setlength{\oddsidemargin}{1.5 cm}
680 \setlength{\evensidemargin}{-0.5 cm}
681 \setlength{\textheight}{22 cm}
682 \setlength{\textwidth}{15 cm}
683 \setlength{\topmargin}{0 cm}
684
685 % --- special indexing to cope with the list of articles
686 \newif\ifIndexMade
687 \def\makeartIndex{%
688 \protected@write1{}{\string\global\string\IndexMadetrue}
689 \newwrite\@artIndexfile
690 \immediate\openout\@artIndexfile=\jobname.adx
691 \def\artIndex{\@bsphack\begingroup\@sanitize\@wrartIndex}
692 \typeout{Writing artIndex file \jobname.adx}%
693 \let\makeartIndex\@empty
694 }
695
696 \def\@wrartIndex#1{%
697 \protected@write\@artIndexfile{}{%
698 \string\artIndexentry{\factTitle}%
699 {\thepage}%
700 {\string\last#1}%
701 {\factAuthor\factAuthorB\factAuthorC\factAuthorD}}%
702 \endgroup%
703 \@esphack%
704 }
705
706 \def\artIndex{\@bsphack\begingroup \@sanitize\@artIndex}
707 \def\@artIndex#1{\endgroup\@esphack}
708
709 \def\artIndexLast#1{%
710 \protected@write1{}{\string\gdef\string\last#1{\thepage}}%
711 }
712
713 % --- to set up the headers permanently
714 \newcommand{\markperm}[2]{%
715 \global\def\@evenhead{\arabic{page}\hfil{#1}}%
716 \global\def\@oddhead{{#2}\hfil\arabic{page}}
717 }
718 % (yes, I know I've hardwired arabic page numbering)
719
720 % --- to set up the headers with a once off first
721 \newcommand{\markonce}[3]{%
722 \global\def\@evenhead{\arabic{page}\hfil{#1}\markperm{#2}{#3}}%
723 \global\def\@oddhead{{#1}\hfil\arabic{page}\markperm{#2}{#3}}%
724 }
725
726 %% Put a line after the abstract %%
727 \newcommand{\drawline}{%
728 \vspace*{1mm}
729 \begin{center}
730 \rule{\textwidth}{0.2mm}
731 \end{center}
732 \vspace*{1mm}
733 }
734
735 \newcommand{\reff}[1]{(\ref{#1})}
736
737
738 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
739
740 % Define the author and title commands. Bascially each just stuffs
741 % the argument into a storage command. I need to define the blank
742 % storage commands because I am using the "renewcomand", since I
743 % need to do this for each article.
744
745 \def\author{}
746 \def\institute{}
747
748 \def\factTitle{}
749
750 \def\factAuthor{}
751 \def\factAuthorB{}
752 \def\factAuthorC{}
753 \def\factAuthorD{}
754
755 \def\factInstitute{}
756 \def\factInstituteB{}
757 \def\factInstituteC{}
758 \def\factInstituteD{}
759
760 \def\footInst{}
761 \def\footInstB{}
762 \def\footInstC{}
763 \def\footInstD{}
764
765 \def\footAuthorInst{}
766 \def\footAuthorInstB{}
767 \def\footAuthorInstC{}
768 \def\footAuthorInstD{}
769
770 \renewcommand{\author}[2][]{
771 \renewcommand{\footAuthorInst}{#1}
772 \renewcommand{\factAuthor}{#2}
773 }
774
775 \newcommand{\authorB}[2][]{
776 \renewcommand{\footAuthorInstB}{#1}
777 \renewcommand{\factAuthorB}{#2}
778 }
779
780 \newcommand{\authorC}[2][]{
781 \renewcommand{\footAuthorInstC}{#1}
782 \renewcommand{\factAuthorC}{#2}
783 }
784
785 \newcommand{\authorD}[2][]{
786 \renewcommand{\footAuthorInstD}{#1}
787 \renewcommand{\factAuthorD}{#2}
788 }
789
790 \renewcommand{\institute}[2][]{
791 \renewcommand{\footInst}{#1}
792 \renewcommand{\factInstitute}{#2}
793 }
794
795 \newcommand{\instituteB}[2][*]{
796 \renewcommand{\footInstB}{#1}
797 \renewcommand{\factInstituteB}{#2}
798 }
799
800 \newcommand{\instituteC}[2][**]{
801 \renewcommand{\footInstC}{#1}
802 \renewcommand{\factInstituteC}{#2}
803 }
804
805 \newcommand{\instituteD}[2][***]{
806 \renewcommand{\footInstD}{#1}
807 \renewcommand{\factInstituteD}{#2}
808 }
809
810 \def\nameTag{}
811
812 \renewcommand{\title}[1]{
813 \renewcommand{\factTitle}{#1}
814 }
815
816 \newcommand{\iimsaddress}{
817 \begin{center}
818 \textit{Institute of Information \& Mathematical Sciences\\
819 Massey University at Albany, Auckland, New Zealand.}
820 \end{center}
821 }
822
823 \newcommand{\maketitle}[1][\factTitle]{
824 \begin{center}
825 \markonce{
826 \parbox{10cm}{\small
827 \textit{The Python Papers Monograph,} Vol.~1 (2009)\\[1mm]
828 Available online at http://ojs.pythonpapers.org/index.php/tppm
829 }
830 }
831 {\factAuthor\factAuthorB\factAuthorC\factAuthorD}
832 {#1}
833
834 \vspace*{1cm}
835
836 \begin{minipage}{12cm}
837 \begin{center}
838 {\bfseries\Large\factTitle\par}
839 \vspace*{2mm}
840 \end{center}
841 \end{minipage}
842
843 \vspace*{3mm}
844
845 \textsc{%
846 \factAuthor $^{\footAuthorInst}$%
847 \factAuthorB $^{\footAuthorInstB}$%
848 \factAuthorC $^{\footAuthorInstC}$%
849 \factAuthorD $^{\footAuthorInstD}$%
850 }
851
852 \vspace*{1mm}
853
854 $^{\footInst}$\textit{\factInstitute}
855 $^{\footInstB}$\textit{\factInstituteB}
856 $^{\footInstC}$\textit{\factInstituteC}
857 $^{\footInstD}$\textit{\factInstituteD}
858
859 \artIndex{\nameTag}
860 \end{center}
861 }
862
863 % calculate the margins so that the text on opposite sides
864 % of the same sheet is lined up at the edges
865 % ok, its a fudge, but you can change the oddsidemargin
866 % to shift both sides in sync.
867
868 \oddsidemargin1cm
869 \evensidemargin\paperwidth
870 \addtolength{\evensidemargin}{-\oddsidemargin}
871 \addtolength{\evensidemargin}{-205mm}
872
873 % --- turn off a few things -------------------------------------------------
874 \renewcommand{\markboth}[2]{}
875 \renewcommand{\markright}[1]{}
876 \newcommand{\markheading}[1]{}
877
878 \usepackage{amsmath,amsfonts,dsfont}
879 \usepackage{amsthm}
880
881 \newif\ifCombinedRlims
882
883 % === end of ARLIMS adaptions ===============================================
884
885 \if@twoside
886 \else
887 \raggedbottom
888 \fi
889 \if@twocolumn
890 \twocolumn
891 \sloppy
892 \flushbottom
893 \else
894 \onecolumn
895 \fi
896 \endinput
897 %%
898 %% End of file `arlims.cls'.