Debian Codegraph @

texmf-dist/source/latex/aiaa/aiaa.dtx

raw
1 %
2 % \iffalse
3 %% Description: LaTeX package for AIAA technical conference papers.
4 %% Keywords: LaTeX, class, AIAA, BibTeX, bibliographic-style
5 %% Author: Bil Kleb, Bill Wood, Erich Knausenberger
6 %% Maintainer: same
7 %% Version: 3.6 <23 May 2004>
8 %%
9 %% Run (PDF)LaTeX on `aiaa.dtx' to obtain a Users Manual and code
10 %% documentation. Note: to get detailed code documentation you need to
11 %% comment out the \OnlyDescription line in `aiaa.dtx'.
12 %%
13 %% See `aiaa.ins' and the Users Manual for installation instructions.
14 %%
15 % \fi
16 %
17 % \def\filename{aiaa.dtx}
18 % \def\fileversion{3.6}
19 % \def\filedate{2004/05/23}
20 % \def\docdate{\filedate}
21 % \date{\docdate}
22 %
23 % \newcommand*{\cls}[1]{\textsf{#1}}
24 % \newcommand*{\pkg}[1]{\textsf{#1}}
25 % \newcommand*{\file}[1]{\texttt{#1}}
26 % \newcommand*{\kbd}[1]{\texttt{#1}}
27 %
28 % \MakeShortVerb{\|}
29 %
30 % \CheckSum{524}
31 %
32 %% \CharacterTable
33 %% {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
34 %% 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
35 %% Digits \0\1\2\3\4\5\6\7\8\9
36 %% Exclamation \! Double quote \" Hash (number) \#
37 %% Dollar \$ Percent \% Ampersand \&
38 %% Acute accent \' Left paren \( Right paren \)
39 %% Asterisk \* Plus \+ Comma \,
40 %% Minus \- Point \. Solidus \/
41 %% Colon \: Semicolon \; Less than \<
42 %% Equals \= Greater than \> Question mark \?
43 %% Commercial at \@ Left bracket \[ Backslash \\
44 %% Right bracket \] Circumflex \^ Underscore \_
45 %% Grave accent \` Left brace \{ Vertical bar \|
46 %% Right brace \} Tilde \~}
47 %
48 % \title{%
49 % AIAA\thanks{American Institute of Aeronautics and Astronautics.}\ \
50 % \LaTeX{} Package Users Manual\thanks{This document describes
51 % \textsf{aiaa} version \fileversion\ that came of age on \docdate.}
52 % }
53 %
54 % \author{%
55 % Bil Kleb\thanks{Research Scientist}
56 % \ and Bill Wood\textsuperscript{\ensuremath{\ddagger}}\\
57 % {\normalsize\itshape NASA, Hampton, Viriginia}\\
58 % \and
59 % Erich Knausenberger\thanks{Business Developer}\\
60 % {\normalsize\itshape AIAA, Reston, Virginia}
61 % }
62 %
63 % \date{\vspace{-5ex}}
64 %
65 % \maketitle
66 %
67 % \begin{abstract}
68 % This document describes the \textsf{aiaa} \LaTeX\ package that
69 % provides a \LaTeX\ class (\file{aiaa-tc.cls}) and \BibTeX\
70 % bibliography style file (\file{aiaa.bst}).
71 % The files in this package are used to create AIAA technical conference
72 % papers.
73 % The package also contains a users manual (you are looking at it) and
74 % two templates, a bare-bones sample and an advanced sample.
75 % \end{abstract}
76 %
77 % \tableofcontents
78 %
79 % \section{Introduction}
80 %
81 % The AIAA class works by loading the standard \LaTeX\ article class and
82 % several LaTeX packages, and then making modifications and extensions
83 % to suit the AIAA layout requirements.\footnote{%
84 % The older, unofficial AIAA distribution that yields two-column layout
85 % is available in the distribution's `pre2004' subdirectory.}
86 % The AIAA \BibTeX\ style file was created with Daly's makebst program
87 % and then tweaked according to AIAA conventions.
88 % In addition, abbreviations for the AIAA journals and more common
89 % aerospace journals were added.
90 %
91 % \subsection{Requirements}
92 %
93 % To make use of the AIAA technical conferenece paper class and process
94 % the AIAA bare-bones template, you will need the following files:\\[3pt]
95 % \begin{tabular}{llll}
96 % \cls{article.cls} &\pkg{graphicx.sty}&\pkg{array.sty} &\pkg{setspace.sty}\\
97 % \pkg{overcite.sty}&\pkg{lastpage.sty}&\pkg{fancyhdr.sty}
98 % \end{tabular}\\[3pt]
99 % These should be included as part of your \TeX\ distribution.
100 % Note: \pkg{setspace} is only necessary if using the |submit| class
101 % option described below.
102 %
103 % To explore some of \LaTeX's more advanced features such as imbedded
104 % figures, tables with footnotes, hyperlinks, subfigures, dropped
105 % capitals at the beginning of paragraphs, automatic nomenclature
106 % collection and sorting, and bibliography generation that are
107 % demonstrated in the advanced template, you will need the following
108 % \LaTeX\ packages,\\[3pt]
109 % \begin{tabular}{rl}
110 % \pkg{ifthen} & plain text conditionals \\
111 % \pkg{dcolumn} & decimal-aligned tabular math columns \\
112 % \pkg{fancyvrb} & extended verbatim environments \\
113 % \pkg{subfigure} & subcaptions for subfigures \\
114 % \pkg{nomencl} & nomenclature generation via Makeindex \\
115 % \pkg{hyperref} & hyperlinks such as email or URLs \\
116 % \pkg{threeparttable} & tables with footnotes \\
117 % \pkg{wrapfig} & integrate figures and tables in text
118 % (i.e., DiVinci style) \\
119 %
120 % \pkg{lettrine} & dropped capital letter at beginning of paragraph \\
121 % \pkg{subfigmat} & matrices of similar subfigures, aka small multiples \\
122 % \pkg{dropping} & an alternative dropped capital letter package
123 % \end{tabular}\\[3pt]
124 % \noindent The above packages are ordered according to the likelihood
125 % that they are included with any given \TeX\ distribution.
126 % The last three you will most likely have to download from CTAN
127 % (\href{http://www.ctan.org}{www.ctan.org}) and add to your \TeX\
128 % distribution according to its instructions for adding new packages, or
129 % just place them in your local working directory.
130 % Please see the Known Problems section before exploring the advanced example.
131 %
132 % \subsection{User's Manual}
133 %
134 % A PDF version of this Users Manual is provided as part of the distribution.
135 % It was created by processing \file{aiaa.dtx} with \kbd{pdflatex}.
136 % Of course a PostScript version can be made by using \kbd{latex}.
137 %
138 % If you are new to LaTeX, you should first read {\it A (not so) Short
139 % Introduction to \LaTeX, or \LaTeX\ in 131 minutes}, which is
140 % available in a variety of languages from the Comprehensive \TeX\
141 % Archive Network (CTAN) website,
142 % \href{http://www.ctan.org/tex-archive/info/lshort/}%
143 % {www.ctan.org/tex-archive/info/lshort/}.
144 %
145 % \subsection{Installation and Setup}
146 %
147 % If you have not already run \file{aiaa.ins} through \LaTeX{}, do so.
148 % The \pkg{docscript} utility (part of \LaTeX{}) will rip the code
149 % segments out of \file{aiaa.dtx} and save them in several files.
150 % If you encounter an error on installation like:\\[5pt]
151 % | ! Undefined control sequence|\\
152 % | \batchLine -> generate|\\
153 % | {\file {aiaa-tc.cls}{\from{aiaa.dtx}{class}}}|\\
154 % | 1.728 \processbatchFile|\\[5pt]
155 % it means that your \pkg{docstrip} is very old and that you will need
156 % to update your \TeX\ distribution to take advantage of the AIAA package.
157 %
158 % Move \file{aiaa-tc.cls} to a directory searched by \TeX\footnote{%
159 % For a Unix te\TeX{} installation, a privileged user could
160 % put these files in a directory named something like
161 % \kbd{/usr/local/share/texmf/tex/latex/aiaa}\ for the entire site to
162 % use, remembering to run \kbd{texhash} to reconfigure te\TeX{} to
163 % search the new directory; or, a lowly user could make their own
164 % directory, e.g., \kbd{$\sim$/tex/inputs}, put the files in
165 % there, and set the environment variable \kbd{TEXINPUTS} via
166 % `\kbd{setenv TEXINPUTS $\sim$/tex/inputs:}'.
167 % The colon represents the system search path so, in this case, the user
168 % files take precedence.
169 % On a Mac or PC installation put these files in a folder named
170 % something like \file{TeX-inputs}.}
171 % and the file \file{aiaa.bst} to a directory searched by
172 % \BibTeX.\footnote{%
173 % Similar to preceding footnote, only on Unix, use the
174 % environment variable \kbd{BSTINPUTS} for the bibliographic style file
175 % and \kbd{BIBINPUTS} for the bibliographic database; for Mac's, use the
176 % \file{BibTeX-inputs} folder, failing that try using the
177 % \file{TeX-inputs} folder.}
178 % Once things are installed, try to \LaTeX\ the bare-bones template.
179 % It should produce something similar to the existing PDF copy.
180 %
181 % \section{Usage}
182 %
183 % The AIAA class is envoked by including\\[5pt]
184 % | \documentclass[|{\itshape options}|]{aiaa-tc}|\\[5pt]
185 % at the beginning of your document.
186 % The AIAA class recognizes a |handcarry| option that places paper
187 % number, conference information, and copyright information in the paper
188 % when hand carrying papers to a ``loose papers'' conference, and a
189 % `submit' option that increases font size and line spacing.
190 % Other cptions are passed on to \LaTeX's \cls{article} class that is
191 % subsequently loaded by the AIAA class.\footnote{%
192 % For example, the \kbd{draft} option replaces figures with a
193 % labeled box of the appropriate size and graphically depicts lines that
194 % overrun the right margin (overfull boxes).}
195 % The document is written just like one were using the standard \LaTeX{}
196 % \cls{article} document class; and thus, usage is well documented by
197 % others in various \LaTeX{} books~\cite{companion,guide,latex}.
198 % However, some of the stock commands have slightly different behaviors
199 % and there are a few new commands designed to make life a little brighter;
200 % these are discussed in the following sections.
201 %
202 % \subsection{General Commands}
203 %
204 % Several standard \LaTeX{} commands have been modified to behave
205 % slightly differently in the \cls{aiaa-tc} class.
206 % In addition, several new commands have been introduced to ease
207 % document preparation.
208 % Both types are discussed in the following subsections.
209 %
210 % \subsubsection{New Behavior from Standard Commands}
211 %
212 % \DescribeMacro{\date}
213 % \DescribeMacro{\maketitle}
214 % The \cls{aiaa-tc} class does not typeset the |\date| command as part of
215 % |\maketitle|.
216 % Standard \LaTeX{} behavior of |\maketitle| is to typeset the current
217 % date as part of the title section.
218 % one would have to issue a command like, |\date{\vspace{-5ex}}|,
219 % to eliminate the date and removed the space created for it.
220 %
221 % \DescribeEnv{abstract}
222 % The |abstract| environment has been redefined within the \cls{aiaa-tc}
223 % class to produce slightly different typesetting.
224 % It now produces an indented block of text set in a smaller, bold font.
225 % This environment should be placed after your |\maketitle|.
226 %
227 % \DescribeMacro{\section}
228 % \DescribeMacro{\subsection}
229 % \DescribeMacro{\subsubsection}
230 % \DescribeMacro{\paragraph}
231 % \DescribeMacro{\subparagraph}
232 % The counters, fonts, sizes, and positions normally produced by
233 % these commands have been modified to produce AIAA layout guidelines.
234 %
235 % \subsubsection{New Command}
236 %
237 % \DescribeMacro{\thanksibid}
238 % The command |\thanksibid| is very similar to the standard
239 % |\thanks| command which is used when footnoting
240 % the author affliations within the |\author| field.
241 % The distinction is that the |\thanksibid| command allows one
242 % to repeat a given footnote symbol without repeating the associated
243 % footnote text. For example,\\[3pt]
244 % | \author{%|\\
245 % | Peter Gnoffo,%|\\
246 % | \thanks{Title, department, address, and member grade.}|\\
247 % | Bil Kleb,%|\\
248 % | \thanks{Title, department B, address, and member grade.}|\\
249 % | Bill Wood,%|\\
250 % | \thanksibid{2}%| \textit{use the same footnote as the second author.}\\
251 % | \ and|\\
252 % | Marge Myth%|\\
253 % | \thanks{Title, department C, address, and member grade.}|\\
254 % | }|\\[3pt]
255 % Thus, |\thanksibid{2}| would only produce a footnote symbol
256 % at the end of Bill Wood's name and it would not generate
257 % any footnote text.
258 % Note that using the |\thanksibid| command does not increment the
259 % footnote counter, so for the case given above, an argument of |4|
260 % would not be a valid choice.
261 %
262 % \subsection{Hand Carry Information}
263 %
264 % \DescribeMacro{handcarry}
265 % The following commands are used to load information that is
266 % used by the |handcarry| class option.
267 % For example,\\[3pt]
268 % | \documentclass[handcarry]{aiaa-tc}|\\[3pt]
269 % The following commands are used produce appropriate headers and footers
270 % All of these commands are normally set in the preamble
271 % of your document (similar to |\author| and |\title|).\footnote{%
272 % The preamble is defined as anywhere between the
273 % \cs{documentclass}\texttt{\string{\string}} and
274 % \cs{begin}\texttt{\string{document\string}} commands.}
275 %
276 % \DescribeMacro{\AIAApapernumber}
277 % \DescribeMacro{\AIAAconference}
278 % \DescribeMacro{\AIAAcopyright}
279 % The commands |\AIAApapernumber|, |\AIAAconference|, and |\AIAAcopyright|
280 % are used to put appropriate items in the header and footer of each page.
281 % The contents of |\AIAApapernumber| is placed in the footer while the
282 % contents of |\AIAAconference| is placed in the header.
283 % For example,\\[3pt]
284 % | \AIAAapernumber{2004-3932}|\\
285 % | \AIAAConference{16th AIAA Fluid Dynamics Conference,|\\
286 % | June 6--8, Portland, Oregon}|\\[3pt]
287 % A footnote describing the copyright conditions
288 % and other information about the document are incorporated via the
289 % |\AIAAcopyright|.
290 % This command should be loaded with one of the the copyright series
291 % of commands: |\CopyrightA|, |\CopyrightB|, |\CopyrightC|, or
292 % |\CopyrightD|, described below.
293 % To use, simply include something like the following in
294 % the your document's preamble:\\[3pt]
295 % | \AIAAcopyright{\CopyrightA{2004}}|\\[3pt]
296 % \DescribeMacro{\CopyrightA}
297 % \DescribeMacro{\CopyrightB}
298 % \DescribeMacro{\CopyrightC}
299 % \DescribeMacro{\CopyrightD}
300 % \DescribeMacro{\CopyrightDAPL}
301 % where the specific copyright commands will expand to one of the standard AIAA
302 % forms: A, B, C, D, or D-APL.
303 % Note: they each have different arguments, or no arguments, depending
304 % on their requirements,\\[3pt]
305 % | \CopyrightA{|\textit{year}|}|\\
306 % | \CopyrightB{|\textit{year}|}{|\textit{full name or company}|}|\\
307 % | \CopyrightC|\\
308 % | \CopyrightD{|\textit{year}|}|\\
309 % | \CopyrightDAPL{|\textit{year}|}|\\[3pt]
310 % See AIAA copyright instructions for which form to use.
311 %
312 % \subsection{Journal Submission}
313 %
314 % \DescribeMacro{submit}
315 % The |submit| option class option that is invoked as follows,\\[3pt]
316 % | \documentclass[submit]{aiaa-tc}|\\[3pt]
317 % \DescribeMacro{\AIAAsubmitinfo}
318 % will increase the font size and line spacing as well as place a
319 % running footer according to the contents of |\AIAAsubmitinfo|.
320 % For example,\\[3pt]
321 % | \AIAAsubmitinfo{Abbreviated Title, AuthorsLastName et al}|\\[3pt]
322 % will place an abbreviated title and the authors last name at the
323 % bottom of each page.
324 %
325 % \subsection{Making Modifications}
326 %
327 % If you feel the need to modify the behavior of items in
328 % \cls{aiaa-tc.cls}, simply cut the section you want to change and save
329 % it to a file named \file{myaiaamods.sty}.
330 % Then modify the code in \file{myaiaamods.sty} to suit your needs and
331 % include it in your document via |\usepackage{myaiaamods}| in the
332 % preamble.
333 %
334 % \subsection{Getting Help}
335 %
336 % For general questions related to AIAA papers, procedures, and guidelines,
337 % send email to
338 % \href{mailto:[email protected]}{Paper\_Tech\[email protected]}.
339 % For help /specific/ to this AIAA \LaTeX\ distribution, send email to
340 % \href{mailto:[email protected]}{LaTeX\[email protected]}.
341 %
342 % For general \LaTeX\ help, see the {\it The (not so) Short Introduction
343 % to \LaTeX} mentioned above, {\it \LaTeX: A Document Preparation
344 % System} (2nd ed.) by Lamport, and {\it The LaTeX Companion} (2nd ed.)
345 % by Mittelbach et al.~\cite{companion}
346 % For more specific \LaTeX\ help, do a Google `groups' search on the
347 % comp.text.tex USENET newsgroup and explore the \TeX\ User Group's frequently
348 % asked questions site last seen at
349 % \href{http://www.tex.ac.uk/cgi-bin/texfaq2html}%
350 % {www.tex.ac.uk/cgi-bin/texfaq2html}.
351 % If these avenues fail to answer your question, read
352 % \href{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=askquestion}%
353 % {www.tex.ac.uk/cgi-bin/texfaq2html?label=askquestion}
354 % and post a question to the \href{news:comp.text.tex}{comp.text.tex}
355 % USENET newsgroup.
356 % (Posting is available through \href{http://www.google.com/}{Google}.)
357 %
358 % For an extensive guide to using Encapsulated PostScript in \LaTeX, see
359 % Keith Reckdahl's \file{epslatex} document available from CTAN's \file{info}
360 % directory,
361 % \href{http://www.ctan.org/tex-archive/info/}{www.ctan.org/tex-archive/info/}
362 % or various \LaTeX{} reference books.
363 %
364 % Especially helpful in locating various \LaTeX{} packages is
365 % the \kbd{Catalogue.html} web page found in the \file{help/Catalogue}
366 % directory of CTAN.
367 %
368 % \subsection{Known Problems}
369 %
370 % The bibliographic style sheet |aiaa.bst| isn't fully tested; and thus,
371 % you may need to fiddle with your |.bbl| file for your final copy,
372 % i.e., edit |file.bbl| after running a \LaTeX{}, \BibTeX, \LaTeX\
373 % sequence, but before running \LaTeX{} the final time.
374 % Note: If you run \BibTeX\ after modifying |file.bbl|, you will lose
375 % your modifications when \LaTeX\ is run again.
376 %
377 % To typeset the advanced example, you will need a fairly complete \LaTeX{}
378 % distribution, and even then you will probably need to download packages
379 % like \pkg{dropping} or \pkg{lettine} as described in the Requirements
380 % section.
381 % Also, some packages will need to be newer than 2002 or so.
382 % For example, older versions of the \pkg{nomenclature} package will
383 % given an error like\\[3pt]
384 % | ! Undefined control sequence.|
385 % | <argument> \nomitemsep |
386 % while older versions of the \pkg{geometry} package will give\\[3pt]
387 % | ERROR: Package keyval Error: No value specified for paper.|
388 %
389 % \subsection{Sending a Bug Report}
390 %
391 % Reports of bugs in the AIAA package are most welcome.
392 % Before filing a bug report, please take the following actions:
393 % \begin{enumerate}
394 % \item Verify your problem is not due to your own input file(s)
395 % styles sheet(s), or package(s);
396 % \item Check to see if your problem is documented in the preceeding
397 % section;
398 % \item Try to isolate the problem by writing a {\it minimal} \LaTeX\
399 % input file which reproduces the unexpected behavior and then:
400 % \begin{enumerate}
401 % \item Include the command\\
402 % | \setcounter{errorcontextlines}{50}|\\
403 % in the preamble of your document to provide extra context when
404 % things go awry;
405 % \item Run your file through \LaTeX{};
406 % \item Send a description of your problem, the input file and the
407 % log file via e-mail to:
408 % \href{mailto:[email protected]?subject=bug}%
409 % {LaTeX\[email protected]}.
410 % \end{enumerate}
411 % \end{enumerate}
412 %
413 % \section{Acknowledgments}
414 %
415 % Foremost, the authors would like to thank all of those that took the
416 % time to ask questions, give comments, or provide suggestions:
417 % Karen Bibb, Steve Alter, Meelan Choudhari, Donald Arseneau, Ed Kerschen,
418 % Paolo Lisandrin, Mark Woodmansee, Dominique Pelletier, Manual Cruz,
419 % Martin Sanchez, Chris Rumsey, Ray Chase,
420 % and Tadashi Minowa.
421 % Without their feedback, this package would wither.\footnote{%
422 % Hint: If you want to be listed in future versions of this document,
423 % send kudos, comments, and so on to
424 % \href{mailto:[email protected]}{LaTeX\[email protected]}.}
425 %
426 % Bundling and documenting this \pkg{aiaa} package in docstrip
427 % format was done by using other packages as a model,
428 % particularly, Mats Dahlgren's \pkg{dropping}~\cite{dropping}
429 % and Jeff Goldberg et al.'s \pkg{endfloat}~\cite{endfloat}.
430 %
431 % Finally, the first author would like to thank the people of the
432 % |comp.text.tex| newsgroup, the \TeX\ Users Group Frequently Asked
433 % Questions maintainers, and various package authors for patiently
434 % answering my inane questions, in particular, but in no particular order:
435 % Donald Arsenau, Robin Fairbairns, Piet van Oostrum, Jeroen Nijhof,
436 % Steven Douglas Cochran, Herbert Voss, Jeffrey Goldberg, Mark Wooding,
437 % Paul Foley, David Kastrup, Jerry Leichter, Patrick Daly, David
438 % Carlisle, Edward Sznyter, and Jim Hefferon.
439 %
440 % \begin{thebibliography}{1}
441 %
442 % \bibitem{companion}
443 % Frank Mittelbach, Michel Goossens, Johannes Bramms, David Carlisle,
444 % and Chris Rowley.
445 % \newblock{\em The {\LaTeX} Companion}.
446 % \newblock 2nd ed.
447 % \newblock Addison-Wesley, Reading, Massachusetts, 2004.
448 %
449 % \bibitem{guide}
450 % Helmut Kopka and Patrick W. Daly.
451 % \newblock{\em A Guide to {\LaTeXe}: Tools and Techniques for Computer
452 % Typesetting}.
453 % \newblock 4th ed.
454 % \newblock Addison-Wesley, Reading, Massachusetts, 2003.
455 %
456 % \bibitem{latex}
457 % Leslie Lamport.
458 % \newblock{\em {\LaTeX}: A Document Preparation System}.
459 % \newblock 2nd ed.
460 % \newblock Addison-Wesley, Reading, Massachusetts, 1994.
461 %
462 % \bibitem{dropping}
463 % Mats Dahlgren.
464 % \newblock \pkg{dropping}---A \LaTeX{} Macro for Dropping
465 % the First Character(s) of a Paragraph.
466 % \newblock June 1996. (version~0.1)
467 % \newblock Electronic Documentation.
468 %
469 % \bibitem{graphicx}
470 % David Carlisle.
471 % \newblock Packages in the `graphics' bundle.
472 % \newblock December 1995.
473 % \newblock Electronic Documentation.
474 %
475 % \bibitem{endfloat}
476 % James Darrell McCauley and Jeff Goldberg.
477 % \newblock The \texttt{endfloat} Package.
478 % \newblock October 1995. (version~2.4i)
479 % \newblock Electronic Documentation.
480 %
481 % \end{thebibliography}
482 %
483 % \section{Code Documentation}
484 %
485 % For the interested reader, the following sections can be made to
486 % contain a documented verion of the class code and bibliographic style file.
487 % These detailed coding bits are not included in the Users Manual by
488 % default.
489 % If you want to see these in typeset form, you need to comment
490 % out the |\OnlyDescription| line in the |<driver>| section of
491 % \file{aiaa.dtx} and process \file{aiaa.dtx} with (PDF)\LaTeX.
492 %
493 % \begin{macrocode}
494 %<*driver>
495 \documentclass{ltxdoc}
496 \usepackage[colorlinks]{hyperref}
497 \OnlyDescription % comment out to typeset class and bibstyle code
498 \begin{document}
499 \DocInput{aiaa.dtx}
500 \end{document}
501 %</driver>
502 % \end{macrocode}
503 %
504 % \StopEventually{\PrintChanges}
505 %
506 % \subsection{The Class}
507 %
508 % First, the opening header:
509 % \begin{macrocode}
510 %<*class>
511 %%
512 %% `aiaa-tc.cls' - A LaTeX class to create AIAA technical conference papers.
513 %%
514 %% The basic approach is to load the LaTeX article class and various
515 %% standard LaTeX packages, and then make modifications and extensions to
516 %% conform to AIAA's guidelines.
517 %%
518 %% To use, simply select this class file in your LaTeX document. For example,
519 %%
520 %% \documentclass{aiaa-tc}
521 %%
522 %% Class options:
523 %%
524 %% handcarry - used for hand carrying a paper to a 'loose papers'
525 %% conference. It adds the conference name to the
526 %% top of the first page, paper number to the bottom
527 %% of each page, and a copyright notice on the bottom
528 %% of the first
529 %%
530 %% submit - produces output typically required for journal submission,
531 %% i.e., 12pt font and 'double spacing'.
532 %%
533 %% plus those accepted by the standard article class such as 'draft'.
534 %%
535 %% Class-specific commands:
536 %%
537 %% \thanksibid{} - Reuses \thanks footnote symbol from previous
538 %% author specified by position in \author command.
539 %% For example, `someone\thanksibid{2}' will reuse the
540 %% footnote symbol from the second author for 'someone'
541 %% without producing a repeated footnote at the bottom.
542 %%
543 %% \AIAApapernumber{} - For use with 'handcarry' option.
544 %% \AIAAconference{} - Ditto.
545 %% \AIAAcopyright{} - Ditto. Must be filled with one of the
546 %% various copyright types: \AIAAcopyrightA{year},
547 %% \AIAAcopyrightB{year}{holder}, \AIAAcopyrightC,
548 %% \AIAAcopyrightD{year}, or \AIAAcopyrightDAPL{year}.
549 %%
550 %% \AIAAsubmitinfo{} - Footer information used by 'submit' option.
551 %%
552 %% For support, further details, and a documented version of this class,
553 %% please read the Users Manual, aiaa.pdf, and the templates that come
554 %% with the AIAA LaTeX distribution.
555 %%
556 %% Wish list:
557 %%
558 %% o fine tune hyperref behavior, especially footnote behavior
559 %%
560 %% o an \appendix command to switch section styles, counters, etc.
561 %%
562 %% o leave space for copyright notice so that handcarry option does
563 %% not alter pagination.
564 %%
565 % \end{macrocode}
566 % The class identifies itself:
567 % \begin{macrocode}
568 \NeedsTeXFormat{LaTeX2e}
569 \ProvidesClass{aiaa-tc}[2004/04/03 v3.5 AIAA technical conference paper]
570 % \end{macrocode}
571 % \begin{macro}{handcarry}
572 % \begin{macro}{submit}
573 % Option and associated flag.
574 % Note that the flag is set when an option is processes, so that it is
575 % overrides the default.
576 % \begin{macrocode}
577 \newif\if@aiaa@handcarry
578 \newif\if@aiaa@submit
579 \@aiaa@handcarryfalse
580 \@aiaa@submitfalse
581 \DeclareOption{handcarry}{\@aiaa@handcarrytrue\@aiaa@submitfalse}
582 \DeclareOption{submit}{\@aiaa@submittrue\@aiaa@handcarryfalse}
583 % \end{macrocode}
584 % \end{macro}
585 % \end{macro}
586 % Pass all unknown options on to the \LaTeX\ article class
587 % and process them.
588 % Note: Options are processed in order of the |\DeclareOption|
589 % commands in this file, so if you want one to take precedence
590 % over all the other options, process it last.
591 % \begin{macrocode}
592 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}%
593 \typeout{Unknown option: passing ``\CurrentOption"
594 option on to the standard LaTeX article class.}}
595 \ProcessOptions
596 % \end{macrocode}
597 % Unless this is a journal submisssion, load the \LaTeX{} standard
598 % article class with |letterpaper| and |10pt| options.
599 % \begin{macrocode}
600 \if@aiaa@submit
601 \LoadClass[letterpaper,12pt]{article}
602 \else
603 \LoadClass[letterpaper,10pt]{article}
604 \fi
605 % \end{macrocode}
606 % Load packages used by this class.
607 % \begin{macrocode}
608 \RequirePackage[margin=1in,top=0.75in,headheight=\baselineskip]%
609 {geometry}% page layout
610 \RequirePackage{graphicx}% images
611 \RequirePackage{array}% extra row height
612 \RequirePackage{overcite}% superscript, sorted, compressed citation commands
613 \RequirePackage{lastpage}% to get reference for last page number
614 \RequirePackage{fancyhdr}% simple control of headers and footers
615 \if@aiaa@submit
616 \RequirePackage{setspace}% control line spacing
617 \fi
618 % \end{macrocode}
619 % \begin{macro}{\AIAApapernumber}
620 % \begin{macro}{\AIAAconference}
621 % \begin{macro}{\AIAAcopyright}
622 % \begin{macro}{\AIAAsubmitinfo}
623 % Define AIAA specific fields:
624 % \begin{macrocode}
625 \newcommand*{\AIAApapernumber}[1]{\def\aiaa@papernumber{#1}}\AIAApapernumber{}
626 \newcommand*{\AIAAconference}[1]{\def\aiaa@conference{#1}}\AIAAconference{}
627 \newcommand*{\AIAAcopyright}[1]{\def\aiaa@copyright{#1}}\AIAAcopyright{}
628 \newcommand*{\AIAAsubmitinfo}[1]{\def\aiaa@submitinfo{#1}}\AIAAsubmitinfo{}
629 % \end{macrocode}
630 % \end{macro}
631 % \end{macro}
632 % \end{macro}
633 % \end{macro}
634 % Tie |\intextsep| to |\baselineskip| to more tightly integrate layout
635 % \begin{macrocode}
636 \setlength{\intextsep}{0.7\baselineskip \@plus 2\p@ \@minus 1\p@}
637 % \end{macrocode}
638 % Change floating defaults to include `here' to promote text/float integration
639 % \begin{macrocode}
640 \def\fps@figure{htbp}
641 \def\fps@table{htbp}
642 % \end{macrocode}
643 % \begin{macro}{\AIAAcopyrightA}
644 % \begin{macro}{\AIAAcopyrightB}
645 % \begin{macro}{\AIAAcopyrightC}
646 % \begin{macro}{\AIAAcopyrightD}
647 % \begin{macro}{\AIAAcopyrightDAPL}
648 % Define AIAA copyright clauses for use when hand carrying
649 % \begin{macrocode}
650 \newcommand{\AIAAcopyrightA}[1]{Copyright \copyright\ #1 by the
651 American Institute of Aeronautics and Astronautics, Inc. All
652 rights reserved.}% rev 01/01/2002
653 \newcommand{\AIAAcopyrightB}[2]{Copyright \copyright\ #1 by
654 #2. Published by the American Institute of Aeronautics
655 and Astronautics, Inc.\ with permission.}% rev 01/01/2002
656 \newcommand{\AIAAcopyrightC}{This material is declared a work of the U.S.
657 Government and is not subject to copyright protection in the
658 United States.}% rev 01/01/2002
659 \newcommand{\AIAAcopyrightD}[1]{Copyright \copyright\ #1 by the American
660 Institute of Aeronautics and Astronautics, Inc. The U.S. Government
661 has a royalty-free license to exercise all rights under the copyright
662 claimed herein for Governmental purposes. All other rights are
663 reserved by the copyright owner.}% rev 01/01/2002
664 \newcommand{\AIAAcopyrightDAPL}[1]{Copyright \copyright\ #1 by the American
665 Institute of Aeronautics and Astronautics, Inc. Under the copyright
666 claimed herein, the U.S. Government has a royalty-free license to
667 exercise all rights for Governmental purposes. All other rights are
668 reserved by the copyright owner.}% rev 01/01/2002
669 % \end{macrocode}
670 % \end{macro}
671 % \end{macro}
672 % \end{macro}
673 % \end{macro}
674 % \end{macro}
675 % \begin{macro}{\aiaa@makecopyright}
676 % Typeset copyright notice as a footnote of the first page
677 % \begin{macrocode}
678 \newcommand\aiaa@makecopyright{%
679 \begingroup
680 \renewcommand\thefootnote{}
681 \if@aiaa@handcarry\footnotetext{\aiaa@copyright}\fi
682 \endgroup
683 }
684 % \end{macrocode}
685 % \end{macro}
686 % \begin{macro}{\thanksibid}
687 % Define |\thanksibid| command to reuse \thanks footnote symbol of a
688 % previous author
689 % \begin{macrocode}
690 \newcounter{aiaa@cthanks}
691 \newcounter{aiaa@cfootnote}
692 \newcommand{\thanksibid}[1]{%
693 \begingroup
694 \setcounter{aiaa@cfootnote}{\value{footnote}}% store original
695 \setcounter{aiaa@cthanks}{#1}%
696 \renewcommand\thefootnote{\fnsymbol{aiaa@cthanks}}%
697 \footnotemark%
698 \setcounter{footnote}{\value{aiaa@cfootnote}}% reset to original
699 \endgroup
700 }
701 % \end{macrocode}
702 % \end{macro}
703 % \begin{macro}{\maketitle}
704 % Rework |\maketitle| a bit and remove its |\pagestyle{plain}| [article.cls]
705 % \begin{macrocode}
706 \renewcommand\maketitle{\par
707 \begingroup
708 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
709 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
710 \long\def\@makefntext##1{\parindent 1em\noindent
711 \hb@[email protected]{%
712 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
713 \newpage
714 \global\@topnum\z@ % Prevents figures from going at top of page.
715 \@maketitle
716 \@thanks
717 \endgroup
718 \setcounter{footnote}{0}%
719 \renewcommand\thefootnote{\@alph\c@footnote}% change to alpha style footnote
720 \aiaa@makecopyright
721 \global\let\thanks\relax
722 \global\let\thanksibid\relax
723 \global\let\maketitle\relax
724 \global\let\@maketitle\relax
725 \global\let\@thanks\@empty
726 \global\let\@author\@empty
727 \global\let\@date\@empty
728 \global\let\@title\@empty
729 \global\let\title\relax
730 \global\let\author\relax
731 \global\let\date\relax
732 \global\let\and\relax
733 }
734 % \end{macrocode}
735 % \end{macro}
736 % \begin{macro}{\@maketitle}
737 % Add conference name at top and remove date [article.cls]
738 % \begin{macrocode}
739 \def\@maketitle{%
740 \newpage
741 \null
742 \begin{center}%
743 \if@aiaa@handcarry
744 {\sffamily\scriptsize\aiaa@conference}
745 \vskip1em
746 \else
747 \vskip\baselineskip
748 \vskip1em
749 \fi
750 \let \footnote \thanks
751 {\LARGE\bfseries \@title \par}%
752 \vskip 1.5em%
753 {\large
754 \lineskip .5em%
755 \begin{tabular}[t]{c}%
756 \@author
757 \end{tabular}\par}%
758 \end{center}%
759 \par
760 \vskip 1.5ex}
761 % \end{macrocode}
762 % \end{macro}
763 % Reduce the quantity of overfull warnings
764 % \begin{macrocode}
765 \setlength\hfuzz{2pt}
766 % \end{macrocode}
767 % Setup page headers and footers [fancyhdr.sty]
768 % \begin{macrocode}
769 \fancyhf{}% clear defaults
770 \renewcommand{\headrulewidth}{0pt}% turn off default headrule
771 \cfoot{\footnotesize\normalfont
772 \thepage\ of \pageref{LastPage}\\
773 \rule[.2\baselineskip]{0.5in}{0.2pt}\\
774 \if@aiaa@submit
775 \aiaa@submitinfo
776 \else
777 American Institute of Aeronautics and Astronautics
778 \ifx\aiaa@papernumber\@empty
779 \relax
780 \else
781 \if@aiaa@handcarry Paper \aiaa@papernumber\fi
782 \fi
783 \fi}
784 \pagestyle{fancy}
785 % \end{macrocode}
786 % Set graphic defaults [graphicx.sty]
787 % \begin{macrocode}
788 \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
789 % \end{macrocode}
790 % Add some extra space between tabular rows [array.sty]
791 % \begin{macrocode}
792 \setlength{\extrarowheight}{2pt}
793 % \end{macrocode}
794 % \begin{environment}{\abstract}
795 % Remove abstract name and add bold font [article.cls]
796 % \begin{macrocode}
797 \renewenvironment{abstract}%
798 {\small\quotation\bfseries}%
799 {\normalfont\endquotation\normalsize}
800 % \end{macrocode}
801 % \end{environment}
802 % \begin{macro}{\@makecaption}
803 % Change font and delimeter for captions [article.cls]
804 % \begin{macrocode}
805 \long\def\@makecaption#1#2{%
806 \vskip\abovecaptionskip
807 \sbox\@tempboxa{\footnotesize\bfseries #1.~~#2}%
808 \ifdim \wd\@tempboxa >\hsize
809 \footnotesize\bfseries #1.~~#2\par
810 \else
811 \global \@minipagefalse
812 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
813 \fi
814 \vskip\belowcaptionskip}
815 % \end{macrocode}
816 % \end{macro}
817 % Add some belowcaptionskip to make table captions look better [article.cls]
818 % \begin{macrocode}
819 \setlength\belowcaptionskip{5pt plus 1pt minus 1pt}
820 % \end{macrocode}
821 % Change style of section numbering [article.cls]
822 % \begin{macrocode}
823 \renewcommand\thesection {\@Roman\c@section}
824 \renewcommand\thesubsection {\@Alph\c@subsection}
825 \renewcommand\thesubsubsection{\@arabic\c@subsubsection}
826 \renewcommand\theparagraph {\@alph\c@paragraph}
827 \renewcommand\thesubparagraph {\@roman\c@subparagraph}
828 \setcounter{secnumdepth}{3}% no counters \paragraph and below
829 % \end{macrocode}
830 % \begin{macro}{\@seccntformat}
831 % Add period after the section counter [latex.ltx]
832 % \begin{macrocode}
833 \def\@seccntformat#1{\csname the#1\endcsname.\quad}
834 % \end{macrocode}
835 % \end{macro}
836 % \begin{macro}{\section}
837 % \begin{macro}{\subsection}
838 % \begin{macro}{\subsubsection}
839 % \begin{macro}{\paragraph}
840 % \begin{macro}{\subparagraph}
841 % Change style of sections [article.cls]
842 % \begin{macrocode}
843 \renewcommand\section{\@startsection {section}{1}{\z@}%
844 {3.5ex \@plus -1ex \@minus -.2ex}%
845 {2.3ex \@plus.2ex}%
846 {\center\normalfont\large\bfseries}}
847 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
848 {-3.25ex\@plus -1ex \@minus -.2ex}%
849 {1.5ex \@plus .2ex}%
850 {\normalfont\normalsize\bfseries}}
851 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
852 {-3.25ex\@plus -1ex \@minus -.2ex}%
853 {1.5ex \@plus .2ex}%
854 {\normalfont\normalsize\itshape}}
855 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
856 {2.25ex \@plus1ex \@minus.2ex}%
857 {-1em}%
858 {\normalfont\normalsize\scshape}}
859 \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
860 {2.25ex \@plus1ex \@minus .2ex}%
861 {-1em}%
862 {\normalfont\normalfont}}
863 % \end{macrocode}
864 % \end{macro}
865 % \end{macro}
866 % \end{macro}
867 % \end{macro}
868 % \end{macro}
869 % \begin{macro}{\@biblabel}
870 % \begin{environment}{thebibliography}
871 % Redefine bibliography behavior for superscripts and smaller font [article.cls]
872 % \begin{macrocode}
873 \renewcommand{\@biblabel}[1]{$^{#1}$}
874 \renewenvironment{thebibliography}[1]%
875 {\section*{\refname\@mkboth{\MakeUppercase\refname}%
876 {\MakeUppercase\refname}}%
877 \list{\@biblabel{\@arabic\c@enumiv}}%
878 {\setlength{\leftmargin}{0pt}%
879 \settowidth{\labelwidth}{\@biblabel{#1}}%
880 \setlength{\itemindent}{\parindent}%
881 \advance\itemindent by \labelwidth%
882 \setlength{\labelsep}{0.0em}%
883 \setlength{\itemsep}{-\smallskipamount}%
884 \@openbib@code%
885 \usecounter{enumiv}%
886 \let\p@enumiv\@empty%
887 \renewcommand\theenumiv{\@arabic\c@enumiv}%
888 \footnotesize%
889 }
890 \sloppy\clubpenalty4000\widowpenalty4000%
891 \sfcode`\.\@m}
892 {\def\@noitemerr
893 {\@latex@warning{Empty `thebibliography' environment}}%
894 \endlist}
895 % \end{macrocode}
896 % \end{environment}
897 % \end{macro}
898 % Change line spacing if using |submit| option and modify package
899 % behaviors slightly if they are loaded.
900 % \begin{macrocode}
901 \AtBeginDocument{%
902 \if@aiaa@submit\onehalfspacing\fi
903 % \end{macrocode}
904 % \begin{macro}{\tablenotes}
905 % |threeparttable.sty|---|\footnotesize| notes, reduce the space between
906 % the superscript and the note, and increase some spacing (|\itemsep| and
907 % |\topsep|) in the tablenotes environment
908 % \begin{macrocode}
909 \@ifundefined{TPT@hsize}{}{%
910 \def\tablenotes{%
911 \TPT@hsize
912 \list{}%
913 {\footnotesize\topsep4pt \partopsep\z@skip
914 \itemsep2pt \parsep\z@ \itemindent\z@ \leftmargin1.5em
915 \def\makelabel##1{\tnote{##1}\hfil}\labelwidth0.5em\labelsep1pt%
916 \relax}}
917 }%
918 % \end{macrocode}
919 % \end{macro}
920 % |nomencl.sty|
921 % \begin{macrocode}
922 \@ifundefined{nomgroup}{}{%
923 \RequirePackage{ifthen}% for typesetting groups within nomenclature
924 % \end{macrocode}
925 % Single-space nomenclature
926 % \begin{macrocode}
927 \setlength{\nomitemsep}{-\parsep}
928 % \end{macrocode}
929 % \begin{macro}{\nomgroup}
930 % Sort nomenclature according to types
931 % \begin{macrocode}
932 \renewcommand{\nomgroup}[1]{%
933 \medskip%
934 \ifthenelse{\equal{#1}{A}}%
935 {\relax}%
936 {\ifthenelse{\equal{#1}{G}}%
937 {\item []\hspace*{-\leftmargin}%
938 \emph{Symbols}\hfill\smallskip}%
939 {\ifthenelse{\equal{#1}{B}}%
940 {\item []\hspace*{-\leftmargin}%
941 \emph{Subscripts}\hfill\smallskip}%
942 {\ifthenelse{\equal{#1}{C}}%
943 {\item []\hspace*{-\leftmargin}%
944 \emph{Conventions}\hfill\smallskip}%
945 {\ifthenelse{\equal{#1}{T}}%
946 {\item []\hspace*{-\leftmargin}%
947 \emph{Superscripts}\hfill\smallskip}{}%
948 }%
949 }%
950 }%
951 }%
952 }% \nomgroup
953 }% @ifundefined
954 }% \AtBeginDocument
955 % \end{macrocode}
956 % \end{macro}
957 %
958 % \begin{macrocode}
959 %</class>
960 % \end{macrocode}
961 %
962 % This concludes \cls{aiaa-tc.cls}.
963 %
964 %
965 % \subsection{The Bibliography Style}
966 %
967 % \begin{macrocode}
968 %<*bibstyle>
969 %
970 % Note: this file originally created with Daly's custom-bib software
971 %
972 ENTRY
973 { address
974 author
975 booktitle
976 chapter
977 edition
978 editor
979 howpublished
980 institution
981 journal
982 key
983 month
984 note
985 number
986 organization
987 pages
988 publisher
989 school
990 series
991 title
992 type
993 volume
994 year
995 }
996 {}
997 { label }
998
999 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
1000
1001 FUNCTION {init.state.consts}
1002 { #0 'before.all :=
1003 #1 'mid.sentence :=
1004 #2 'after.sentence :=
1005 #3 'after.block :=
1006 }
1007
1008 STRINGS { s t }
1009
1010 FUNCTION {output.nonnull}
1011 { 's :=
1012 output.state mid.sentence =
1013 { ", " * write$ }
1014 { output.state after.block =
1015 { add.period$ write$
1016 newline$
1017 "\newblock " write$
1018 }
1019 { output.state before.all =
1020 'write$
1021 { add.period$ " " * write$ }
1022 if$
1023 }
1024 if$
1025 mid.sentence 'output.state :=
1026 }
1027 if$
1028 s
1029 }
1030
1031 FUNCTION {output}
1032 { duplicate$ empty$
1033 'pop$
1034 'output.nonnull
1035 if$
1036 }
1037
1038 FUNCTION {output.check}
1039 { 't :=
1040 duplicate$ empty$
1041 { pop$ "empty " t * " in " * cite$ * warning$ }
1042 'output.nonnull
1043 if$
1044 }
1045
1046 FUNCTION {fin.entry}
1047 { add.period$
1048 write$
1049 newline$
1050 }
1051
1052 FUNCTION {new.block}
1053 { output.state before.all =
1054 'skip$
1055 { after.block 'output.state := }
1056 if$
1057 }
1058
1059 FUNCTION {new.sentence}
1060 { output.state after.block =
1061 'skip$
1062 { output.state before.all =
1063 'skip$
1064 { after.sentence 'output.state := }
1065 if$
1066 }
1067 if$
1068 }
1069
1070 FUNCTION {add.blank}
1071 { " " * before.all 'output.state :=
1072 }
1073
1074 FUNCTION {date.block}
1075 {
1076 skip$
1077 }
1078
1079 FUNCTION {not}
1080 { { #0 }
1081 { #1 }
1082 if$
1083 }
1084
1085 FUNCTION {and}
1086 { 'skip$
1087 { pop$ #0 }
1088 if$
1089 }
1090
1091 FUNCTION {or}
1092 { { pop$ #1 }
1093 'skip$
1094 if$
1095 }
1096
1097 FUNCTION {non.stop}
1098 { duplicate$
1099 "}" * add.period$
1100 #-1 #1 substring$ "." =
1101 }
1102
1103 FUNCTION {new.block.checka}
1104 { empty$
1105 'skip$
1106 'new.block
1107 if$
1108 }
1109
1110 FUNCTION {new.block.checkb}
1111 { empty$
1112 swap$ empty$
1113 and
1114 'skip$
1115 'new.block
1116 if$
1117 }
1118
1119 FUNCTION {new.sentence.checka}
1120 { empty$
1121 'skip$
1122 'new.sentence
1123 if$
1124 }
1125
1126 FUNCTION {new.sentence.checkb}
1127 { empty$
1128 swap$ empty$
1129 and
1130 'skip$
1131 'new.sentence
1132 if$
1133 }
1134
1135 FUNCTION {field.or.null}
1136 { duplicate$ empty$
1137 { pop$ "" }
1138 'skip$
1139 if$
1140 }
1141
1142 FUNCTION {emphasize}
1143 { duplicate$ empty$
1144 { pop$ "" }
1145 { "{\em " swap$ * "\/}" * }
1146 if$
1147 }
1148
1149 FUNCTION {capitalize}
1150 { "u" change.case$ "t" change.case$ }
1151
1152 FUNCTION {space.word}
1153 { " " swap$ * " " * }
1154
1155 FUNCTION {bbl.and}
1156 { "and"}
1157
1158 FUNCTION {bbl.editors}
1159 { "editors" }
1160
1161 FUNCTION {bbl.editor}
1162 { "editor" }
1163
1164 FUNCTION {bbl.edby}
1165 { "edited by" }
1166
1167 FUNCTION {bbl.edition}
1168 { "ed." }
1169
1170 FUNCTION {bbl.volume}
1171 { "Vol." }
1172
1173 FUNCTION {bbl.of}
1174 { "of" }
1175
1176 FUNCTION {bbl.number}
1177 { "No." }
1178
1179 FUNCTION {bbl.nr}
1180 { "No." }
1181
1182 FUNCTION {bbl.in}
1183 { "in" }
1184
1185 FUNCTION {bbl.pages}
1186 { "pp." }
1187
1188 FUNCTION {bbl.page}
1189 { "p." }
1190
1191 FUNCTION {bbl.chapter}
1192 { "chap." }
1193
1194 FUNCTION {bbl.techrep}
1195 { "Tech. Rep." }
1196
1197 FUNCTION {bbl.mthesis}
1198 { "Master's thesis" }
1199
1200 FUNCTION {bbl.phdthesis}
1201 { "Ph.D. thesis" }
1202
1203 FUNCTION {bbl.first}
1204 { "1st" }
1205
1206 FUNCTION {bbl.second}
1207 { "2nd" }
1208
1209 FUNCTION {bbl.third}
1210 { "3rd" }
1211
1212 FUNCTION {bbl.fourth}
1213 { "4th" }
1214
1215 FUNCTION {bbl.fifth}
1216 { "5th" }
1217
1218 FUNCTION {bbl.st}
1219 { "st" }
1220
1221 FUNCTION {bbl.nd}
1222 { "nd" }
1223
1224 FUNCTION {bbl.rd}
1225 { "rd" }
1226
1227 FUNCTION {bbl.th}
1228 { "th" }
1229
1230 MACRO {jan} {"Jan."}
1231
1232 MACRO {feb} {"Feb."}
1233
1234 MACRO {mar} {"March"}
1235
1236 MACRO {apr} {"April"}
1237
1238 MACRO {may} {"May"}
1239
1240 MACRO {jun} {"June"}
1241
1242 MACRO {jul} {"July"}
1243
1244 MACRO {aug} {"Aug."}
1245
1246 MACRO {sep} {"Sept."}
1247
1248 MACRO {oct} {"Oct."}
1249
1250 MACRO {nov} {"Nov."}
1251
1252 MACRO {dec} {"Dec."}
1253
1254 MACRO {jan-feb} {"Jan.-Feb."}
1255
1256 MACRO {mar-apr} {"Mar.-Apr."}
1257
1258 MACRO {may-jun} {"May-Jun."}
1259
1260 MACRO {jul-aug} {"Jul.-Aug."}
1261
1262 MACRO {sep-oct} {"Sep.-Oct."}
1263
1264 MACRO {nov-dec} {"Nov.-Dec."}
1265
1266 FUNCTION {eng.ord}
1267 { duplicate$ "1" swap$ *
1268 #-2 #1 substring$ "1" =
1269 { bbl.th * }
1270 { duplicate$ #-1 #1 substring$
1271 duplicate$ "1" =
1272 { pop$ bbl.st * }
1273 { duplicate$ "2" =
1274 { pop$ bbl.nd * }
1275 { "3" =
1276 { bbl.rd * }
1277 { bbl.th * }
1278 if$
1279 }
1280 if$
1281 }
1282 if$
1283 }
1284 if$
1285 }
1286
1287 MACRO {jsr} {"Journal of Spacecraft and Rockets"}
1288
1289 MACRO {aa} {"Aerospace America"}
1290
1291 MACRO {Sb} {"Space News"}
1292
1293 MACRO {awst} {"Aviation Week \& Space Technology"}
1294
1295 MACRO {jcp} {"Journal of Computational Physics"}
1296
1297 MACRO {ijcfd} {"International Journal of Computational Fluid Dynamics"}
1298
1299 MACRO {ijnme} {"International Journal for Numerical Methods in Engineering"}
1300
1301 MACRO {acmcs} {"ACM Computing Surveys"}
1302
1303 MACRO {acta} {"Acta Informatica"}
1304
1305 MACRO {cacm} {"Communications of the ACM"}
1306
1307 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
1308
1309 MACRO {ibmsj} {"IBM Systems Journal"}
1310
1311 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
1312
1313 MACRO {ieeetc} {"IEEE Transactions on Computers"}
1314
1315 MACRO {ieeetcad}
1316 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
1317
1318 MACRO {ipl} {"Information Processing Letters"}
1319
1320 MACRO {jacm} {"Journal of the ACM"}
1321
1322 MACRO {jcss} {"Journal of Computer and System Sciences"}
1323
1324 MACRO {scp} {"Science of Computer Programming"}
1325
1326 MACRO {sicomp} {"SIAM Journal on Computing"}
1327
1328 MACRO {tocs} {"ACM Transactions on Computer Systems"}
1329
1330 MACRO {tods} {"ACM Transactions on Database Systems"}
1331
1332 MACRO {tog} {"ACM Transactions on Graphics"}
1333
1334 MACRO {toms} {"ACM Transactions on Mathematical Software"}
1335
1336 MACRO {toois} {"ACM Transactions on Office Information Systems"}
1337
1338 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
1339
1340 MACRO {tcs} {"Theoretical Computer Science"}
1341
1342 INTEGERS { nameptr namesleft numnames }
1343
1344 FUNCTION {format.names}
1345 { 's :=
1346 #1 'nameptr :=
1347 s num.names$ 'numnames :=
1348 numnames 'namesleft :=
1349 { namesleft #0 > }
1350 { s nameptr
1351 "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=
1352 nameptr #1 >
1353 {
1354 namesleft #1 >
1355 { ", " * t * }
1356 {
1357 numnames #2 >
1358 { "," * }
1359 'skip$
1360 if$
1361 t "others" =
1362 { " et~al." * }
1363 { bbl.and space.word * t * }
1364 if$
1365 }
1366 if$
1367 }
1368 't
1369 if$
1370 nameptr #1 + 'nameptr :=
1371 namesleft #1 - 'namesleft :=
1372 }
1373 while$
1374 }
1375
1376 FUNCTION {format.names.ed}
1377 { 's :=
1378 #1 'nameptr :=
1379 s num.names$ 'numnames :=
1380 numnames 'namesleft :=
1381 { namesleft #0 > }
1382 { s nameptr
1383 "{f.~}{vv~}{ll}{, jj}"
1384 format.name$ 't :=
1385 nameptr #1 >
1386 {
1387 namesleft #1 >
1388 { ", " * t * }
1389 {
1390 numnames #2 >
1391 { "," * }
1392 'skip$
1393 if$
1394 t "others" =
1395 { " et~al." * }
1396 { bbl.and space.word * t * }
1397 if$
1398 }
1399 if$
1400 }
1401 't
1402 if$
1403 nameptr #1 + 'nameptr :=
1404 namesleft #1 - 'namesleft :=
1405 }
1406 while$
1407 }
1408
1409 FUNCTION {format.authors}
1410 { author empty$
1411 { "" }
1412 {
1413 author format.names
1414 }
1415 if$
1416 }
1417
1418 FUNCTION {format.editors}
1419 { editor empty$
1420 { "" }
1421 {
1422 editor format.names
1423 editor num.names$ #1 >
1424 { ", " * bbl.editors * }
1425 { ", " * bbl.editor * }
1426 if$
1427 }
1428 if$
1429 }
1430
1431 FUNCTION {format.in.editors}
1432 { editor empty$
1433 { "" }
1434 { editor format.names.ed
1435 }
1436 if$
1437 }
1438
1439 FUNCTION {format.title}
1440 { title empty$
1441 { "" }
1442 { title
1443 "\enquote{" swap$ *
1444 non.stop
1445 { ",} " * }
1446 { "} " * }
1447 if$
1448 }
1449 if$
1450 }
1451
1452 FUNCTION {end.quote.title}
1453 { title empty$
1454 'skip$
1455 { before.all 'output.state := }
1456 if$
1457 }
1458
1459 FUNCTION {output.bibitem}
1460 { newline$
1461 "\bibitem{" write$
1462 cite$ write$
1463 "}" write$
1464 newline$
1465 ""
1466 before.all 'output.state :=
1467 }
1468
1469 FUNCTION {n.dashify}
1470 { 't :=
1471 ""
1472 { t empty$ not }
1473 { t #1 #1 substring$ "-" =
1474 { t #1 #2 substring$ "--" = not
1475 { "--" *
1476 t #2 global.max$ substring$ 't :=
1477 }
1478 { { t #1 #1 substring$ "-" = }
1479 { "-" *
1480 t #2 global.max$ substring$ 't :=
1481 }
1482 while$
1483 }
1484 if$
1485 }
1486 { t #1 #1 substring$ *
1487 t #2 global.max$ substring$ 't :=
1488 }
1489 if$
1490 }
1491 while$
1492 }
1493
1494 FUNCTION {word.in}
1495 { "" }
1496
1497 FUNCTION {format.date}
1498 { year empty$
1499 { month empty$
1500 { "" }
1501 { "there's a month but no year in " cite$ * warning$
1502 month
1503 }
1504 if$
1505 }
1506 { month empty$
1507 'year
1508 { month " " * year * }
1509 if$
1510 }
1511 if$
1512 }
1513
1514 FUNCTION {format.btitle}
1515 { title emphasize
1516 }
1517
1518 FUNCTION {tie.or.space.connect}
1519 { duplicate$ text.length$ #3 <
1520 { "~" }
1521 { " " }
1522 if$
1523 swap$ * *
1524 }
1525
1526 FUNCTION {either.or.check}
1527 { empty$
1528 'pop$
1529 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
1530 if$
1531 }
1532
1533 FUNCTION {format.bvolume}
1534 { volume empty$
1535 { "" }
1536 { bbl.volume volume tie.or.space.connect
1537 series empty$
1538 'skip$
1539 { bbl.of space.word * series emphasize * }
1540 if$
1541 "volume and number" number either.or.check
1542 }
1543 if$
1544 }
1545
1546 FUNCTION {format.number.series}
1547 { volume empty$
1548 { number empty$
1549 { series field.or.null }
1550 { output.state mid.sentence =
1551 { bbl.number }
1552 { bbl.number capitalize }
1553 if$
1554 number tie.or.space.connect
1555 series empty$
1556 { "there's a number but no series in " cite$ * warning$ }
1557 { bbl.in space.word * series * }
1558 if$
1559 }
1560 if$
1561 }
1562 { "" }
1563 if$
1564 }
1565
1566 FUNCTION {is.num}
1567 { chr.to.int$
1568 duplicate$ "0" chr.to.int$ < not
1569 swap$ "9" chr.to.int$ > not and
1570 }
1571
1572 FUNCTION {extract.num}
1573 { duplicate$ 't :=
1574 "" 's :=
1575 { t empty$ not }
1576 { t #1 #1 substring$
1577 t #2 global.max$ substring$ 't :=
1578 duplicate$ is.num
1579 { s swap$ * 's := }
1580 { pop$ "" 't := }
1581 if$
1582 }
1583 while$
1584 s empty$
1585 'skip$
1586 { pop$ s }
1587 if$
1588 }
1589
1590 FUNCTION {convert.edition}
1591 { edition extract.num "l" change.case$ 's :=
1592 s "first" = s "1" = or
1593 { bbl.first 't := }
1594 { s "second" = s "2" = or
1595 { bbl.second 't := }
1596 { s "third" = s "3" = or
1597 { bbl.third 't := }
1598 { s "fourth" = s "4" = or
1599 { bbl.fourth 't := }
1600 { s "fifth" = s "5" = or
1601 { bbl.fifth 't := }
1602 { s #1 #1 substring$ is.num
1603 { s eng.ord 't := }
1604 { edition 't := }
1605 if$
1606 }
1607 if$
1608 }
1609 if$
1610 }
1611 if$
1612 }
1613 if$
1614 }
1615 if$
1616 t
1617 }
1618
1619 FUNCTION {format.edition}
1620 { edition empty$
1621 { "" }
1622 { output.state mid.sentence =
1623 { convert.edition "l" change.case$ " " * bbl.edition * }
1624 { convert.edition "t" change.case$ " " * bbl.edition * }
1625 if$
1626 }
1627 if$
1628 }
1629
1630 INTEGERS { multiresult }
1631
1632 FUNCTION {multi.page.check}
1633 { 't :=
1634 #0 'multiresult :=
1635 { multiresult not
1636 t empty$ not
1637 and
1638 }
1639 { t #1 #1 substring$
1640 duplicate$ "-" =
1641 swap$ duplicate$ "," =
1642 swap$ "+" =
1643 or or
1644 { #1 'multiresult := }
1645 { t #2 global.max$ substring$ 't := }
1646 if$
1647 }
1648 while$
1649 multiresult
1650 }
1651
1652 FUNCTION {format.pages}
1653 { pages empty$
1654 { "" }
1655 { pages multi.page.check
1656 { bbl.pages pages n.dashify tie.or.space.connect }
1657 { bbl.page pages tie.or.space.connect }
1658 if$
1659 }
1660 if$
1661 }
1662
1663 FUNCTION {format.journal.pages}
1664 {
1665 pages empty$
1666 'skip$
1667 { duplicate$ empty$
1668 { pop$ format.pages }
1669 { ", " * bbl.pages "~" * * pages n.dashify * }
1670 if$
1671 }
1672 if$
1673 }
1674
1675 FUNCTION {format.vol.num.pages}
1676 { volume field.or.null
1677 volume empty$
1678 'skip$
1679 { bbl.volume "~" * swap$ * }
1680 if$
1681 number empty$
1682 'skip$
1683 {
1684 ", " bbl.nr * number tie.or.space.connect *
1685 volume empty$
1686 { "there's a number but no volume in " cite$ * warning$ }
1687 'skip$
1688 if$
1689 }
1690 if$
1691 }
1692
1693 FUNCTION {format.chapter.pages}
1694 { chapter empty$
1695 { "" }
1696 { type empty$
1697 { bbl.chapter }
1698 { type "l" change.case$ }
1699 if$
1700 chapter tie.or.space.connect
1701 }
1702 if$
1703 }
1704
1705 FUNCTION {format.in.ed.booktitle}
1706 { booktitle empty$
1707 { "" }
1708 { editor empty$
1709 { word.in booktitle emphasize * }
1710 { word.in booktitle emphasize *
1711 ", " *
1712 bbl.edby
1713 *
1714 " " *
1715 format.in.editors *
1716 }
1717 if$
1718 }
1719 if$
1720 }
1721
1722 FUNCTION {empty.misc.check}
1723 { author empty$ title empty$ howpublished empty$
1724 month empty$ year empty$ note empty$
1725 and and and and and
1726 { "all relevant fields are empty in " cite$ * warning$ }
1727 'skip$
1728 if$
1729 }
1730
1731 FUNCTION {format.thesis.type}
1732 { type empty$
1733 'skip$
1734 { pop$
1735 type "t" change.case$
1736 }
1737 if$
1738 }
1739
1740 FUNCTION {format.tr.number}
1741 { type empty$
1742 { bbl.techrep }
1743 'type
1744 if$
1745 number empty$
1746 { "t" change.case$ }
1747 { number tie.or.space.connect }
1748 if$
1749 }
1750
1751 FUNCTION {format.article.crossref}
1752 {
1753 key empty$
1754 { journal empty$
1755 { "need key or journal for " cite$ * " to crossref " * crossref *
1756 warning$
1757 ""
1758 }
1759 { word.in journal emphasize * }
1760 if$
1761 }
1762 { word.in key * " " *}
1763 if$
1764 " \cite{" * crossref * "}" *
1765 }
1766
1767 FUNCTION {format.crossref.editor}
1768 { editor #1 "{vv~}{ll}" format.name$
1769 editor num.names$ duplicate$
1770 #2 >
1771 { pop$ " et~al." * }
1772 { #2 <
1773 'skip$
1774 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1775 { " et~al." * }
1776 { bbl.and space.word * editor #2 "{vv~}{ll}" format.name$ * }
1777 if$
1778 }
1779 if$
1780 }
1781 if$
1782 }
1783
1784 FUNCTION {format.book.crossref}
1785 { volume empty$
1786 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
1787 word.in
1788 }
1789 { bbl.volume volume tie.or.space.connect
1790 bbl.of space.word *
1791 }
1792 if$
1793 editor empty$
1794 editor field.or.null author field.or.null =
1795 or
1796 { key empty$
1797 { series empty$
1798 { "need editor, key, or series for " cite$ * " to crossref " *
1799 crossref * warning$
1800 "" *
1801 }
1802 { series emphasize * }
1803 if$
1804 }
1805 { key * }
1806 if$
1807 }
1808 { format.crossref.editor * }
1809 if$
1810 " \cite{" * crossref * "}" *
1811 }
1812
1813 FUNCTION {format.incoll.inproc.crossref}
1814 {
1815 editor empty$
1816 editor field.or.null author field.or.null =
1817 or
1818 { key empty$
1819 { booktitle empty$
1820 { "need editor, key, or booktitle for " cite$ * " to crossref " *
1821 crossref * warning$
1822 ""
1823 }
1824 { word.in booktitle emphasize * }
1825 if$
1826 }
1827 { word.in key * " " *}
1828 if$
1829 }
1830 { word.in format.crossref.editor * " " *}
1831 if$
1832 " \cite{" * crossref * "}" *
1833 }
1834
1835 FUNCTION {format.publisher}
1836 { publisher empty$
1837 { "empty publisher in " cite$ * warning$ }
1838 'skip$
1839 if$
1840 ""
1841 address empty$ publisher empty$ and
1842 'skip$
1843 {
1844 publisher empty$
1845 { address empty$
1846 'skip$
1847 { address * }
1848 if$
1849 }
1850 { publisher *
1851 address empty$
1852 'skip$
1853 { ", " * address * }
1854 if$
1855 }
1856 if$
1857 }
1858 if$
1859 output
1860 }
1861
1862 FUNCTION {article}
1863 { output.bibitem
1864 format.authors "author" output.check
1865 format.title "title" output.check
1866 end.quote.title
1867 crossref missing$
1868 { journal
1869 emphasize
1870 "journal" output.check
1871 format.vol.num.pages output
1872 format.date "year" output.check
1873 }
1874 { format.article.crossref output.nonnull
1875 format.pages output
1876 }
1877 if$
1878 format.journal.pages
1879 note output
1880 fin.entry
1881 }
1882
1883 FUNCTION {book}
1884 { output.bibitem
1885 author empty$
1886 { format.editors "author and editor" output.check
1887 }
1888 { format.authors output.nonnull
1889 crossref missing$
1890 { "author and editor" editor either.or.check }
1891 'skip$
1892 if$
1893 }
1894 if$
1895 format.btitle "title" output.check
1896 crossref missing$
1897 { format.bvolume output
1898 format.number.series output
1899 format.publisher
1900 }
1901 {
1902 format.book.crossref output.nonnull
1903 }
1904 if$
1905 format.edition output
1906 format.date "year" output.check
1907 note output
1908 fin.entry
1909 }
1910
1911 FUNCTION {booklet}
1912 { output.bibitem
1913 format.authors output
1914 format.title "title" output.check
1915 end.quote.title
1916 howpublished output
1917 address output
1918 format.date output
1919 note output
1920 fin.entry
1921 }
1922
1923 FUNCTION {inbook}
1924 { output.bibitem
1925 author empty$
1926 { format.editors "author and editor" output.check
1927 }
1928 { format.authors output.nonnull
1929 crossref missing$
1930 { "author and editor" editor either.or.check }
1931 'skip$
1932 if$
1933 }
1934 if$
1935 format.btitle "title" output.check
1936 crossref missing$
1937 {
1938 format.bvolume output
1939 format.chapter.pages "chapter and pages" output.check
1940 format.number.series output
1941 format.publisher
1942 }
1943 {
1944 format.chapter.pages "chapter and pages" output.check
1945 format.book.crossref output.nonnull
1946 }
1947 if$
1948 format.edition output
1949 format.date "year" output.check
1950 format.pages "pages" output.check
1951 note output
1952 fin.entry
1953 }
1954
1955 FUNCTION {incollection}
1956 { output.bibitem
1957 format.authors "author" output.check
1958 format.title "title" output.check
1959 end.quote.title
1960 crossref missing$
1961 { format.in.ed.booktitle "booktitle" output.check
1962 format.bvolume output
1963 format.number.series output
1964 format.chapter.pages output
1965 format.publisher
1966 format.edition output
1967 format.date "year" output.check
1968 }
1969 { format.incoll.inproc.crossref output.nonnull
1970 format.chapter.pages output
1971 }
1972 if$
1973 format.pages "pages" output.check
1974 note output
1975 fin.entry
1976 }
1977
1978 FUNCTION {inproceedings}
1979 { output.bibitem
1980 format.authors "author" output.check
1981 format.title "title" output.check
1982 end.quote.title
1983 crossref missing$
1984 { format.in.ed.booktitle "booktitle" output.check
1985 format.bvolume output
1986 format.number.series output
1987 publisher empty$
1988 { organization output
1989 address output
1990 }
1991 { organization output
1992 format.publisher
1993 }
1994 if$
1995 format.date "year" output.check
1996 }
1997 { format.incoll.inproc.crossref output.nonnull
1998 format.pages output
1999 }
2000 if$
2001 format.pages "pages" output.check
2002 note output
2003 fin.entry
2004 }
2005
2006 FUNCTION {conference} { inproceedings }
2007
2008 FUNCTION {manual}
2009 { output.bibitem
2010 author empty$
2011 { organization empty$
2012 'skip$
2013 { organization output.nonnull
2014 address output
2015 }
2016 if$
2017 }
2018 { format.authors output.nonnull }
2019 if$
2020 format.btitle "title" output.check
2021 author empty$
2022 { organization empty$
2023 {
2024 address output
2025 }
2026 'skip$
2027 if$
2028 }
2029 {
2030 organization output
2031 address output
2032 }
2033 if$
2034 format.edition output
2035 format.date output
2036 note output
2037 fin.entry
2038 }
2039
2040 FUNCTION {mastersthesis}
2041 { output.bibitem
2042 format.authors "author" output.check
2043 format.btitle "title" output.check
2044 bbl.mthesis format.thesis.type output.nonnull
2045 school "school" output.check
2046 address output
2047 format.date "year" output.check
2048 note output
2049 fin.entry
2050 }
2051
2052 FUNCTION {misc}
2053 { output.bibitem
2054 format.authors output
2055 format.title output
2056 end.quote.title
2057 howpublished output
2058 format.date output
2059 note output
2060 fin.entry
2061 empty.misc.check
2062 }
2063
2064 FUNCTION {phdthesis}
2065 { output.bibitem
2066 format.authors "author" output.check
2067 format.btitle "title" output.check
2068 bbl.phdthesis format.thesis.type output.nonnull
2069 school "school" output.check
2070 address output
2071 format.date "year" output.check
2072 note output
2073 fin.entry
2074 }
2075
2076 FUNCTION {proceedings}
2077 { output.bibitem
2078 editor empty$
2079 { organization output }
2080 { format.editors output.nonnull }
2081 if$
2082 format.btitle "title" output.check
2083 format.bvolume output
2084 format.number.series output
2085 address empty$
2086 { editor empty$
2087 { publisher new.sentence.checka }
2088 { organization publisher new.sentence.checkb
2089 organization output
2090 }
2091 if$
2092 publisher output
2093 format.date "year" output.check
2094 }
2095 { address output.nonnull
2096 format.date "year" output.check
2097 editor empty$
2098 'skip$
2099 { organization output }
2100 if$
2101 publisher output
2102 }
2103 if$
2104 note output
2105 fin.entry
2106 }
2107
2108 FUNCTION {techreport}
2109 { output.bibitem
2110 format.authors "author" output.check
2111 format.title "title" output.check
2112 end.quote.title
2113 format.tr.number output.nonnull
2114 institution "institution" output.check
2115 address output
2116 format.date "year" output.check
2117 note output
2118 fin.entry
2119 }
2120
2121 FUNCTION {unpublished}
2122 { output.bibitem
2123 format.authors "author" output.check
2124 format.title "title" output.check
2125 end.quote.title
2126 note "note" output.check
2127 fin.entry
2128 }
2129
2130 FUNCTION {default.type} { misc }
2131
2132 READ
2133
2134 STRINGS { longest.label }
2135
2136 INTEGERS { number.label longest.label.width }
2137
2138 FUNCTION {initialize.longest.label}
2139 { "" 'longest.label :=
2140 #1 'number.label :=
2141 #0 'longest.label.width :=
2142 }
2143
2144 FUNCTION {longest.label.pass}
2145 { number.label int.to.str$ 'label :=
2146 number.label #1 + 'number.label :=
2147 label width$ longest.label.width >
2148 { label 'longest.label :=
2149 label width$ 'longest.label.width :=
2150 }
2151 'skip$
2152 if$
2153 }
2154
2155 EXECUTE {initialize.longest.label}
2156
2157 ITERATE {longest.label.pass}
2158
2159 FUNCTION {begin.bib}
2160 { preamble$ empty$
2161 'skip$
2162 { preamble$ write$ newline$ }
2163 if$
2164 "\begin{thebibliography}{" longest.label * "}" *
2165 write$ newline$
2166 "\newcommand{\enquote}[1]{``#1''}"
2167 write$ newline$
2168 }
2169
2170 EXECUTE {begin.bib}
2171
2172 EXECUTE {init.state.consts}
2173
2174 ITERATE {call.type$}
2175
2176 FUNCTION {end.bib}
2177 { newline$
2178 "\end{thebibliography}" write$ newline$
2179 }
2180
2181 EXECUTE {end.bib}
2182 %
2183 %</bibstyle>
2184 % \end{macrocode}
2185 % This concludes \file{aiaa.bst}.
2186 %
2187 % \Finale
2188 %
2189 % $Id: aiaa.dtx,v 1.11 2004/05/23 12:49:43 kleb Exp $