Debian Codegraph @

texmf-dist/source/latex/active-conf/active-conf.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright 2005 by Will Robertson <[email protected]>
4 %
5 % Distributable under the LaTeX Project Public License,
6 % version 1.3a or higher (your choice). The latest version of
7 % this license is at: http://www.latex-project.org/lppl.txt
8 %
9 % This work is "maintained" (as per LPPL maintenance status)
10 % by Will Robertson.
11 %
12 % This work contains a verbatim copy of the topcapt package,
13 % by Robin Fairbairns, which also has an LPPL license.
14 %
15 % This work consists of the file active-conf.dtx
16 % and the derived files active-conf.cls and active-conf.pdf.
17 %
18 %<*driver>
19 \ProvidesFile{active-conf.dtx}
20 %</driver>
21 %<classfile>\NeedsTeXFormat{LaTeX2e}
22 %<!2006>\ProvidesClass{active-conf}
23 %<classfile&2006>\ProvidesClass{active-conf-2006}
24 %<*classfile>
25 [2006/02/08 v0.3a Class file for the Active conference]
26 %</classfile>
27 %
28 %<*driver>
29 \documentclass{ltxdoc}
30 \makeatletter
31 \EnableCrossrefs
32 \CodelineIndex
33 \RecordChanges
34 \usepackage{amsmath,amssymb,array,calc,graphicx,hyperref,ifpdf,ifthen,varioref}
35 \usepackage[T1]{fontenc}
36 \usepackage{lmodern}
37 \usepackage[osf]{mathpazo}
38 \ifpdf\IfFileExists{microtype.sty}{\usepackage[protrusion=true,expansion=false]{microtype}}{}\fi
39 \linespread{1.069} % Palatino needs more space between lines
40 \frenchspacing % Remove ugly extra space after punctuation
41 \hypersetup{colorlinks, breaklinks, linktocpage,
42 linkcolor=red, citecolor=red, filecolor=blue, urlcolor=blue}
43 \setlength\extrarowheight{2pt} % Make tables bearable
44 % Crude referencing commands:
45 \newcommand\tabref[1]{Table~\vref{tab:#1}}
46 \newcommand\figref[1]{Figure~\vref{fig:#1}}
47 \newcommand\secref[1]{Section~\vref{sec:#1}}
48 % Various labelling commands:
49 \newcommand*\name[1]{\textsc{#1}}
50 \newcommand*\pkg[2][]{\relax
51 \edef\@tempa{#1}\relax
52 \ifx\@tempa\@empty
53 \textsf{#2}\else
54 \href{#1}{\textsf{#2}}\fi}
55 \newcommand*\env[1]{\textsf{#1}}
56 \let\latin\textit
57 \def\eg{\latin{e.g.}}
58 \def\ie{\latin{i.e.}}
59 \def\etc{\@ifnextchar.{\latin{etc}}{\latin{etc.}\@}}
60 % Better float parameters: (from the TeX FAQ)
61 \renewcommand{\topfraction}{.85}
62 \renewcommand{\bottomfraction}{.7}
63 \renewcommand{\textfraction}{.15}
64 \renewcommand{\floatpagefraction}{.66}
65 \renewcommand{\dbltopfraction}{.66}
66 \renewcommand{\dblfloatpagefraction}{.66}
67 \setcounter{topnumber}{9}
68 \setcounter{bottomnumber}{9}
69 \setcounter{totalnumber}{20}
70 \setcounter{dbltopnumber}{9}
71 % Section heading customisation:
72 \renewcommand\section{\@startsection {section}{1}{\z@}%
73 {-3ex \@plus -1ex \@minus -.2ex}%
74 {2ex \@plus 0.2ex}%
75 {\centering\normalsize\scshape}}
76 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
77 {-2.5ex\@plus -1ex \@minus -.2ex}%
78 {1.5ex \@plus 0.2ex}%
79 {\centering\normalsize\itshape}}
80 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
81 {-2ex\@plus -1ex \@minus -.2ex}%
82 {1.5ex \@plus 0.2ex}%
83 {\centering\normalfont\normalsize}}
84 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
85 {3.25ex \@plus1ex \@minus.2ex}%
86 {-1em}%
87 {\normalfont\normalsize\itshape}}
88 \let\subparagraph\undefined
89 \def\@maketitle{%
90 \newpage
91 {\centering
92 {\large\@title\par}\vskip1em
93 \textsc\@author\par\vskip1em
94 \@date\par}\vskip2em}
95 % Abstract customisation:
96 \renewenvironment{abstract}{%
97 \begin{trivlist}\item[]
98 \setlength\leftskip{0.15\textwidth}
99 \setlength\rightskip{0.15\textwidth}
100 \small\textit{Abstract}\quad}{\end{trivlist}}
101 % TOC customisation: Make it two-column to save space;
102 % Remove leaders in the TOC, replace with \quad.
103 \setcounter{tocdepth}{2}
104 \renewcommand\tableofcontents{%
105 \section*{\contentsname}
106 \begin{trivlist}\item[]
107 \begin{multicols}{2}
108 \setlength\parskip{0pt}
109 \small
110 \@starttoc{toc}%
111 \end{multicols}
112 \end{trivlist}}
113 \renewcommand*\l@section[2]{%
114 \ifnum \c@tocdepth >\z@
115 \addpenalty\@secpenalty
116 \addvspace{1.0em \@plus\p@}%
117 \setlength\@tempdima{1.5em}%
118 \begingroup
119 \raggedright
120 \parindent \z@
121 \rightskip \z@
122 \parfillskip \@flushglue
123 \leavevmode
124 \advance\leftskip\@tempdima
125 \hskip -\leftskip
126 #1\quad\nobreak#2\hfil\par
127 \endgroup
128 \fi}
129 \def\@dottedtocline#1#2#3#4#5{%
130 \ifnum #1>\c@tocdepth \else
131 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip \@flushglue
132 \parindent #2\relax\@afterindenttrue
133 \interlinepenalty\@M
134 \leavevmode
135 \raggedright
136 \@tempdima #3\relax
137 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
138 {#4}\quad\nobreak#5\hfil\par}%
139 \fi}
140 % Better footnotes:
141 \let\old@makefntext\@makefntext
142 \renewcommand\@makefntext[1]{%
143 \vspace{2pt}%
144 \setlength\parindent{-1.8em}%
145 \setlength\leftskip{1.8em}%
146 \makebox[1.8em][l]{\normalfont\small\@thefnmark.}#1}
147 % LOGOS, tuned for Palatino:
148 \def\TeX{T\kern-.15em\lower.5ex\hbox{E}\kern-.07em X\spacefactor1000\relax}
149 \begin{document}
150 \GetFileInfo{active-conf.dtx}
151 \DocInput{active-conf.dtx}
152 \end{document}
153 %</driver>
154 %
155 % \fi
156 %
157 % \DoNotIndex{\@tempa,\@tempb,\@temptokena}
158 % \DoNotIndex{\begin,\begingroup,\bgroup}
159 % \DoNotIndex{\def}
160 % \DoNotIndex{\edef,\egroup,\end,\endgroup,\else,\expandafter}
161 % \DoNotIndex{\fi}
162 % \DoNotIndex{\if,\ifnum,\let}
163 % \DoNotIndex{\relax,\RequirePackage}
164 % \DoNotIndex{\the,\then}
165 %
166 % \changes{v0.2}{2006/02/02}{Style changed to match \textsc{active} 2004. Lots of little changes for this.}
167 % \changes{v0.3}{2006/02/07}{Combined class implemented for 2006 alone.}
168 % \changes{v0.3a}{2006/02/08}{Added PDF metadata hooks.}
169 %
170 % \makeatletter
171 % \CheckSum{787}
172 % \title{The \pkg{active-conf} class}
173 % \author{Will Robertson}
174 % \date{\filedate \qquad \fileversion}
175 %
176 % \maketitle ^^A% BEGIN!
177 %
178 % \begin{abstract}\noindent
179 % This document describes the \LaTeX\ class \pkg{active-conf}, which is intended for use initially to typeset papers that are to be published in the proceedings of the Active 2006 conference, which is to be hosted by the School of Mechanical Engineering, University of Adelaide. Its suitability for subsequent conferences is expected.
180 % \end{abstract}
181 %
182 % \tableofcontents
183 %
184 % \section{About this document}
185 %
186 % This document contains the usage and implementation of the \pkg{active-conf} class.
187 % Users will almost certainly be interested in the former. This \textsc{pdf} contains
188 % hyperlinks within it to aid navigation (these are typeset in {\color{red}red}), and
189 % hyperlinks to internet sites to help find further information (these are typeset in
190 % {\color{blue}blue}).
191 %
192 % The source of this document, \texttt{active-conf.dtx}, when run through \LaTeX,
193 % will produce both the PDF documentation (the file you are currently reading)
194 % \emph{and} the class file used to typeset your articles.
195 %
196 % \section{Description and usage}
197 % This section describes how to use the class.
198 % Please refer to the example document for context.
199 %
200 % \subsection{Active 2006 class}
201 % The Active 2006 class, \textsf{active-conf-2006}, is a variation on the
202 % \textsf{active-conf} class that incorporates the specific customisation
203 % for that year's conference. Future conferences may use the base class with
204 % customisation as described below; conversely, 2006 users need not take notice of
205 % the first paragraph of the following section.
206 %
207 % On confirmation of abstract acceptance, each paper is assigned a number.
208 % Input this in the document as follows: (for, say, the \texttt{088} paper number)
209 % \begin{verbatim}
210 % \papernumber{088}
211 % \end{verbatim}
212 %
213 % \subsection{Document preamble}
214 % \DescribeMacro{\documentclass}
215 % Use this class with standard \LaTeX\ parlance: |\documentclass{active-conf}|.
216 % One class option is possible: the name or year of the conference. It is the responsibility
217 % of the conference organisers to distribute a file for the conference of their
218 % year corresponding to this option. To use an example, if the class option is
219 % \texttt{[2006]} (\ie, |\documentclass[2006]{active-conf}|)
220 % the contents of the file \texttt{active-header-2006.tex} will be used to
221 % construct a header on the first page of the article.\footnote{If \texttt{active-header-2006.tex}
222 % didn't exist, an error would occur when processing the document.}
223 %
224 % The document will be set up to use A4 paper with 3\,cm margins all 'round.
225 % The body text font is 12\,pt/15.25\,pt Times.\relax
226 % \footnote{That is, the nominal text font size is 12\,pt,
227 % and the distance between each subsequent baseline of paragraph
228 % text is 15.25\,pt.}
229 % The sans serif font is Helvetica\relax
230 % \footnote{Scaled to match Times' x-height
231 % (\ie, the lowercase letters are the same height in both alphabets)}
232 % and the fixed width font (or typewriter font) is Courier.
233 %
234 % The following packages are loaded so that you don't have to:
235 % \pkg[http://tug.ctan.org/tex-archive/macros/latex/required/amslatex/math/]{amsmath},
236 % \pkg[http://tug.ctan.org/tex-archive/macros/latex/required/amslatex/math/]{amssymb},
237 % \pkg[http://www.ctan.org/tex-archive/macros/latex/required/tools/]{array},
238 % \pkg[http://tug.ctan.org/tex-archive/macros/latex/required/tools/]{bm},
239 % \pkg[http://tug.ctan.org/tex-archive/macros/latex/required/graphics/]{graphicx}.\relax
240 % \footnote{Look for file \texttt{amsldoc.pdf} for \pkg{amsmath} \& \pkg{amssymb}
241 % documentation; file \texttt{grfguide.pdf} for \pkg{graphicx} documentation.}
242 % Other packages are required for the class but they aren't of particular interest
243 % for the purposes of the author; refer to the Implementation (\secref{packages})
244 % for more information. Extra packages may also be loaded if desired, provided that
245 % they do not change the layout or text fonts used in the document.
246 %
247 % \subsection{Frontmatter metadata}
248 % \DescribeMacro{\title}
249 % \DescribeMacro{\author}
250 % \DescribeMacro{\email}
251 % \DescribeMacro{\address}
252 % \DescribeMacro{\note}
253 % This class provides added procedures to typeset extra information in the frontmatter
254 % of the article. This information must be specified before \cmd\maketitle. \cmd\title\
255 % remains the same, but \cmd\author\ is changed and \cmd\email, \cmd\address, and \cmd\note\
256 % are all completely new.
257 %
258 % When typeset, the information is divided into `address blocks', each of which may
259 % contain multiple authors. True to its description, each block holds a single address
260 % that is shared by each author contained in that block.
261 %
262 % \DescribeMacro{\maketitle}
263 % Once the metadata has been specified, the \cmd\maketitle\ command is used
264 % to create the title block containing this information. To be illustrative,
265 % an example best demonstrates the use of the new frontmatter commands.
266 % See \figref{fm} for a typical input and its typeset appearance
267 % (albeit with different fonts).
268 %
269 % \def\exinput{\noindent\textit{Input:}}
270 % \def\exoutput{\noindent\textit{Output:}}
271 % \setlength\fboxsep{1em}
272 % \begin{figure}
273 % \exinput
274 % \begin{verbatim}
275 % \author{A.\,B.~C------} \email{abc@university}
276 % \author{D.\,E.~F------}
277 % \address{University \\ City, State \\ Country}
278 %
279 % \author{G.\,H.~I------} \email{ghi@company}
280 % \address{Company \\ City, State \\ Country}
281 %
282 % \note{The authors would like to thank the ABC research grant.}
283 % \maketitle
284 % \end{verbatim}
285 % \vspace{-\baselineskip}
286 % \exoutput
287 % \begin{trivlist}\item[]
288 % \noindent\hspace{-\fboxsep}%
289 % \fbox{\vbox{\noindent
290 % \begin{minipage}[t]{\textwidth}
291 % \let\@makefntext\old@makefntext
292 % \long\def\@makecaption#1#2{%
293 % \vskip\abovecaptionskip
294 % \sbox\@tempboxa{{\itshape #1}~--~#2}%
295 % \ifdim \wd\@tempboxa >\hsize
296 % {\itshape #1}~--~#2\par
297 % \else
298 % \global\@minipagefalse
299 % \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
300 % \fi
301 % \vskip\belowcaptionskip}
302 %
303 % \centerline{\itshape Top of the page\dots}
304 % \vspace{2ex}
305 % \begin{minipage}[t]{140pt}%
306 % \centering
307 % A.\,B.~C------\rlap{\textsuperscript a},~\,D.\,E.~F------\par
308 % {\linespread{0.9}\small University \\ City, State \\ Country\par}
309 % \end{minipage}\hfill
310 % \begin{minipage}[t]{140pt}%
311 % \centering
312 % G.\,H.~I------\rlap{\textsuperscript b}\par
313 % {\linespread{0.9}\small Company \\ City, State \\ Country\par}
314 % \end{minipage}\hfill\null
315 %
316 % \vspace{2ex}
317 % \centerline{\itshape\dots the rest of the page\dots}
318 % \vspace{2ex}
319 %
320 % {\def\@makefntext#1{\parindent 1em\noindent#1}
321 % \footnotetext[0]{The authors would like to thank the ABC research grant.}
322 % \footnotetext[0]{~}}
323 % \def\thempfootnote{\@alph\c@mpfootnote}
324 % \footnotetext[1]{Email address: \texttt{abc@university}}
325 % \footnotetext[2]{Email address: \texttt{ghi@company}}
326 % \end{minipage}}}
327 % \end{trivlist}
328 % \caption{Example of the frontmatter in the \pkg{active-conf} class.}
329 % \label{fig:fm}
330 % \end{figure}
331 %
332 % To summarise:
333 % \begin{description}\setlength\parskip{0pt}
334 % \item[\cmd\title] Specified as usual.
335 % \item[\cmd\author] Separates groups of authors by their respective \cmd\address.
336 % \item[\cmd\email] Adds a footnote containing the email address
337 % of the previous author.
338 % \item[\cmd\address] Creates a block containing authors previously specified.
339 % \item[\cmd\note] Adds a note (used for thanks', etc.)
340 % as an unlabelled footnote.\relax
341 % \footnote{As many notes as desired may be used; each is typeset on a separate line.}
342 % \end{description}
343 %
344 % \DescribeMacro{\showaffiliations}
345 % If the command \cmd\showaffiliations\ is placed before the author declarations,
346 % each author will reference the address to which they are associated.
347 % An optional argument to \cmd\author\ can be used to customise which addresses
348 % are referenced as affiliations; for example |\author[1,3]{A.\,N.~Author}| designates
349 % an affiliation for this author with the first and third addresses.
350 %
351 %
352 % \DescribeMacro{\pdfkeywords}
353 % Finally, optional, comma-separated keywords may be added to the paper with
354 % the command in the margin:
355 % \begin{verbatim}
356 % \pdfkeywords{Active noise control, Virtual microphones}
357 % \end{verbatim}
358 %
359 % \subsection{Floats: figures and tables}
360 % \DescribeEnv{figure}
361 % \DescribeEnv{table}
362 % Several enhancements have been added to make things easier when using figures and
363 % tables. Both are centred on the page, so no explicit commands for doing so are
364 % required. Secondly, the default float placement parameter is \texttt{[htbp]},\relax
365 %\footnote{That is, floats will be placed at the position of their definition
366 % if possible; otherwise they will be placed at the top or bottom of a
367 % subsequent text page or on a page consisting of only floats in the last resort.}
368 % so the optional argument generally won't be required for either figures or tables.
369 %
370 % \DescribeMacro{\caption}
371 % The \cmd\caption\ command used to label figures and tables is now contextually
372 % sensitive to adjust its vertical spacing depending on which float it is being
373 % used within. This ensures appropriate spacing for the following rules:
374 % captions must be placed \emph{below} figures and \emph{above} tables.
375 %
376 % A typical example of the \env{figure} environment follows:
377 % \begin{verbatim}
378 % \begin{figure}
379 % \includegraphics{figurename}
380 % \caption{Figure caption.}
381 % \label{fig:label}
382 % \end{figure}
383 % \end{verbatim}
384 % A typeset example of how the \env{table} environment should be used is shown in
385 % \figref{tab}. When displaying tabulated data, avoid vertical lines and use horizontal rules
386 % only to divide data from its label or to separate multiple sets of data.
387 % The more lines used in the table, the more distracting it is from the data being displayed.
388 % See the \href{http://tug.ctan.org/tex-archive/macros/latex/contrib/booktabs/}{booktabs}
389 % package documentation for more information on effective table design.
390 % \begin{figure}
391 % \exinput
392 % \begin{verbatim}
393 % \begin{table}
394 % \caption{This is an example of how you should tabulate data.}
395 % \label{tab:label}
396 % \begin{tabular}{@{} cccc @{}}
397 % \hrule
398 % One & Two & Three & Four \\
399 % \hrule
400 % 1 & 4 & 7 & 10 \\ 2 & 5 & 8 & 11 \\ 3 & 6 & 9 & 12 \\
401 % \hrule
402 % \end{tabular}
403 % \end{table}
404 % \end{verbatim}
405 % \vspace{-\baselineskip}
406 % \exoutput
407 % \begin{trivlist}\item[]
408 % \noindent\hspace{-\fboxsep}%
409 % \fbox{\vbox{\noindent
410 % \begin{minipage}[t]{\textwidth}\centering
411 % \def\@captype{table}
412 % \long\def\@makecaption#1#2{%
413 % \vskip\abovecaptionskip
414 % \sbox\@tempboxa{\small #1:~#2}%
415 % \ifdim \wd\@tempboxa >\hsize
416 % {\small #1:~#2\par}%
417 % \else
418 % \global\@minipagefalse
419 % \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
420 % \fi
421 % \vskip\belowcaptionskip}
422 %
423 % \caption{This is an example of how you should tabulate data.}\vspace{1ex}
424 % \label{tab:label}
425 % \begin{tabular}{@{} cccc @{}}
426 % \hline
427 % One & Two & Three & Four \\
428 % \hline
429 % 1 & 4 & 7 & 10 \\ 2 & 5 & 8 & 11 \\ 3 & 6 & 9 & 12 \\
430 % \hline
431 % \end{tabular}
432 % \end{minipage}}}
433 % \end{trivlist}
434 % \caption{Example of tabular data.}
435 % \label{fig:tab}
436 % \end{figure}
437 %
438 % \newpage
439 % \subsection{Referencing}
440 % \DescribeMacro{\figref}
441 % \DescribeMacro{\tabref}
442 % \DescribeMacro{\eqref}
443 % \DescribeMacro{\secref}
444 % The class defines the following four commands for referring to document elements:
445 % \cmd\figref, \cmd\tabref, \cmd\eqref, and \cmd\secref. They are used in a similar way
446 % to the \cmd\ref\ command, but print the name of the reference type before the
447 % numbered label. For example,
448 % \begin{quote}
449 % |\figref{label}| $\quad\longrightarrow\quad$ |Figure~\ref{fig:label}|
450 % \end{quote}
451 % and similarly for the others (respectively, `Table', `Equation', and `Section').
452 %
453 % Should you wish to use a more sophisticated referencing package
454 % (the author's recommendation is
455 % \pkg[http://tug.ctan.org/tex-archive/macros/latex/contrib/refstyle/]{refstyle}),
456 % these control sequences may need to be undefined before the package is loaded to
457 % prevent conflicts. This may done with, \eg, \cmd\let\cmd\figref\cmd\undefined, and so on.
458 %
459 % \DescribeMacro{\cite}
460 % The \cmd\cite\ command is redefined to remove any preceding space and replace it with non-breaking space; in other words, its output will never follow a line break. If you desire more advanced behaviour with this command, use the following in your preamble:
461 % \begin{verbatim}
462 % \usepackage[sort&compress,numbers]{natbib}
463 % \usepackage{hypernat}
464 % \end{verbatim}
465 % The \pkg[http://www.tug.org/tex-archive/macros/latex/contrib/misc/hypernat.sty]{hypernat} package is not necessarily standard, so you may need to obtain it manually.
466 %
467 % \StopEventually{}
468 %
469 % \clearpage
470 % \section{Implementation}
471 %
472 % This section contains the commented source code of this package. It is not
473 % intended to be useful or interesting to the majority of users of the class.
474 %
475 % This class has been written somewhat hastily to produce an easy-to-use
476 % \LaTeX\ style file for authors writing articles for the conference Active 2006.
477 % As such, it is not up to the standard of a `professional' class file although it
478 % might contain some (not particularly and not many) novel ideas; there are probably
479 % be lots of limitations/bugs since it has not been extensively tested.
480 % Use at your own risk!
481 %
482 %
483 %
484 % \subsection{Option processing}\label{sec:classoption}
485 % Take one option for the class: the name or year of the conference.
486 % The file \texttt{YYYY.tex} is then used to construct the titlepage header.
487 % We use \cmd\active@option@warn\ to give an error if the user tries to use
488 % more than one class option.
489 %<*!2006>
490 % \begin{macrocode}
491 \let\active@option@warn\relax
492 \DeclareOption*{%
493 \active@option@warn
494 \def\active@option@warn{%
495 \ClassError{active-conf}
496 {The only class option possible is the name or year of the conference}
497 {\MessageBreak
498 This class takes one option: the name or year of the conference.\MessageBreak
499 The file active-header-YYYY.tex is then used to create the titlepage header.\MessageBreak}}
500 \let\active@option\CurrentOption}
501 \ProcessOptions
502 % \end{macrocode}
503 %</!2006>
504 %<*classfile>
505 % \subsection{Class and package loading}\label{sec:packages}
506 % Base everything off the eponymous \pkg{article} class. Set up the fonts\relax
507 % \footnote{Note that we need to call \cmd\normalfont\ after selecting the new fonts
508 % and before selecting the new encoding in order to ensure that \texttt{T1} `CM'
509 % fonts aren't loaded, which can cause an error in some distributions.},
510 % and load a bunch of packages first to set up the document properties and second
511 % for the convenience of the user.
512 % \begin{macrocode}
513 \LoadClass[12pt]{article}
514 \renewcommand\rmdefault{ptm}
515 \renewcommand\ttdefault{pcr}
516 \RequirePackage[scaled=0.87]{helvet}
517 \normalfont
518 \RequirePackage[T1]{fontenc}
519 \RequirePackage{textcomp}
520 \RequirePackage{calc,ifthen,url}
521 \RequirePackage[a4paper,margin=3cm,ignoreall]{geometry}
522 \RequirePackage{amsmath,amssymb,array,bm,graphicx,hyperref}
523 \hypersetup{
524 colorlinks,
525 linkcolor=black,
526 anchorcolor=black,
527 citecolor=black,
528 filecolor=black,
529 menucolor=black,
530 pagecolor=black,
531 urlcolor=black,
532 bookmarks,
533 pdfstartview=FitH,
534 pdfpagelayout=SinglePage
535 }
536 % \end{macrocode}
537 % \paragraph{Fonts}
538 % Because we need to be able to have Word users copy us, we need to use fonts that they can use too. Palatino is no good because Windows~2000 users will not have it (and I can't be bothered researching to find out if Book~Antiqua or whatever will do the job sufficiently); everyone has Georgia, but that's tricky to get maths going with it and unusual to find in a LaTeX installation. So we're stuck with the age-old and none too pleasant Times. Ah well.
539 %
540 % Note that I \emph{have not} taken the liberty of using the Times maths fonts\footnote{Either via the \pkg{mathptm} or \pkg{mathptmx} packages.} as well, since Computer Modern maths does the job quite nicely (and moreover, contains bold Greek symbols~--~how can there be no bold maths in the Times maths fonts?).
541 %
542 % Finally, get rid of extra space after punctuation (it's old-fashioned) and increase the leading between the lines; we need this due to such long lines with so many characters in each. We also want no page numbers, since numbers will be added after all the papers are collated into the proceedings.
543 % \begin{macrocode}
544 \frenchspacing
545 \linespread{1.0517}
546 \pagestyle{empty}
547 \setlength\parindent{1.5em}
548 % \end{macrocode}
549 % \subsection{Formatting specification}
550 % \begin{macro}{\section}\begin{macro}{\subsection}
551 % \begin{macro}{\subsubsection}\begin{macro}{\paragraph}
552 % \begin{macro}{\subparagraph}
553 % Not too large a font for the titles, make it more unobstrusive.
554 % Nobody ever uses \cmd\subparagraph, so let's remove it.
555 % \begin{macrocode}
556 \setcounter{secnumdepth}{3}
557 \renewcommand\section{\@startsection{section}{1}{\z@}%
558 {-\baselineskip}%
559 {1pt plus 1pt}%
560 {\sffamily\bfseries\MakeUppercase}}
561 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
562 {-\baselineskip}%
563 {1pt plus 1pt}%
564 {\sffamily\bfseries}}
565 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
566 {-\baselineskip}%
567 {1pt plus 1pt}%
568 {\sffamily\bfseries}}
569 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
570 {\baselineskip}%
571 {-\baselineskip}%
572 {\sffamily\bfseries}}
573 \let\subparagraph\undefined
574 % \end{macrocode}
575 % \end{macro}\end{macro}\end{macro}\end{macro}\end{macro}
576 %
577 % \begin{environment}{itemize}
578 % \begin{environment}{enumerate}
579 % Decrease the amount of vertical space between items in the \env{itemize} and \env{enumerate} environments. Renew the \LaTeX-defined ones in order to adjust all necessary bits and pieces.
580 % \begin{macrocode}
581 \def\list@spacing{%
582 \parsep 4pt
583 \itemsep 0pt
584 \topsep 6pt
585 \partopsep 0pt}
586 \def\enumerate{%
587 \ifnum \@enumdepth > \thr@@\@toodeep\else
588 \advance\@enumdepth\@ne
589 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
590 \expandafter
591 \list
592 \csname label\@enumctr\endcsname
593 {\usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}%
594 \list@spacing}%
595 \fi}
596 \let\endenumerate\endlist
597 \def\itemize{%
598 \ifnum \@itemdepth > \thr@@\@toodeep\else
599 \advance\@itemdepth\@ne
600 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
601 \expandafter
602 \list
603 \csname\@itemitem\endcsname
604 {\def\makelabel##1{\hss\llap{##1}}%
605 \list@spacing}%
606 \fi}
607 \let\enditemize\endlist
608 % \end{macrocode}
609 % \end{environment}
610 % \end{environment}
611 % \begin{environment}{itemise}
612 % Provide an environment with the correct spelling of `itemize'.
613 % \begin{macrocode}
614 \let\itemise\itemize
615 \let\enditemise\enditemize
616 % \end{macrocode}
617 % \end{environment}
618 %
619 % \begin{macro}{\descriptionlabel}
620 % Change the description label to italics instead of bold.
621 % \begin{macrocode}
622 \renewcommand*\descriptionlabel[1]{\hspace\labelsep
623 \normalfont\itshape #1}
624 % \end{macrocode}
625 % \end{macro}
626 %
627 % \begin{environment}{abstract}
628 % The most important part is removing the indent that exists in \pkg{article}!
629 % \begin{macrocode}
630 \def\abstract@error{%
631 \ClassError{active-conf}{Not allowed in the abstract.}
632 {The abstract must not contain maths, references, or footnotes.}}
633 \renewenvironment{abstract}
634 {\vspace{\baselineskip}\fontsize{10}{11}\selectfont
635 {\centering\sffamily\bfseries ABSTRACT\par}
636 \setlength\leftskip{\leftskip+1.5cm}%
637 \setlength\rightskip{\rightskip+1.5cm}%
638 \noindent\ignorespaces}
639 {\par}
640 % \end{macrocode}
641 % \end{environment}
642 % \begin{macro}{\figref}
643 % \begin{macro}{\tabref}
644 % \begin{macro}{\secref}
645 % These are hard-coded because I'm lazy and there's no good solution to this problem without telling people to use \textsf{refstyle}. Which is not widely distributed (as it's new) so users would have to install it themselves. Which is bad.
646 % \begin{macrocode}
647 \def\eqref#1{Equation~\ref{eq:#1}}
648 \def\figref#1{Figure~\ref{fig:#1}}
649 \def\tabref#1{Table~\ref{tab:#1}}
650 \def\secref#1{Section~\ref{sec:#1}}
651 % \end{macrocode}
652 % \end{macro}\end{macro}\end{macro}
653 % \begin{macro}{\fps@figure}
654 % \begin{macro}{\fps@table}
655 % Make the default float placement \texttt{[htbp]}; users will always do it themselves anyway\dots
656 % \begin{macrocode}
657 \def\fps@figure{htbp}
658 \def\fps@table{htbp}
659 % \end{macrocode}
660 % \end{macro}
661 % \end{macro}
662 % \begin{environment}{figure}
663 % \begin{environment}{table}
664 % Add \cmd\centering\ to the \env{figure} and \env{table} environments.
665 % This requires a trick: \cmd{\fps@...} must be expanded, so we can't just
666 % pass through |#1|. Instead, put everything, expanding all except the
667 % \cmd\@float\ command, in a temporary macro, and then use that to produce the float.
668 % \begin{macrocode}
669 \renewenvironment{figure}[1][\fps@figure]
670 {\edef\@tempa{\noexpand\@float{figure}[#1]}
671 \@tempa\centering}
672 {\end@float}
673 \renewenvironment{table}[1][\fps@table]
674 {\edef\@tempa{\noexpand\@float{table}[#1]}
675 \@tempa\centering}
676 {\end@float}
677 % \end{macrocode}
678 % \end{environment}\end{environment}
679 % With the \pkg{array} package, add more height to the table rows so that horizontal
680 % rules don't look ugly. But only if the \pkg{booktabs} package isn't loaded, since it
681 % performs similar operations itself.
682 % \begin{macrocode}
683 \AtBeginDocument{%
684 \@ifpackageloaded{booktabs}{}{\setlength\extrarowheight{2pt}}}
685 % \end{macrocode}
686 % \begin{macrocode}
687 % Better float parameters: (from the TeX FAQ)
688 \renewcommand{\topfraction}{.85}
689 \renewcommand{\bottomfraction}{.7}
690 \renewcommand{\textfraction}{.15}
691 \renewcommand{\floatpagefraction}{.66}
692 \renewcommand{\dbltopfraction}{.66}
693 \renewcommand{\dblfloatpagefraction}{.66}
694 \setcounter{topnumber}{9}
695 \setcounter{bottomnumber}{9}
696 \setcounter{totalnumber}{20}
697 \setcounter{dbltopnumber}{9}
698 % \end{macrocode}
699 %
700 % \begin{macro}{\@makecaption}
701 % Adjust the formatting of float captions: smaller font size.
702 % \begin{macrocode}
703 \long\def\@makecaption#1#2{%
704 \vskip\abovecaptionskip
705 \sbox\@tempboxa{\small #1:~#2}%
706 \ifdim \wd\@tempboxa > \hsize
707 \begingroup
708 \setlength\leftskip{\leftskip+1.5cm}%
709 \setlength\rightskip{\rightskip+1.5cm}%
710 \small #1:~#2\par\endgroup
711 \else
712 \global\@minipagefalse
713 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
714 \fi
715 \vskip\belowcaptionskip}
716 % \end{macrocode}
717 % \end{macro}
718 %
719 % We wish to describe tables with captions \emph{above} the table.
720 % This is not an uncommon style requirement.
721 %
722 % We can't simply use \LaTeX's \cmd\caption\ and put it before a |\begin{tabular}| since the spacing around the caption is defined assuming that it'll be placed below whatever it's describing. So, we use \name{Robin Fairbairn}'s \pkg{topcapt} package (or rather, a plagiarised verbatim copy of it~--~v1.1a to be precise) to define a new command \cmd\topcaption\ (and an auxiliary macro \cmd\@topcaption) that has `opposite' spacing to a regular \cmd\caption\ for the purposes of using it with tabular material.
723 %
724 % \begin{macro}{\topcaption}
725 % Quoth Robin: {\slshape \cmd\topcaption\ simply advances the caption count, sorts out the
726 % arguments and passes on to \cmd{\@topcaption}.}
727 %
728 % \begin{macrocode}
729 \newcommand\topcaption{%
730 \refstepcounter\@captype
731 \@dblarg{\@topcaption\@captype}}
732 % \end{macrocode}
733 % \end{macro}
734 % \begin{macro}{\@topcaption}
735 % Robin: {\slshape \cmd{\@topcaption} swaps above and below caption skips and the relays its arguments to \cmd{\@caption}.}
736 % \begin{macrocode}
737 \def\@topcaption#1[#2]#3{%
738 \@tempskipa\abovecaptionskip
739 \abovecaptionskip\belowcaptionskip
740 \belowcaptionskip\@tempskipa
741 \@caption{#1}[{#2}]{#3}%
742 \@tempskipa\abovecaptionskip
743 \abovecaptionskip\belowcaptionskip
744 \belowcaptionskip\@tempskipa}
745 % \end{macrocode}
746 % \end{macro}
747 %
748 % Now we want to use \cmd\topcaption\ by default when we're inside a \env{table} environment. We can do this by examining the control sequence \cs{@captype}, which contains the string of the floating environment in which it is called. By wrapping \cmd\caption\ in a macro that normally just calls the original \cmd\caption\ definition unless \cs{@captype} contains \texttt{table}, in which case \cmd\topcaption\ is used, we can make this process transparent to the user.
749 %
750 % Of course, the author needs to know in what context to use \cmd\caption, but that's a problem to be tackled another day.
751 % \begin{macrocode}
752 \let\caption@orig\caption
753 \renewcommand\caption{%
754 \let\@tempa\caption@orig
755 \def\@tempb{table}%
756 \ifx\@captype\@tempb
757 \let\@tempa\topcaption
758 \fi
759 \@tempa}
760 % \end{macrocode}
761 %
762 % \begin{macro}{\appendix}
763 % Use this command and all \cmd\section\ commands now print appendices.
764 % \begin{macrocode}
765 \def\appendix{\par
766 \c@section\z@\c@subsection\z@
767 \gdef\thesection{Appendix \@Alph\c@section}}
768 % \end{macrocode}
769 % \changes{v0.1a}{2006/01/30}{Added `Appendix' before the section number in an Appendix.}
770 % \end{macro}
771 %
772 % \subsection{Frontmatter}
773 % \begin{macro}{\maketitle}
774 % This is changed somewhat from the default classes. Instead of making \cmd\footnote\ create \cmd\thanks's, it is defined to gobble its argument and issue a warning. I hope nobody wants a footnote in their frontmatter. They shouldn't.
775 %
776 % The reason for doing this is because the mechanism that \cmd\author\ and \cmd\email\ uses to create email address footnotes is rather fragile because I hacked it together rather quickly and don't take other notes into account when they're counting footnote numbers.
777 % \begin{macrocode}
778 \renewcommand\maketitle{%
779 \begingroup
780 \def\footnote##1{\ClassWarning{active-conf}
781 {Footnotes aren't allowed in address text blocks}}
782 \def\thefootnote{\@alph\c@footnote}%
783 \newpage
784 \global\@topnum\z@ % Prevents figures from going at top of page.
785 \centering
786 % \end{macrocode}
787 % Put the conference details above the title. (Only if \cmd\active@option\ has been
788 % defined by the one and only class option, obviously. See \secref{classoption}.)
789 % \begin{macrocode}
790 %<!2006> \@ifundefined{active@option}{}
791 {\vspace*{-24pt}% hard coded because I'm lazy
792 \begin{minipage}{\textwidth}
793 \sffamily\small
794 % \end{macrocode}
795 %</classfile>
796 %<*2006>
797 % \begin{macrocode}
798 \vspace*{-2cm}
799 \centering
800 \includegraphics{header-logo-2006}
801 % \end{macrocode}
802 %</2006>
803 %<*!2006>
804 % \begin{macrocode}
805 \IfFileExists{active-header-\[email protected]}
806 {\input active-header-\[email protected]}
807 {\ClassError{active-conf}
808 {Titlepage header file active-header-\[email protected] not found}
809 {\MessageBreak
810 The file active-header-YYYY.tex is required to produce the titlepage header,\MessageBreak
811 where YYYY is the name or year of the conference. \MessageBreak
812 Please contact the conference organisers for further information.
813 \MessageBreak}}
814 % \end{macrocode}
815 %</!2006>
816 %<*classfile>
817 % \begin{macrocode}
818 \end{minipage}\vspace{1ex}}
819 \begin{center}
820 \sffamily\bfseries\fontsize{16}{17}\selectfont\@title
821 \end{center}
822 \vspace{-2.5ex}%
823 % \end{macrocode}
824 % \paragraph{Notes} These are input by the author with \cmd\note, multiple allowed, and typeset as footnotes without \cmd\footnotemark s. After the last, put some blank space to separate from the other footnotes and redefine \cmd\note\ to gobble its input and produce a warning. Afterwards, redefine footnote formatting to behave as normal.
825 % \begin{macrocode}
826 \begingroup
827 \long\def\@makefntext##1{\parindent 1em\noindent##1}%
828 \@note
829 \setcounter{footnote}{0}
830 \global\def\note##1{%
831 \ClassWarning{active-conf}
832 {\protect\note\space is only allowed before \protect\maketitle}
833 {Please input all notes before the document begins.}}
834 \endgroup
835 % \end{macrocode}
836 % \paragraph{Addresses} These are author/address blocks inside the \cmd\address@list\ macro that at present exist inside boxes all of equal width.
837 %
838 % First, it is necessary to ensure that any footnote marks for referring to the email address of an author doesn't increase the vertical height of the box for that address block, since then the baselines of adjacent blocks will no longer be aligned.
839 %
840 % The boxes that contain the address blocks are typset with infinite stretchable space\footnotemark\ on either side of each line (the \cmd\leftskip\ and the \cmd\rightskip). There is more infinite stretchable space in between each address block (see the end of the definition of \cmd\address), which serves to equispace each block horizontally.
841 % \footnotetext{\cs{@flushglue} defined by \LaTeX\ as \texttt{0pt plus 1fil}}
842 % \begin{macrocode}
843 \def\@makefnmark{\smash{\textsuperscript{\@thefnmark}}}
844 {\parindent\z@
845 \leftskip\@flushglue
846 \rightskip\@flushglue
847 \parfillskip\z@
848 \address@list\par}
849 \after@maketitle
850 \endgroup
851 \hypersetup{pdfauthor={\pdf@authors},pdftitle={\@title}}}
852 \let\after@maketitle\@empty
853 % \end{macrocode}
854 % \end{macro}
855 %
856 % \begin{macro}{\pdfkeywords}
857 % \begin{macrocode}
858 \newcommand\pdfkeywords[1]{\hypersetup{pdfkeywords={#1}}}
859 % \end{macrocode}
860 % \end{macro}
861 %
862 % \begin{macro}{\papernumber}
863 %<*2006>
864 % \begin{macrocode}
865 \newcommand\papernumber[1]{%
866 \hypersetup{pdfsubject={a06\_#1.pdf}}%
867 \AtEndDocument{%
868 \typeout{ ^^J
869 *************************************************^^J
870 *************************************************^^J
871 **^^J
872 ** Please submit your manuscript as "a06_#1.pdf"^^J
873 **^^J
874 *************************************************^^J
875 *************************************************}}}
876 % \end{macrocode}
877 %</2006>
878 % \end{macro}
879 %
880 %
881 % \begin{macro}{\note}
882 % This command is used to typeset notes about the article at the footer of the opening page. Intended to be used for thanks, acknowledgements, and various miscellany about the article or authors that doesn't fit anywhere else.
883 % \begin{macrocode}
884 \def\note#1{\g@addto@macro\@note{\footnotetext[0]{#1}}}
885 \let\@note\@empty
886 \let\thanks\note
887 % \end{macrocode}
888 % \end{macro}
889 %
890 % \begin{macro}{\author@init}
891 % \begin{macro}{\author@list}
892 % \begin{macro}{\author}
893 % \cmd{\author@init} is the top-level macro that creates a `fresh' definition of \cmd\author\ and initialises the \cmd{\author@list} macro. \cmd\author\ simply populates \cmd{\author@list} with a list of authors, separated by the macro \cmd{\author@sep}. The definition is set up to redefine itself the first time it is called so that \cmd{\author@sep} is only inserted \emph{after} this first time.
894 %
895 % \cmd{\author@list} is used as the first line in every address block, so once \cmd\address\ is called, \cmd{\author@init} is called again for the next list of authors that happen to work at a different address.
896 % \begin{macrocode}
897 \def\author@init{%
898 \def\@@author##1{%
899 \g@addto@macro\author@list{##1}%
900 \def\@@author####1{\g@addto@macro\author@list{\author@sep ####1}}}%
901 \let\author@list\@empty}
902 \author@init
903 \renewcommand\author[2][\c@affiliation]{%
904 \ifx\pdf@authors\@empty\else
905 \g@addto@macro\pdf@authors{, }%
906 \fi
907 \g@addto@macro\pdf@authors{#2}%
908 \g@addto@macro\author@list{\mbox\bgroup}%
909 \@@author{#2}%
910 \if@showaff
911 \@for\@@index :=#1\do{%
912 \expandafter\g@addto@macro
913 \expandafter\author@list
914 \expandafter{%
915 \expandafter\place@affiliation
916 \expandafter{%
917 \@@index}}%
918 }
919 \fi
920 \g@addto@macro\author@list{\egroup}}
921 \newcommand\place@affiliation[1]{\kern1pt\textsuperscript{\@fnsymbol#1}}
922 \let\pdf@authors\@empty
923 % \end{macrocode}
924 % \end{macro}
925 % \end{macro}
926 % \end{macro}
927 %
928 % \begin{macro}{\email}
929 % This macro is intended to be used immediately after an \cmd\author\ declaration, and it simply appends a footnote to the current author detailing their email address. Because we aren't evaluating these things until the end, we regrettably need to spend some effect to replicate the effect that \cmd\footnotemark\ has on \cs{c@footnote}. This could almost certainly be more elegant.
930 % \begin{macrocode}
931 \def\email#1{%
932 \g@addto@macro\author@list{\kern1pt\footnotemark}%
933 \g@addto@macro\after@maketitle{%
934 \stepcounter{footnote}%
935 \footnotetext[\the\c@footnote]{Email address: \url{#1}}}}
936 \g@addto@macro\after@maketitle{\setcounter{footnote}{0}}
937 % \end{macrocode}
938 % \end{macro}
939 %
940 % \begin{macro}{\address@list}
941 % This is the macro used to hold all of the address blocks. Some of its contents is \emph{unexpanded} until \cmd\maketitle, notably the width of the minipages used to typeset the blocks.
942 % \begin{macrocode}
943 \let\address@list\@empty
944 % \end{macrocode}
945 % \end{macro}
946 % \begin{macro}{\@@authorhook}
947 % \begin{macro}{\@@addresshook}
948 % And these are the macros used to format the text in the address blocks. Its default definition is to typeset everything in sans serif and the address in a small font, but you can do more complex things with it if you wish; it's enclosed in a group so don't worry about having to confine state. Unfortunately, it's \emph{not} set up to take an argument, state-changing arguments must be used (\eg, \cmd\sffamily, \cmd\itshape, \cmd\small).
949 % \begin{macrocode}
950 \providecommand\@@authorhook{\sffamily}
951 \providecommand\@@addresshook{\sffamily\fontsize{10}{11}\selectfont}
952 % \end{macrocode}
953 % \end{macro} \end{macro}
954 % \begin{macro}{\address}
955 % This macro is used after any number of \cmd\author\ declarations. It takes the list of authors and typesets them in a box above the specified address. Everything is measured and later put into boxes of equal width so that spacing with several address blocks looks okay.
956 %
957 % The trick is to use one of \TeX's vertical boxes, and populate it with restricted-mode horizontal boxes---this makes the \cmd\vbox\ behave ``as expected'' and stretch to exactly the width it requires to typeset everything. The downside to this method is that restricted-mode \cmd\hbox's are required. What does this mean? `Normal' things like paragraph breaks and literal newlines aren't allowed, since we're typesetting in one long horizontal box.
958 %
959 % Obviously, people will want to write multi-line addresses, so we can get around the horiz.\ box problem by defining \cmd{\\} to end the current \cmd\hbox\ and start another. The following verbatim sketches the idea\dots
960 % \begin{verbatim}
961 % \address{abc \\ def \\ ghi} => \vbox{ ... \hbox{abc \\ def \\ ghi} }
962 % \\ => }\hbox{
963 % \hbox{abc \\ def \\ ghi} => \hbox{abc }\hbox{ def }\hbox{ ghi}
964 % \end{verbatim}
965 % This leaves out the details, like absorbing the leading space we don't want, and re-applying the address-block formatting hook.
966 % Finally, at the end of the address, we need to initialise the various author macros so that a fresh lot of authors can be defined for their own subsequent address block.
967 % \begin{macrocode}
968 \def\address#1{%
969 \begingroup
970 \let\footnotemark\relax
971 \def\\{\egroup\hbox\bgroup\@@addresshook\ignorespaces}
972 \sbox\tempbox{%
973 \vbox{%
974 \hbox{\strut\@@authorhook\author@list}
975 \hbox{\@@addresshook #1}}}
976 \settowidth\templength{\usebox\tempbox}
977 \ifthenelse{\lengthtest{\templength>0.49\linewidth}}{\global\boxwidth\linewidth}{%
978 \ifthenelse{\lengthtest{\templength>\boxwidth}}{\global\boxwidth\templength}{}}%
979 \expandafter\make@address@box\expandafter{\author@list}{#1}
980 \endgroup
981 \author@init}
982 \newlength\boxwidth
983 \newlength\templength
984 \newbox\tempbox
985 % \end{macrocode}
986 % \end{macro}
987 % \begin{macro}{\make@address@box}
988 % This macro is broken out for easy of supplying an expanded \cmd{\author@list} to the middle of a \cmd{\g@addto@macro} declaration. Note well that \cmd\boxwidth\ isn't evaluated until \cmd{\address@list} is expanded in \cmd\maketitle.
989 % \begin{macrocode}
990 \newcommand\make@address@box[2]{%
991 \g@addto@macro\address@list{%
992 \begin{minipage}[t]{\boxwidth+10pt}%
993 \vspace*{\medskipamount}%
994 \centering
995 {\@@authorhook#1\par\vspace{3pt}}
996 {\linespread{0.9}%
997 \@@addresshook
998 \if@showaff
999 \makebox[0pt][r]{\textsuperscript{\@fnsymbol\c@affiliation}}%
1000 \fi
1001 \ignorespaces#2\par}
1002 \end{minipage}%
1003 \stepcounter{affiliation}%
1004 \hskip\@flushglue}}
1005 % \end{macrocode}
1006 % \changes{v0.1a}{2006/01/30}{Vertical space fiddling in the frontmatter.}
1007 % \end{macro}
1008 %
1009 % \begin{macrocode}
1010 \newcounter{affiliation}
1011 \stepcounter{affiliation}
1012 \g@addto@macro\after@maketitle{\setcounter{affiliation}{1}}
1013 \newif\if@showaff
1014 \newcommand\showaffiliations{\@showafftrue}
1015 % \end{macrocode}
1016 %
1017 % Don't look at the following definition! Yuck!
1018 % \begin{macrocode}
1019 \def\author@sep{,~\,}
1020 % \end{macrocode}
1021 % \subsection{Maths and misc.}
1022 % \begin{macro}{\unit}
1023 % \begin{macro}{\num}
1024 % The \cmd\unit\ and \cmd\num\ commands are defined for typesetting units
1025 % and numbers with units, respectively. In the latter case, a thin space is
1026 % used between the number and its unit, which is good typographical practise.
1027 % \begin{macrocode}
1028 \newcommand\unit[1]{\ensuremath{\mathrm{#1}}}
1029 \newcommand\num[2]{\ensuremath{\text{#1}\,\mathrm{#2}}}
1030 % \end{macrocode}
1031 % \end{macro}
1032 % \end{macro}
1033 % \begin{macro}{\cite}
1034 % Removes preceding space and replaces it with a non-breaking space.
1035 % \begin{macrocode}
1036 \AtBeginDocument{%
1037 \let\cite@orig\cite
1038 \def\cite{\ifnum\lastskip>0\relax\unskip~\fi\cite@orig}}
1039 % \end{macrocode}
1040 % \changes{v0.1a}{2006/01/30}{Implemented non-breaking behaviour.}
1041 % \end{macro}
1042 %
1043 % The following is taken from my very own \pkg{fontspec} package, and is
1044 % used to change \cmd\mathrm\ to Times Roman without destroying those aspects
1045 % of default Computer Modern maths that assume that \cmd\rmdefault\ is \texttt{cmr}.
1046 % \begin{macrocode}
1047 \DeclareSymbolFont{legacymaths}{OT1}{cmr}{m}{n}
1048 \SetSymbolFont{legacymaths}{bold}{OT1}{cmr}{bx}{n}
1049 \DeclareMathAccent{\acute} {\mathalpha}{legacymaths}{19}
1050 \DeclareMathAccent{\grave} {\mathalpha}{legacymaths}{18}
1051 \DeclareMathAccent{\ddot} {\mathalpha}{legacymaths}{127}
1052 \DeclareMathAccent{\tilde} {\mathalpha}{legacymaths}{126}
1053 \DeclareMathAccent{\bar} {\mathalpha}{legacymaths}{22}
1054 \DeclareMathAccent{\breve} {\mathalpha}{legacymaths}{21}
1055 \DeclareMathAccent{\check} {\mathalpha}{legacymaths}{20}
1056 \DeclareMathAccent{\hat} {\mathalpha}{legacymaths}{94}
1057 \DeclareMathAccent{\dot} {\mathalpha}{legacymaths}{95}
1058 \DeclareMathAccent{\mathring}{\mathalpha}{legacymaths}{23}
1059 \DeclareMathSymbol{!}{\mathclose}{legacymaths}{33}
1060 \DeclareMathSymbol{:}{\mathrel} {legacymaths}{58}
1061 \DeclareMathSymbol{;}{\mathpunct}{legacymaths}{59}
1062 \DeclareMathSymbol{?}{\mathclose}{legacymaths}{63}
1063 \DeclareMathSymbol{0}{\mathalpha}{legacymaths}{`0}
1064 \DeclareMathSymbol{1}{\mathalpha}{legacymaths}{`1}
1065 \DeclareMathSymbol{2}{\mathalpha}{legacymaths}{`2}
1066 \DeclareMathSymbol{3}{\mathalpha}{legacymaths}{`3}
1067 \DeclareMathSymbol{4}{\mathalpha}{legacymaths}{`4}
1068 \DeclareMathSymbol{5}{\mathalpha}{legacymaths}{`5}
1069 \DeclareMathSymbol{6}{\mathalpha}{legacymaths}{`6}
1070 \DeclareMathSymbol{7}{\mathalpha}{legacymaths}{`7}
1071 \DeclareMathSymbol{8}{\mathalpha}{legacymaths}{`8}
1072 \DeclareMathSymbol{9}{\mathalpha}{legacymaths}{`9}
1073 \DeclareMathSymbol{\Gamma}{\mathalpha}{legacymaths}{0}
1074 \DeclareMathSymbol{\Delta}{\mathalpha}{legacymaths}{1}
1075 \DeclareMathSymbol{\Theta}{\mathalpha}{legacymaths}{2}
1076 \DeclareMathSymbol{\Lambda}{\mathalpha}{legacymaths}{3}
1077 \DeclareMathSymbol{\Xi}{\mathalpha}{legacymaths}{4}
1078 \DeclareMathSymbol{\Pi}{\mathalpha}{legacymaths}{5}
1079 \DeclareMathSymbol{\Sigma}{\mathalpha}{legacymaths}{6}
1080 \DeclareMathSymbol{\Upsilon}{\mathalpha}{legacymaths}{7}
1081 \DeclareMathSymbol{\Phi}{\mathalpha}{legacymaths}{8}
1082 \DeclareMathSymbol{\Psi}{\mathalpha}{legacymaths}{9}
1083 \DeclareMathSymbol{\Omega}{\mathalpha}{legacymaths}{10}
1084 \DeclareMathSymbol{+}{\mathbin}{legacymaths}{43}
1085 \DeclareMathSymbol{=}{\mathrel}{legacymaths}{61}
1086 \DeclareMathDelimiter{(}{\mathopen} {legacymaths}{40}{largesymbols}{0}
1087 \DeclareMathDelimiter{)}{\mathclose}{legacymaths}{41}{largesymbols}{1}
1088 \DeclareMathDelimiter{[}{\mathopen} {legacymaths}{91}{largesymbols}{2}
1089 \DeclareMathDelimiter{]}{\mathclose}{legacymaths}{93}{largesymbols}{3}
1090 \DeclareMathDelimiter{/}{\mathord}{legacymaths}{47}{largesymbols}{14}
1091 \DeclareMathSymbol{\mathdollar}{\mathord}{legacymaths}{36}
1092 \DeclareSymbolFont{operators}\encodingdefault\rmdefault\mddefault\updefault
1093 \SetSymbolFont{operators}{normal}\encodingdefault\rmdefault\mddefault\updefault
1094 \SetMathAlphabet\mathrm{normal}\encodingdefault\rmdefault\mddefault\updefault
1095 \SetMathAlphabet\mathit{normal}\encodingdefault\rmdefault\mddefault\itdefault
1096 \SetMathAlphabet\mathbf{normal}\encodingdefault\rmdefault\bfdefault\updefault
1097 \SetMathAlphabet\mathsf{normal}\encodingdefault\sfdefault\mddefault\updefault
1098 \SetMathAlphabet\mathtt{normal}\encodingdefault\ttdefault\mddefault\updefault
1099 \SetSymbolFont{operators}{bold}\encodingdefault\rmdefault\bfdefault\updefault
1100 \SetMathAlphabet\mathrm{bold}\encodingdefault\rmdefault\bfdefault\updefault
1101 \SetMathAlphabet\mathit{bold}\encodingdefault\rmdefault\bfdefault\itdefault
1102 \SetMathAlphabet\mathsf{bold}\encodingdefault\sfdefault\bfdefault\updefault
1103 \SetMathAlphabet\mathtt{bold}\encodingdefault\ttdefault\bfdefault\updefault
1104 % \end{macrocode}
1105 % The end! Thanks for coming.
1106 % \begin{macrocode}
1107 %</classfile>
1108 % \end{macrocode}
1109 %
1110 % \clearpage
1111 % \begingroup
1112 % \renewenvironment{theglossary}
1113 % {\small\list{}{}
1114 % \item\relax
1115 % \glossary@prologue\GlossaryParms
1116 % \let\item\@idxitem \ignorespaces
1117 % \def\pfill{\hspace*{\fill}}}
1118 % {\endlist}
1119 % \PrintChanges
1120 % \endgroup
1121 %
1122 % \setcounter{IndexColumns}{2}
1123 % \PrintIndex
1124 %
1125 % \Finale
1126 %
1127 % \typeout{************************************************}
1128 % \typeout{*}
1129 % \typeout{* To finish the installation, move the following}
1130 % \typeout{* file into a directory searched by TeX:}
1131 % \typeout{*}
1132 % \typeout{* \space\space\space active-conf.cls}
1133 % \typeout{*}
1134 % \typeout{************************************************}
1135 %
1136 \endinput
1137