Debian Codegraph @

texmf-dist/doc/latex/spie/article.tex

raw
1 % article.tex (Version 3.2, released 17 April 2007)
2 % Article to demonstrate format for SPIE Proceedings
3 % Special instructions are included in this file after the
4 % symbol %>>>>
5 % Numerous commands are commented out, but included to show how
6 % to effect various options, e.g., to print page numbers, etc.
7 % This LaTeX source file is composed for LaTeX2e.
8
9 % The following commands have been added in the SPIE class
10 % file (spie.cls) and will not be understood in other classes:
11 % \supit{}, \authorinfo{}, \skiplinehalf, \keywords{}
12 % The bibliography style file is called spiebib.bst,
13 % which replaces the standard style unstr.bst.
14
15 \documentclass[]{spie} %>>> use for US letter paper
16 %%\documentclass[a4paper]{spie} %>>> use this instead for A4 paper
17 %%\documentclass[nocompress]{spie} %>>> to avoid compression of citations
18 %% \addtolength{\voffset}{9mm} %>>> moves text field down
19 %% \renewcommand{\baselinestretch}{1.65} %>>> 1.65 for double spacing, 1.25 for 1.5 spacing
20 % The following command loads a graphics package to include images
21 % in the document. It may be necessary to specify a DVI driver option,
22 % e.g., [dvips], but that may be inappropriate for some LaTeX
23 % installations.
24 \usepackage[]{graphicx}
25
26 \title{Style template and guidelines for SPIE Proceedings}
27
28 %>>>> The author is responsible for formatting the
29 % author list and their institutions. Use \skiplinehalf
30 % to separate author list from addresses and between each address.
31 % The correspondence between each author and his/her address
32 % can be indicated with a superscript in italics,
33 % which is easily obtained with \supit{}.
34
35 \author{Anna A. Author1\supit{a} and Barry B. Author2\supit{b}
36 \skiplinehalf
37 \supit{a}Affiliation1, Address, City, Country; \\
38 \supit{b}Affiliation2, Address, City, Country
39 }
40
41 %>>>> Further information about the authors, other than their
42 % institution and addresses, should be included as a footnote,
43 % which is facilitated by the \authorinfo{} command.
44
45 \authorinfo{Further author information: (Send correspondence to A.A.A.)\\A.A.A.: E-mail: [email protected], Telephone: 1 505 123 1234\\ B.B.A.: E-mail: [email protected], Telephone: +33 (0)1 98 76 54 32}
46 %%>>>> when using amstex, you need to use @@ instead of @
47
48
49 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
50 %>>>> uncomment following for page numbers
51 % \pagestyle{plain}
52 %>>>> uncomment following to start page numbering at 301
53 %\setcounter{page}{301}
54
55 \begin{document}
56 \maketitle
57
58 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59 \begin{abstract}
60 This document shows the desired format and appearance of a manuscript prepared for the Proceedings of the SPIE. It contains general formatting instructions and hints about how to use LaTeX. The LaTeX source file that produced this document, {\tt article.tex} (Version 3.2), provides a template, which can be used in conjunction with {\tt spie.cls}.
61 \end{abstract}
62
63 %>>>> Include a list of keywords after the abstract
64
65 \keywords{Manuscript format, template, SPIE Proceedings, LaTeX}
66
67 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
68 \section{INTRODUCTION}
69 \label{sec:intro} % \label{} allows reference to this section
70
71 This document shows the desired format and appearance of a manuscript prepared for the Proceedings of the SPIE.\footnote{The basic format was developed in 1995 by Rick Herman (SPIE) and Ken Hanson (Los Alamos National Lab.).} It is prepared using LaTeX2e\cite{Lamport94} with the class file {\tt spie.cls}. The LaTeX source file used to create this document is {\tt article.tex}, which contains important formatting information embedded in it. These files are available on the Internet at {\tt http://home.lanl.gov/kmh/spie/}. The font used throughout is the LaTeX default font, Computer Modern Roman, which is equivalent to the Times Roman font available on many systems. If this font is not available, use a similar serif font. Normal text has a font size of 10 points\footnote{Font sizes are specified in points, abbreviated pt., which is a unit of length. One inch = 72.27 pt.; one cm = 28.4 pt.} for which the actual height of a capital E is about 2.4 mm (7 pt.) and the line-to-line spacing is about 4.2 mm (12 pt.). The font attributes for other parts of the manuscript, summarized in Table~\ref{tab:fonts}, are described in the following sections. Normal text should be justified to both the left and right margins. Appendix~\ref{sec:latex} has information about PostScript fonts.
72
73 To be properly reproduced in the Proceedings, all text and figures must fit inside a rectangle 6.75-in.\ wide by 8.75-in.\ high or 17.15 cm by 22.23 cm. The text width and height are set in {\tt spie.cls} to match this requirement.
74 %% This table is carefully placed in the source file to make
75 %% it appear at bottom of page, but above the footnotes.
76 %% Use of [h] in following command forces table to appear "here".
77 \begin{table}[h]
78 \caption{Fonts sizes to be used for various parts of the manuscript. All fonts are Computer Modern Roman or an equivalent. Table captions should be centered above the table. When the caption is too long to fit on one line, it should be justified to the right and left margins of the body of the text.}
79 \label{tab:fonts}
80 \begin{center}
81 \begin{tabular}{|l|l|} %% this creates two columns
82 %% |l|l| to left justify each column entry
83 %% |c|c| to center each column entry
84 %% use of \rule[]{}{} below opens up each row
85 \hline
86 \rule[-1ex]{0pt}{3.5ex} Article title & 16 pt., bold, centered \\
87 \hline
88 \rule[-1ex]{0pt}{3.5ex} Author names and affiliations & 12 pt., normal, centered \\
89 \hline
90 \rule[-1ex]{0pt}{3.5ex} Section heading & 11 pt., bold, centered (all caps) \\
91 \hline
92 \rule[-1ex]{0pt}{3.5ex} Subsection heading & 11 pt., bold, left justified \\
93 \hline
94 \rule[-1ex]{0pt}{3.5ex} Sub-subsection heading & 10 pt., bold, left justified \\
95 \hline
96 \rule[-1ex]{0pt}{3.5ex} Normal text & 10 pt., normal \\
97 \hline
98 \rule[-1ex]{0pt}{3.5ex} Figure and table captions & \, 9 pt., normal \\
99 \hline
100 \rule[-1ex]{0pt}{3.5ex} Footnote & \, 9 pt., normal \\
101 \hline
102 \end{tabular}
103 \end{center}
104 \end{table}
105 The text should begin 1.00 in.\ or 2.54 cm from the top of the page. The right and left margins should be 0.875~in.\ or 2.22 cm for US letter-size paper (8.5 in.\ by 11 in.) or 1.925 cm for A4 paper (210 mm by 297 mm) to horizontally center the text on the page. See Appendix~\ref{sec:latex} for guidance regarding paper-size specification.
106
107 Authors are encouraged to follow the principles of sound technical writing, as described in Refs.~\citenum{Alred03} and \citenum{Perelman97}, for example. Many aspects of technical writing are addressed in the {\em AIP Style Manual}, published by the American Institute of Physics. It is available on line at {\tt http://www.aip.org/pubservs/style/4thed/toc.html} or {\tt http://public.lanl.gov/kmh/AIP\verb+_+Style\verb+_+4thed.pdf}. A spelling checker is helpful for finding misspelled words.
108
109 An author may use this LaTeX source file as a template by substituting his/her own text in each field. This document is not meant to be a complete guide on how to use LaTeX. For that, refer to books on LaTeX usage, such as the definitive work by Lamport\cite{Lamport94} or the very useful compendium by Mittelbach et al.\cite{Mittelbach04}
110
111 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
112 \section{PARTS OF MANUSCRIPT}
113
114 This section describes the normal structure of a manuscript and how each part should be handled. The appropriate vertical spacing between various parts of this document is achieved in LaTeX through the proper use of defined constructs, such as \verb|\section{}|. In LaTeX, paragraphs are separated by blank lines in the source file.
115
116 At times it may be desired, for formatting reasons, to break a line without starting a new paragraph. This situation may occur, for example, when formatting the article title, author information, or section headings. Line breaks are inserted in LaTeX by entering \verb|\\| or \verb|\linebreak| in the LaTeX source file at the desired location.
117
118 %%%%%Sometimes it is necessary to precede the double slash
119 %%%%%by \verb|\protect| to get the desired result,
120 %%%%%for example, in article titles.
121
122 %%-----------------------------------------------------------
123 \subsection{Title and Author Information}
124 \label{sec:title}
125
126 The article title appears centered at the top of the first page. The title font is 16 point, bold. The rules for capitalizing the title are the same as for sentences; only the first word, proper nouns, and acronyms should be capitalized. Avoid using acronyms in the title. Keep in mind that people outside your area of expertise might read your article. Appendix~\ref{sec:misc} contains more about acronyms.
127
128 The list of authors immediately follows the title after a blank vertical space of about 7 mm. The font is 12 point, normal with each line centered. The authors' affiliations and addresses follow the author list after another blank space of about 4 mm, also in 12-point, normal font and centered. Do not use acronyms in affiliations and addresses. For multiple affiliations, each affiliation should appear on a new line, separated from the following address by a semicolon. Italicized superscripts may be used to identify the correspondence between the authors and their respective affiliations. Further author information, such as e-mail address, complete postal address, and web-site location, may be provided in a footnote by using \verb|\authorinfo{}|, as demonstrated above.
129
130 When the abbreviated title or author information is too long to fit on one line, multiple lines may be used; insert line breaks appropriately to achieve a visually pleasing format. The proper spacing of one and one-half lines between the title, author list, and their affiliations is achieved with the command \verb|\skiplinehalf| defined in {\tt spie.cls}.
131
132 %%-----------------------------------------------------------
133 \subsection{Abstract and Keywords}
134 The title and author information is immediately followed by the Abstract. The Abstract should concisely summarize the key findings of the paper. It should consist of a single paragraph containing no more than 200 words. The Abstract does not have a section number. A list of up to ten keywords should immediately follow the Abstract after a blank line. These keywords will be included in a searchable database at SPIE.
135
136 %%-----------------------------------------------------------
137 \subsection{Body of Paper}
138 The body of the paper consists of numbered sections that present the main findings. These sections should be organized to best present the material. See Sec.~\ref{sec:sections} for formatting instructions.
139
140 %%-----------------------------------------------------------
141 \subsection{Appendices}
142 Auxiliary material that is best left out of the main body of the paper, for example, derivations of equations, proofs of theorems, and details of algorithms, may be included in appendices. Appendices are enumerated with uppercase Latin letters in alphabetic order, and appear just before the Acknowledgments and References.
143
144 %%-----------------------------------------------------------
145 \subsection{Acknowledgments}
146 In the Acknowledgments section, appearing just before the References, the authors may credit others for their guidance or help. Also, funding sources may be stated. The Acknowledgments section does not have a section number.
147
148 %%-----------------------------------------------------------
149 \subsection{References}
150 The References section lists books, articles, and reports that are cited in the paper. It does not have a section number. The references are numbered in the order in which they are cited. Examples of the format to be followed are given at the end of this document.
151
152 The reference list at the end of this document is created using BibTeX, which looks through the file {\tt report.bib} for the entries cited in the LaTeX source file. The format of the reference list is determined by the bibliography style file {\tt spiebib.bst}, as specified in the \verb|\bibliographystyle{spiebib}| command. Alternatively, the references may be directly formatted in the LaTeX source file.
153
154 For books\cite{Lamport94,Alred03,Goossens97} the listing includes the list of authors, book title (in italics), page or chapter numbers, publisher, city, and year of publication. A reference to a journal article\cite{Metropolis53} includes the author list, title of the article (in quotes), journal name (in italics, properly abbreviated), volume number (in bold), inclusive page numbers, and year. By convention\cite{Lamport94}, article titles are capitalized as described in Sec.~\ref{sec:title}. A reference to a proceedings paper or a chapter in an edited book\cite{Gull89a} includes the author list, title of the article (in quotes), conference name (in italics), if appropriate, editors, volume or series title (in italics), volume number (in bold), if applicable, inclusive page numbers, publisher, city, and year. References to an article in the SPIE Proceedings may include the conference name, as shown in Ref.~\citenum{Hanson93c}.
155
156 Citations to the references are made using superscript numerals, as demonstrated in the preceding paragraph. One may also directly refer to a reference within the text, e.g., ``as shown in Ref.~\citenum{Metropolis53} ..."
157
158 %%-----------------------------------------------------------
159 \subsection{Footnotes}
160 Footnotes\footnote{Footnotes are indicated as superscript symbols to avoid confusion with citations.} may be used to provide auxiliary information that doesn't need to appear in the text, e.g., to explain measurement units. They should be used sparingly, however.
161
162 Only nine footnote symbols are available in LaTeX. If you have more than nine footnotes, you will need to restart the sequence using the command \verb|\footnote[1]{Your footnote text goes here.}|. If you don't, LaTeX will provide the error message {\tt Counter too large.}, followed by the offending footnote command.
163
164 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
165 \section{SECTION FORMATTING} \label{sec:sections}
166
167 Section headings are centered and formatted completely in uppercase 11-point bold font. Sections should be numbered sequentially, starting with the first section after the Abstract. The heading starts with the section number, followed by a period. In LaTeX, a new section is created with the \verb|\section{}| command, which automatically numbers the sections.
168
169 Paragraphs that immediately follow a section heading are leading paragraphs and should not be indented, according to standard publishing style\cite{Lamport94}. The same goes for leading paragraphs of subsections and sub-subsections. Subsequent paragraphs are standard paragraphs, with 14-pt.\ (5 mm) indentation. An extra half-line space should be inserted between paragraphs. In LaTeX, this spacing is specified by the parameter \verb|\parskip|, which is set in {\tt spie.cls}. Indentation of the first line of a paragraph may be avoided by starting it with \verb|\noindent|.
170
171 %%-----------------------------------------------------------
172 \subsection{Subsection Attributes}
173
174 The subsection heading is left justified and set in 11-point, bold font. Capitalization rules are the same as those for book titles. The first word of a subsection heading is capitalized. The remaining words are also capitalized, except for minor words with fewer than four letters, such as articles (a, an, and the), short prepositions (of, at, by, for, in, etc.), and short conjunctions (and, or, as, but, etc.). Subsection numbers consist of the section number, followed by a period, and the subsection number within that section.
175
176 %%-----------
177 \subsubsection{Sub-subsection attributes}
178 The sub-subsection heading is left justified and its font is 10 point, bold. Capitalize as for sentences. The first word of a sub-subsection heading is capitalized. The rest of the heading is not capitalized, except for acronyms and proper names.
179
180 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
181 \section{FIGURES AND TABLES}
182
183 Figures are numbered in the order of their first citation. They should appear in numerical order and on or after the same page as their first reference in the text. Alternatively, all figures may be placed at the end of the manuscript, that is, after the Reference section. It is preferable to have figures appear at the top or bottom of the page. Figures, along with their captions, should be separated from the main text by at least 0.2 in.\ or 5 mm.
184
185 Figure captions are centered below the figure or graph. Figure captions start with the figure number in 9-point bold font, followed by a period; the text is in 9-point normal font; for example, ``{\footnotesize{Figure 3.} Original image...}". See Fig.~\ref{fig:example} for an example of a figure caption. When the caption is too long to fit on one line, it should be justified to the right and left margins of the body of the text.
186
187 Tables are handled identically to figures, except that their captions appear above the table.
188 %% Use following command to specify that graphics file is in
189 %% a directory other than this LaTeX source file.
190 %% Note use of / to separate subdirectories, for UNIX and Windows OS.
191 %%\graphicspath{{H:/HANSON/SPIESTY/}}
192 %% tabular environment useful for creating an array of images
193 %-------------
194 \begin{figure}
195 \begin{center}
196 \begin{tabular}{c}
197 \includegraphics[height=7cm]{mcr3b.eps}
198 \end{tabular}
199 \end{center}
200 \caption[example]
201 %>>>> use \label inside caption to get Fig. number with \ref{}
202 { \label{fig:example}
203 Figure captions are used to describe the figure and help the reader understand it's significance. The caption should be centered underneath the figure and set in 9-point font. It is preferable for figures and tables to be placed at the top or bottom of the page. LaTeX tends to adhere to this standard.}
204 \end{figure}
205 %-------------
206
207 For further details concerning the inclusion of grayscale and color images, consult SPIE's {\it Author Guide for Publication and Presentation}.
208
209 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
210 \appendix %>>>> this command starts appendixes
211 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
212 \section{MISCELLANEOUS FORMATTING DETAILS} \label{sec:misc}
213
214 It is often useful to refer back (or forward) to other sections in the article. Such references are made by section number. When a section reference starts a sentence, Section is spelled out; otherwise use its abbreviation, for example, ``In Sec.~2 we showed..." or ``Section~2.1 contained a description...". References to figures, tables, and theorems are handled the same way.
215
216 At the first occurrence of an acronym, spell it out, followed by the acronym in parentheses, e.g., noise power spectrum (NPS).
217
218 %%-----------------------------------------------
219 \subsection{Formatting Equations}
220 Equations may appear in line with the text, if they are simple, short, and not of major importance; e.g., $\beta = b/r$. Important equations appear on their own line. Such equations are centered. For example, ``The expression for the minus-log-posterior is
221 \begin{equation}
222 \label{eq:alpha}
223 \phi = |{\rm\bf y} - {\rm\bf A}{\rm\bf x}|^2 + \alpha \log p({\rm\bf x}) \, ,
224 \end{equation}
225 where $\alpha$ determines the strength of ..." Principal equations are numbered, with the equation number placed within parentheses and right justified.
226
227 Equations are considered to be part of a sentence and should be punctuated accordingly. In the above example, a comma follows the equation because the next line is a subordinate clause. If the equation ends the sentence, a period should follow the equation. The line following an equation should not be indented unless it is meant to start a new paragraph. Indentation after an equation is avoided in LaTeX by not leaving a blank line between the equation and the subsequent text.
228
229 References to equations include the equation number in parentheses, for example, ``Equation~(\ref{eq:alpha}) shows ..." or ``Combining Eqs.~(2) and (3), we obtain..." Using a tilde in the LaTeX source file between two characters avoids unwanted line breaks.
230
231 %%-----------------------------------------------------------
232 \subsection{Formatting Theorems}
233
234 To include theorems in a formal way, the theorem identification should appear in a 10-point, bold font, left justified and followed by a period. The text of the theorem continues on the same line in normal, 10-point font. For example,
235
236 \noindent{\bf Theorem 1.} For any unbiased estimator...
237
238 Formal statements of lemmas and algorithms receive a similar treatment.
239
240 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
241 \section{SOME LATEX GUIDANCE} \label{sec:latex}
242
243 %%-----------------------------------------------------------
244 \subsection{Margins and PostScript Fonts}
245
246 Manuscripts submitted electronically to as PostScript (PS) files must have the correct margins. LaTeX margins are related to the document's paper size. The paper size is set at two separate places in the process of creating a PS file. The first place is in {\tt latex}. The default in {\tt article.tex}, on which {\tt spie.cls} is based, is USA letter paper. To format a document for A4 paper, the first line of the LaTeX source file should be \verb|\documentclass[a4paper]{spie}|.
247
248 The output of the LaTeX utility is a file with the extension DVI (for Device Independent), which encodes the formatted document. The application DVIPS is typically used to convert the DVI file to a PS file. DVIPS has its own default paper size, which can be overridden with the option ``{\tt -t letter}" or ``{\tt -t a4}".
249 If the foregoing steps do not produce the correct top margin, you can move the text lower on the page (by 9 mm) with the command \verb|\addtolength{\voffset}{9mm}|, placed right after the \verb|\documentclass| command, for example.
250
251 Another DVIPS option specifies the incorporation of (scalable) PostScript Type 1 fonts in its output PS file. This feature is important for obtaining a subsequent PDF file that will be clearly displayed on a computer monitor by Adobe Acrobat Reader. The option ``{\tt -P pdf}" makes DVIPS include these fonts in its output PS file.
252
253 %%-----------------------------------------------------------
254 \subsection{Bold Math Symbols}
255
256 The math package from the American Mathematical Society allows one to easily produce bold math symbols, well beyond what is available in LaTeX. It also provides many useful capabilities for creating elaborate mathematical expressions. You need to load the AMS math package near the top of the LaTeX source file, right after the \verb+\documentclass+ command:\\[1ex]
257 \verb+\usepackage[]{amsmath}+ \\[1ex]
258 Then for bold math symbols use \verb+\boldsymbol+ in equations, e.g.,
259 \verb+$\boldsymbol{\pi}$+
260 yields a bold pi. You can make it easier to use by defining a command:\\[1ex]
261 \verb+\newcommand{\bm}[1]{\boldsymbol{#1}}+ \\[1ex]
262 and then using it like so \verb+$\bm{\pi}$+.
263
264 Not all math symbols are available in bold. In a pinch, you can use \verb+\pmb+ ("poor man's bold"), which is defined in \verb+amsmath+. This command approximates a bold character with a superposition of several, slightly displaced unbold characters.
265
266 If you want a Greek symbol in the article title, it should be both larger and bold. The easiest thing is to load the AMS math package as described above.
267 Then, in the title, use something like:\\[1ex]
268 \verb+\title{Estimation of {\LARGE$\boldsymbol\alpha$} by a Monte Carlo technique}+ \\[1ex]
269 Note that the command to create the alpha character is enclosed within braces to form a self-contained environment. The use of \verb+\LARGE+ in this example may not be needed when using nondefault font packages, such as the {\tt times} package, because of how the article title is handled in {\tt spie.cls}.
270
271 %%-----------------------------------------------------------
272 \subsection{Uppercase letters and special symbols in BibTex}
273
274 BibTeX tries to enforce standard publishing rules regarding article titles and authors' names; it sometimes changes uppercase letters to lower case. BibTeX also has trouble with umlauts, generally created in LaTeX with \verb+\"{o}+, because it is looking for the \verb+"+ to end the input line.
275
276 The general rule for overriding LaTeX's and BibTex's reinterpretation of your input text is to put the items you wish to be unchanged in braces. Thus, to obtain an umlaut in an author's name or in an article title, or to force an uppercase letter, do something like the following: \\[1ex]
277 \verb+ @article{Kaczmarz37,+ \\
278 \verb+ author = "S. Kaczmarz",+ \\
279 \verb+ title = "Angen{\"{a}}hrte {A}ufl{\"{o}}sung von {S}ystemen linearer {G}leichungen",+ \\
280 \verb+ journal= "Bull. Acad. Polon. Sci. Lett.",+ \\
281 \verb+ volume = "A35",+ \\
282 \verb+ pages = "355-357",+ \\
283 \verb+ year = "1937" } + \\[1ex]
284 This example shows the use of both umlauts and uppercase letters.
285 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
286 \acknowledgments %>>>> equivalent to \section*{ACKNOWLEDGMENTS}
287
288 This unnumbered section is used to identify those who have aided the authors in understanding or accomplishing the work presented and to acknowledge sources of funding.
289
290 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
291 %%%%% References %%%%%
292
293 \bibliography{report} %>>>> bibliography data in report.bib
294 \bibliographystyle{spiebib} %>>>> makes bibtex use spiebib.bst
295
296 \end{document}