summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ascelike/ascexmpl.tex
blob: dbcdea387ebfdab9d835cee5b5f10cb40082925b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
%
\documentclass[Proceedings]{ascelike}
%
% Aug. 20, 2011
%
% Some useful packages...
%
%\usepackage{graphicx}
%\usepackage{subfigure}
%\usepackage{amsmath}
%\usepackage{amsfonts}
%\usepackage{amssymb}
%\usepackage{amsbsy}
%\usepackage{times}
%
%
% Place hyperlinks within the pdf file (works only with pdflatex, not latex)
% \usepackage[colorlinks=true,citecolor=red,linkcolor=black]{hyperref}
%
%
% NOTE: Don't include the \NameTag{<your name>} if you have selected 
%       the NoPageNumbers option: this leads to an inconsistency.
\NameTag{Kuhn, August 20, 2011}
%
%
\begin{document}
%
% You will need to make the title all-caps
\title{STYLE FILES FOR ASCE-LIKE DOCUMENTS}
%
\author{
Matthew R. Kuhn%
\thanks{
Dept.\ of Civil Engrg.,
Donald P.\ Shiley School of Engrg., Univ.\ of Portland, 
5000 N.\ Willamette Blvd.,
Portland, OR  97203. E-mail: kuhn@up.edu.},
\ Member, ASCE
%
% I have found that the \and command doesn't quite work, so just use "and"
%  such as the following (and don't forget the ending curly brace `}').
%\\
%and
%Younyee Kuhn%
%\thanks{Flourishing wife of same.},%
%\ Not a Member, ASCE
}
%
\maketitle
%
\begin{abstract}
This document was produced with the \LaTeX\ typesetting program
using the document class ``\texttt{ascelike.cls}'' and the
example document ``\texttt{ascexmpl.tex}''.
The reference section on page~\pageref{section:references}
was produced with the \textsc{Bib}\TeX\ style ``\texttt{ascelike.bst}''
and the database ``\texttt{ascelike.bib}''.
The objective of these files is manuscripts that roughly comply with the
guidelines of the American Society of Civil Engineers.
The document class
produces either double-spaced manuscripts for journal submissions or
camera-ready manuscripts
for conference proceedings.
This document serves as a brief guide to \texttt{ascelike.cls},
as well as a test of the output that is produced
by the input file \texttt{ascexmpl.tex}.
The package is freely available under the LaTeX 
Project Public License, version 1.1
\end{abstract}
%
% Some keywords, using a new command: \KeyWords{}
%
\KeyWords{\LaTeX, ASCE, document class.}
%
\section{Introduction}
The document class ``\texttt{ascelike.cls}''
produces manuscripts that roughly comply with the
guidelines of the American Society of Civil Engineers (ASCE).
The \texttt{ascelike.cls} document class, the 
bibliographic style \texttt{ascelike.bst}, and
example files are available on the \texttt{ctan}
web-site \cite{Kuhn:2011a}.
Although it is \emph{not} produced by ASCE, its agents,
or employees, \texttt{ascelike.cls} is now referenced on
the ASCE web-site.
\par
The program \texttt{ascelike.cls} is distributed under the
terms of the LaTeX Project Public License Distributed,
available from the CTAN archives;
either version 1.1 of the License, or any later version.
If you modify
\texttt{ascelike.cls}, you should rename it so that ``altered''
copies are not later proliferated.
\par
The document class ``\texttt{ascelike.cls}'' requires the following
supplementary packages:
\texttt{ifthen.sty}, \texttt{setspace.sty}, and \texttt{endfloat.sty}
\emph{Without these files,} \texttt{ascelike.cls} \emph{won't work}.
These files are typically included in \LaTeX\ distribution, such as the
\textsf{TexLive} and \textsf{MikTex} distributions.
All of these files are also freely available
from the Comprehensive \TeX\ Archive Network (CTAN) archive,
through \verb+http://www.ctan.org+ or
\verb+http://www.tug.org+, although they may need to be unbundled from
a \verb+*.dtx+ form.
\par
In addition to \texttt{ascelike.cls}, 
the file \texttt{ascelike.bst} can be used with
the bibliographic tool \textsc{Bib}\TeX\ to produce ASCE-like 
reference citations and entries (with the weird use of
quotation marks around titles, etc.) \cite{Kuhn:2011a}.
An example bibliographic data base is given in \texttt{ascexmpl.bib}.
\par
In addition to these essential files,
we have found the following packages very useful (and we will use this
opportunity to illustrate a \LaTeX\ itemized list):
%
\begin{itemize}
\item
\texttt{graphicx.sty} and its companion files for incorporating
encapsulated post\-script (figure) files into the document
\item
\texttt{times.sty} for typesetting with Times fonts.
\item
\texttt{subfigure.sty} for arranging and numbering sub-figures
\item
\texttt{amsmath.sty} and its companion files for the AMS extensions
to mathematical formatting (\texttt{amsfonts.sty}, \texttt{amssymb.sty},
and \texttt{amsbsy.sty}).
\end{itemize}
%
All of these packages are also freely 
available from the CTAN archive, 
but they are included in most \LaTeX\ distributions.
%
\section{Input and Options}
You should
prepare your \verb+*.tex+ input file as a regular
\LaTeX\ file using the standard \texttt{article.cls} constructs,
but, of course, substitute \texttt{ascelike} for \texttt{article}
in the opening \verb+\documentclass+ command.
You will likely need to specify a number of options as described below.
In addition, \texttt{ascelike} provides two new commands: \verb+KeyWords+ and
\verb+NameTag+, both of which are described further below.
\par
Document class \texttt{ascelike.cls} provides the options given
below (and we also use this opportunity to illustrate an enumerated list).
The \verb+Proceedings|+\-\verb+Journal+ options are the most important;
the other options are largely incidental.
%
\begin{enumerate}
\item
Options
\verb+Journal|+\verb+Proceedings+ specify the overall format
of the output man\-u\-script.  
\par
\texttt{Journal} produces double-spaced manuscripts for ASCE journals.
It places tables and figures at the end of the manuscript, 
and produces lists of tables and figures.  
It numbers the appendices with Roman numerals and produces 
proper headings for
sections, subsections, subsubsections, appendices, and abstract.
It produces the proper page margins and numbers the pages.
\par
\texttt{Proceedings} produces camera-ready single-spaced manuscripts
for most ASCE conference proceedings.  
It produces the proper page margins as
given on the old shiny, 
camera-ready paper (with the light blue lines) 
supplied by ASCE. 
It places figures and tables
within the text.  It produces proper headings for
sections, subsections, subsubsections, appendices, and the abstract.
Pages are numbered, and the bottom left corner can be ``tagged'' with
the author's name (this can be done by inserting the command
\verb+\NameTag{<+\emph{your name}\verb+>}+ within the preamble of your
document.
\item
Options \verb+BackFigs|InsideFigs+ can be used to override 
the default placement of tables
and figures in the \texttt{Journal} and \texttt{Proceedings} formats.
\item
Options \verb+SingleSpace|DoubleSpace+ can be used to override 
the default text spacing in the 
\texttt{Journal} and \texttt{Proceedings} formats.
\item
Options \verb+10pt|11pt|12pt+ can be used to override the 
default text size (12pt).
\item
The option \texttt{NoLists} suppresses inclusion of lists of tables
and figures that would normally be included in the \texttt{Journal}
format.
\item
The option \texttt{NoPageNumbers} suppresses the printing of page numbers.
\item
The option \texttt{SectionNumbers} produces an automatic numbering of sections.
Without the \texttt{SectionNumbers} option, sections will \emph{not} be
numbered, as this seems to be the usual formatting in ASCE journals 
(note that the appendices will, however, be automatically
``numbered'' with Roman numerals).  
With the \texttt{SectionNumbers} option, sections and
subsections are numbered with Arabic numerals (e.g. 2, 2.1, etc.), but
subsubsection headings will not be numbered.  To change this default
depth of numbering when
the option \texttt{SectionNumbers} is invoked, insert the following commands
in the preamble of your document:\\[2mm]
\begin{tabular}{ll}
\verb!  \setcounter{secnumdepth}{1}! & Number sections only\\
\verb!  \setcounter{secnumdepth}{3}! & Number sections, subsections, \\
                                   & and subsubsections
\end{tabular}\\[2mm]
Even with the \texttt{SectionNumbers} option, you can use the ``starred''
form, \verb!\section*{ }!, to create a section heading without numbers.
This might be desirable for an Acknowledgements section at the end of
a paper.  Note, however, that the starred form will not suppress
the numbering of subsections or subsubsections.
\end{enumerate}
%
\section{Sections, subsections, equations, etc.}
This section is included to explain and to 
test the formating of sections, subsections,
subsubsections, equations, tables, and figures.
Section heads are automatically made uppercase, which is great unless
your section heading contains mathematics, \verb+$<math stuff>$+.
If a heading does contain mathematics, you will need to modify
\texttt{ascelike.cls}, in particular the line containing the
\verb+\uppercase+ command.  
To force mathematics symbols to become 
bold within a section heading, try using
the \verb!\boldmath! command before the in-line math:
for example,
\verb!\boldmath$a_{i}=\sqrt{\beta}$!.
%
\subsection{An Example Subsection with math, \boldmath$a_{i}=\sqrt{\beta}$}
No automatic capitalization occurs with subsection headings; 
you will need to capitalize the first letter of each word,
as in ``An Example Subsection.''
%
\subsubsection{An example subsubsection}
No automatic capitalization occurs with subsubsections; 
you will need to capitalize only the first letter of subsubsection 
headings.
And now we include an example of a displayed equation (Eq.~\ref{eq:Einstein})
%
\begin{equation} \label{eq:Einstein}
E = m c^{2} \;,
\end{equation}
%
a figure (Fig.~\ref{fig:box_fig}), 
%
\begin{figure}
\centering
\framebox[3.00in]{\rule[0in]{0in}{1.00in}}
\caption{An example figure (just a box).  
This particular figure has a caption with more information 
than the figure itself, a very poor practice indeed.}
\label{fig:box_fig}
\end{figure}
%
and a table (Table~\ref{table:assembly}).
%
\begin{table}
\caption{An example table}
\label{table:assembly}
\centering
\small
\renewcommand{\arraystretch}{1.25}
\begin{tabular}{l l}
\hline\hline
\multicolumn{1}{c}{Assembly Attribute} &
\multicolumn{1}{c}{Values} \\
\multicolumn{1}{c}{(1)} &
\multicolumn{1}{c}{(2)} \\
\hline
Number of particles & 4008 \\
Particle sizes & Multiple  \\
Particle size range & $0.45D_{50}^{\:\ast}$ to $1.40D_{50}$ \\
Initial void ratio, $e_{\mathrm{init}}$ & $0.179$ \\
Assembly size & $54D_{50} \times 54D_{50} \times 54D_{50}$ \\
\hline
\multicolumn{2}{l}{$\ast$ $D_{50}$ represents the median particle diameter} \\
\hline\hline
\end{tabular}
\normalsize
\end{table}
%
\par
A new command \verb+\KeyWords{<your key words>}+ can be used to produce
a labeled list of key words.  
It can be placed anywhere in the document and produces an unindented
paragraph of keywords at that location.
%
\section{Citations and bibliographic entries}
When used together, \texttt{ascelike.cls} and \texttt{ascelike.bst}
produce APA~/ \emph{Chica\-go Manual of Style} citations in
name-date format.
The code in \texttt{ascelike.bst}
is a modification of the \texttt{chicago.sty} and
\texttt{chicago.bst} packages.
The following citation options are available:
\begin{itemize}
\item
\verb+\cite{key}+ produces citations with full author 
list and year \cite{Ireland:1954a}.
\item
\verb+\citeNP{key}+ produces citations with full author list and year, 
but without enclosing parentheses: e.g. \citeNP{Ireland:1954a}.
\item
\verb+\citeA{key}+ produces citations with only the full 
author list: e.g. \citeA{Ireland:1954a}
\item
\verb+\citeN{key}+ produces citations with the full author list and year, but
which can be used as nouns in a sentence; no parentheses appear around
the author names, but only around the year: e.g. \citeN{Ireland:1954a}
states that \ldots
\item
\verb+\citeyear{key}+ produces the year information only, within parentheses,
as in \citeyear{Ireland:1954a}.
\item
\verb+\citeyearNP{key}+ produces the year information only,
as in \citeyearNP{Ireland:1954a}.
\end{itemize}
%
\par
The bibliographic data base \texttt{ascexmpl.bib}
gives examples of bibliographic entries for different document types.
These entries are from the canonical set in the
ASCE web document ``Instructions For Preparation Of Electronic Manuscripts''
and from the ASCE web-site.
The References section of this document has been automatically created with
the \texttt{ascelike.bst} style for the following entries:
\begin{itemize}
\item a book \cite{Goossens:1994a},
\item an anonymous book \cite{Moody:1988a}, 
\item an anonymous report using \texttt{@MANUAL} \cite{FHWA:1991a}, 
%\item an anonymous newspaper story ("Educators" 1993), 
\item a journal article \cite{Stahl:2004a,Pennoni:1992a}, 
\item a journal article in press \cite{Dasgupta:2008a},
\item an article in an edited book using \texttt{@INCOLLECTION} \cite{Zadeh:1981a}, 
\item a building code using \texttt{@MANUAL} \cite{ICBO:1988a}, 
\item a discussion of an \texttt{@ARTICLE} \cite{Vesilind:1992a}, 
\item a masters thesis using \texttt{@MASTERSTHESIS} \cite{Sotiropulos:1991a},
\item a doctoral thesis using \texttt{@PHDTHESIS} \cite{Chang:1987a}, 
\item a paper in a foreign journal \cite{Ireland:1954a}, 
\item a paper in a proceedings using \texttt{@INPROCEEDINGS} 
      \cite{Eshenaur:1991a,Garrett:2003a}, 
\item a standard using \texttt{@INCOLLECTION} \cite{ASTM:1991a}, 
\item a translated book \cite{Melan:1913a}, 
\item a two-part paper \cite{Frater:1992a,Frater:1992b}, 
\item a university report using \texttt{@TECHREPORT} \cite{Duan:1990a}, 
\item an untitled item in the Federal Register using 
      \texttt{@MANUAL} \cite{FR:1968a}, 
\item works in a foreign language \cite{Duvant:1972a,Reiffenstuhl:1982a},
\item software using \texttt{@MANUAL} \cite{Lotus:1985a},
\item two works by the same author in the same year
      \cite{Gaspar:2001b,Gaspar:2001a}, and
\item two works by three authors in the same year that only share
      the first two authors \cite{Huang2009a,Huang2009b}.
\end{itemize}
%
\par
ASCE has added two types of bibliographic entries:
web-pages and CD-ROMs.  A web-page can be formated using the
\texttt{@MISC} entry category, as with the item \cite{Burka:1993a} produced
with the following \texttt{*.bib} entry:
\begin{verbatim}
    @MISC{Burka:1993a,
      author = {Burka, L. P.},
      title = {A hypertext history of multi-user dimensions},
      journal = {MUD history},
      year = {1993},
      month = {Dec. 5, 1994},
      url = {http://www.ccs.neu.edu}
    }
\end{verbatim}
Notice the use of the ``\texttt{month}'' field to give the date that material
was downloaded and the use of a new ``\texttt{url}'' field.
The ``\texttt{url}'' and \texttt{month}'' 
fields can also be used with other entry types
(i.e., \texttt{@BOOK}, \texttt{@INPROCEEDINGS}, \texttt{@MANUAL},
\texttt{@MASTERSTHESIS}, \texttt{@PHDTHESIS}, and \texttt{@TECHREPORT}):
for example, in the entry type \texttt{@PHDTHESIS} for \cite{Wichtmann:2005a}.
%
\par
A CD-ROM can be referenced when using the \texttt{@BOOK}, \texttt{@INBOOK},
\texttt{@INCOLLECTION}, or \texttt{@INPROCEEDINGS} categories, 
as in the entry \cite{Liggett:1998a}.
The field ``\texttt{howpublished}'' is used to designate the medium
in the \texttt{.bib} file:
\begin{verbatim}
    howpublished = {CD-ROM},
\end{verbatim}
%
\section{Miscellany}
Many ASCE conference proceedings are now published on CD ROM media.
I have noticed that instructions on paper formats issued by
conference organizers often differ from the
standard ASCE instructions.  
Fortunately most of the differences can be easily accommodated, such as
changes in the margins and placement of the authors' addresses.
As for margins, these can, of course, be altered by using
\verb+\setlength{<length>}+ commands within the preamble to a document without
making any changes to \texttt{ascelike.cls}.  
(See the \LaTeX\ book
\cite{Lamport:1994a}, its companion \cite{Goossens:1994a}, or
online web documentation.)
\par
Authors' addresses can be placed below the title (instead of
in a footnote) by \emph{not} using the \verb+\thanks+ command.
%
%
% Now we start the appendices, with the new section name, "Appendix", and a 
%  new counter, "I", "II", etc.
%
\appendix\label{section:references}
%
% Here's the first appendix, the list of references:
%
\bibliography{ascexmpl}
%
% And now for some pretty impressive notation.  In this example, I have used
%   the tabular environment to line up the columns in ASCE style.
%   Note that this and all appendices (except the references) start with 
%   the \section command
%
\section{Notation}
\emph{The following symbols are used in this paper:}%\par\vspace{0.10in}
\nopagebreak
\par
\begin{tabular}{r  @{\hspace{1em}=\hspace{1em}}  l}
$D$                    & pile diameter (m); \\
$R$                    & distance (m);      and\\
$C_{\mathrm{Oh\;no!}}$ & fudge factor.
\end{tabular}
%
\end{document}