Debian Codegraph @

texmf-dist/doc/latex/aiaa/template_advanced.tex

raw
1 %
2 % `template_advanced.tex' - An advanced example of using the AIAA class.
3 % For a bare-bones usage, see `template_basic.tex'.
4 %
5 % Typical processing for PostScript (PS) output:
6 %
7 % latex template_advanced
8 % bibtex template_advanced (bibliography)
9 % makeindex -s nomencl.ist -o template_advanced.gls template_advanced.glo
10 % (nomenclature)
11 % latex template_advanced (repeat as needed to resolve references)
12 %
13 % xdvi template_advanced (onscreen draft display)
14 % dvips template_advanced (postscript)
15 % gv template_advanced.ps (onscreen display)
16 % lpr template_advanced.ps (hardcopy)
17 %
18 % With the above, only Encapsulated PostScript (EPS) images can be used.
19 %
20 % Typical processing for Portable Document Format (PDF) output:
21 %
22 % pdflatex template_advanced
23 % bibtex template_advanced (bibliography)
24 % makeindex -s nomencl.ist -o template_advanced.gls template_advanced.glo
25 % (nomenclature)
26 % pdflatex template_advanced (repeat as needed to resolve references)
27 %
28 % acroread template_advanced.pdf (onscreen display)
29 %
30 % If you have EPS figures, you will need to use the epstopdf script
31 % to convert them to PDF because PDF is a limmited subset of EPS.
32 % pdflatex accepts a variety of other image formats such as JPG, TIFF,
33 % PNG, and so forth -- check the documentation for your version.
34 %
35 % If you do *not* specify suffixes when using the graphicx package's
36 % \includegraphics command, latex and pdflatex will automatically select
37 % the appropriate figure format from those available. This allows you
38 % to produce PS and PDF output from the same LaTeX source file.
39 %
40 % To generate a large format (e.g., 11"x17") PostScript copy for editing
41 % purposes, use
42 %
43 % dvips -x 1467 -O -0.65in,0.85in -t tabloid template_advanced
44 %
45 % For further details and support, read the Users Manual, aiaa.pdf.
46 %
47 % This software is released under the terms of the LaTeX Project Public
48 % License. Copyright (C) 2004 by Bil Kleb, Bill Wood, and Erich Knausenberger.
49
50
51 \documentclass{aiaa-tc}% insert '[draft]' option to show overfull boxes
52
53 \usepackage{varioref}% smart page, figure, table, and equation referencing
54 \usepackage{wrapfig}% wrap figures/tables in text (i.e., Di Vinci style)
55 \usepackage{threeparttable}% tables with footnotes
56 \usepackage{dcolumn}% decimal-aligned tabular math columns
57 \newcolumntype{d}{D{.}{.}{-1}}
58 \usepackage{nomencl}% nomenclature generation via makeindex
59 \makeglossary
60 \usepackage{subfigure}% subcaptions for subfigures
61 \usepackage{subfigmat}% matrices of similar subfigures, aka small mulitples
62 \usepackage{fancyvrb}% extended verbatim environments
63 \fvset{fontsize=\footnotesize,xleftmargin=2em}
64 \usepackage{lettrine}% dropped capital letter at beginning of paragraph
65 \usepackage[dvips]{dropping}% alternative dropped capital package
66 \usepackage[colorlinks]{hyperref}% hyperlinks [must be loaded after dropping]
67
68 \title{Advanced AIAA Technical Conference Paper Template}
69
70 \author{
71 First A. Author\thanks{Job Title, Department, Address, and AIAA Member Grade.}
72 \ and Second B. Author\thanksibid{1}\\
73 {\normalsize\itshape
74 Business or Academic Affiliation, City, Province, Zipcode, Country}\\
75 \and
76 Third C. Author\thanks{Job Title, Department, Address,
77 and AIAA Member Grade.}\\
78 {\normalsize\itshape
79 Business or Academic Affiliation, City, Province, Zipcode, Country}
80 }
81
82 % Data used by 'handcarry' option
83 \AIAApapernumber{YEAR-NUMBER}
84 \AIAAconference{Conference Name, Date, and Location}
85 \AIAAcopyright{\AIAAcopyrightD{YEAR}}
86
87 % Define commands to assure consistent treatment throughout document
88 \newcommand{\eqnref}[1]{(\ref{#1})}
89 \newcommand{\class}[1]{\texttt{#1}}
90 \newcommand{\package}[1]{\texttt{#1}}
91 \newcommand{\file}[1]{\texttt{#1}}
92 \newcommand{\BibTeX}{\textsc{Bib}\TeX}
93
94 \begin{document}
95
96 \maketitle
97
98 \begin{abstract}
99 This is the advanced \LaTeX\ template of an AIAA technical conference paper.
100 It is intended to demonstrate advanced \LaTeX\ capabilities for
101 producing an AIAA technical conference paper.
102 Fundamental topics are covered in the bare-bones template.
103 For detailed AIAA layout and style guidelines, please refer to the AIAA
104 \LaTeX\ Package Users Manual, \file{aiaa.pdf}.
105 \end{abstract}
106
107 \printglossary% creates nomenclature section produced by MakeIndex
108
109 \section{Introduction}
110
111 \lettrine[nindent=0pt]{T}{his} is an example of a dropped capital letter
112 at the beginning of a paragraph using the \package{lettrine} package.
113 This package is usually included with the more comprehensive \TeX\
114 distributions, but those with more trim installations may need to
115 retrieve this package from the Comprehensive \TeX\ Archive Network
116 (CTAN), which is located at \href{http://www.ctan.org}{www.ctan.org}.
117 This package does not gracefully handle the AIAA class' \verb|submit|
118 option.
119
120 \dropping{2}{A}{\textsc{nd}} this is an example of a dropped capital
121 letter at the beginning of a paragraph using the \package{dropping}
122 package.
123 This package is a bit less refined than the \package{lettrine} package,
124 but some authors may already have it around if they used the old
125 (unofficial) \LaTeX\ AIAA distribution.
126 This package accommodates the AIAA class' \verb|submit| option.
127
128 \begin{wrapfigure}{R}{0.3\linewidth}
129 \includegraphics{figure_magnet}
130 \caption{Magnetization as a function of applied field.}
131 \label{f:magnetic_field}
132 \end{wrapfigure}
133
134 In an effort to more tightly integrate text and image, the
135 \package{wrapfig} package is employed.
136 This package works by modifying paragraph shape to accommodate a figure
137 (or a table or other items).
138 Typically one inserts its \verb|wrapfigure| or \verb|wraptable|
139 environment just before the paragraph in which it is to be placed.
140 Also specified is the width of the item to be inserted and the
141 placement, for example, left or right side.
142 (This package does not provide for center placement.)
143 The rest of this paragraph is filler so that the \verb|wrapfigure|
144 example will be placed in this paragraph.
145 Documentation of the \package{wrapfigure} package is available at the
146 end of the style file itself (check the package loading lines shown
147 during \LaTeX\ processing to find its location).
148
149 Code listings and other such artifacts can be typeset in a large variety
150 of styles by using the \package{fancyvrb} package.
151 \begin{Verbatim}[numbers=left]
152 def testCircularAdvection
153 position.each_index do |i|
154 @position = position[i]
155 assert_equal speed[i], waveSpeed
156 end
157 end
158 \end{Verbatim}
159
160 Tables with footnotes, such as table~\vref{t:threepart},
161 can be coded using the \package{threeparttable} package.
162 Note: This table was purposely placed on another page through the use of
163 the \verb|[p]| placement specifier to demonstrate the automated page
164 reference mechanism provided by the \package{varioref} package.
165 Of course, one would normally have the table integrated into the text
166 that describes it.
167 \begin{table}[p]
168 \begin{center}
169 \begin{threeparttable}
170 \caption{This is an example of a \package{threeparttable} which uses the
171 \package{dcolumn} package to allow for columns to be aligned on decimal
172 points.}
173 \label{t:threepart}
174 \begin{tabular}{lcdd}
175 First head\tnote{*} &
176 Second head &
177 \multicolumn{1}{c}{Third head} &
178 \multicolumn{1}{c}{$V_M(r)$} \\\hline
179 center & doctor & 0.2 & 10.55 \\
180 tab & dentist & 0.15 & 33.12 \\
181 worse & man\tnote{\ensuremath{\dagger}} & 10.58 & 45.10 \\
182 better & home & 43.9 & 12.34 \\
183 \end{tabular}
184 \begin{tablenotes}
185 \item[*] This is a table footnote, which to span multiple lines, has
186 been greatly extended in length contrary to reason.
187 \item[\ensuremath{\dagger}] A much shorter table footnote.
188 \end{tablenotes}
189 \end{threeparttable}
190 \end{center}
191 \end{table}
192
193 Equation~\eqnref{e:displace} is serving as a demonstration of the
194 \package{nomenclature} package.
195 \begin{equation}
196 \label{e:displace}
197 \mathbf{J}_i\cdot\Delta\underline{x}_{i+1}=-\underline{f}_i
198 \end{equation}%
199 \nomenclature{$J$}{Jacobian Matrix}%
200 \nomenclature[b$i$]{$i$}{Variable number}%
201 \nomenclature[g$\Delta$]{$\Delta x$}{Variable displacement vector}%
202 \nomenclature{$f$}{Residual value vector}%
203 \nomenclature{$x$}{Variable value vector}%
204 The same can be said for Eq.~\eqnref{e:newton} that uses $\alpha$ to add
205 another Greek letter to the mix.
206 \begin{equation}
207 \label{e:newton}
208 F=m\alpha
209 \end{equation}%
210 \nomenclature{$F$}{Force, N}%
211 \nomenclature{$m$}{Mass, kg}%
212 \nomenclature[g$\alpha$]{$\alpha$}{Acceleration, m/s\textsuperscript{2}}%
213 The \package{nomencl} package is fed entries with the
214 \verb|\nomenclature| command.
215 These entries are then collected and sorted using \verb|makeindex|.
216 The optional sorting argument to the \verb|\nomenclature| command uses
217 a key of `b' for subscripts, `g' for Greek symbols, `c' for conventions,
218 and `t' for superscripts.
219
220 When many figures share a similar style and beg to be compared to one
221 another, the \package{subfigmat} and \package{subfigure} packages can be
222 used to create a matrix of subfigures as shown by
223 figure~\vref{f:small_multiple}.
224 \begin{figure}
225 \begin{subfigmatrix}{4}% number of columns
226 \subfigure[2 AM.]{\includegraphics{figure_magnet}}
227 \subfigure[3 AM.]{\includegraphics{figure_magnet}}
228 \subfigure[4 AM.]{\includegraphics{figure_magnet}}
229 \subfigure[5 AM.]{\includegraphics{figure_magnet}}
230 \subfigure[6 AM.]{\includegraphics{figure_magnet}}
231 \subfigure[7 AM.]{\includegraphics{figure_magnet}}
232 \subfigure[8 AM.]{\includegraphics{figure_magnet}}
233 \subfigure[9 AM.]{\includegraphics{figure_magnet}}
234 \end{subfigmatrix}
235 \caption{A time series shown of magnetic field that does not change
236 because we are using the same figure each time.}
237 \label{f:small_multiple}
238 \end{figure}
239 These are called ``small multiples'' by Tufte.\cite{tufte:83bk}
240
241 \section{Conclusion}
242
243 This had been a brief example of some of the more advanced options
244 available for \LaTeX.
245 Please see the documentation for each package for extended discussion or
246 usage.
247
248 % produces the bibliography section when processed by BibTeX
249 \bibliography{bibtex_database}
250 \bibliographystyle{aiaa}
251
252 \end{document}
253
254 % $Id: template_advanced.tex,v 1.6 2004/05/23 12:49:44 kleb Exp $