generated from byu-transpolab/template_bookdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ascelike-new.cls
618 lines (615 loc) · 21.8 KB
/
ascelike-new.cls
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
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
%% File: ascelike-new.cls
%%
%% Version 1.0, 2016/03/18
%%
%% An official LaTeX class file for preparing review manuscripts and
%% camera-ready manuscripts for ASCE journals and conference proceedings
%%
%% Based on ascelike.cls (version 2.3) by Matthew R Kuhn
%%
%% =============================================
%%
%% This program can be redistributed and/or modified 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.
%% Most importantly, you may modify this file, but only if you rename it.
%%
%% This is a contributed file to the LaTeX2e system.
%%
%% This program consists of the files ascelike-new.cls and ascelike-new.bst
%%
%% -----------------------------------
%%
%% This document class produces manuscripts that comply with
%% the guidelines of the American Society of Civil Engineers (ASCE).
%% It has been produced by Overleaf (https://www.overleaf.com) in
%% conjunction with the ASCE, and is based on the unofficial
%% ascelike.cls developed by Matthew R Kuhn.
%%
%% -----------------------------------
%%
%% Please note the following usage:
%% There are several options. The two main options are
%% Journal or Proceedings:
%% - "Journal" produces double-spaced manuscripts for ASCE journals.
%% It places tables and figures at the end of the manuscript,
%% produces a list of table and list of figures. Numbers the
%% appendices with Roman numerals. Produces proper headings for
%% sections, subsections, subsubsections, appendices, and abstract.
%% Produces the proper page margins, and numbers the pages,
%% - "Proceedings" produces older-style camera-ready single-
%% spaced manuscripts for ASCE conference proceedings. It places
%% figures and tables within the text. It produces proper headings
% for sections, subsections, subsubsections, appendices, and
% abstract. Produces the proper page margins, and numbers the pages.
%% - "NewProceedings" produces camera-ready single-spaced manuscripts
%% for ASCE conference proceedings, according to website
%% instructions of Feb 14, 2013. It places figures and tables
%% within the text. It produces proper headings for
%% sections, subsections, subsubsections, appendices, and abstract.
%% Produces the proper page margins, and numbers the pages.
%% This style of proceedings differs from the older style
%% ("Proceedings") in the fonts for headings
%%
%% The remaining option override the defaults that are set by the
%% above formats:
%% - BackFigs or InsideFigs:
%% These can be used to override the default placement of tables
%% and figures for the Journal and Proceeding formats.
%% - SingleSpace or DoubleSpace:
%% These can be used to override the default text spacing for
%% the Journal and Proceeding formats.
%% - 10pt, 11pt, or 12pt:
%% These can be used to override the default text size (12pt).
%% - NoLists suppresses the inclusion of lists of figures and tables
%% - NoPageNumbers suppressesthe printing of page numbers
%% - SectionNumbers produces the numbering of sections and subsections,
% unlike the ASCE convention.
%%
%% A few standard Latex options have been removed, as they don't seem to apply
%% in the ASCE environment: landscape, titlepage, openbib, leqno, fleqn
%%
%% As for preparing the document file: except for the new options, you
%% should just use standard sequencing of LaTeX commands.
%%
%% The only new command that I've added is the \NameTag command which
%% prints your name in the bottom right corner of every page (as with
%% the ASCE shiny, camera-ready paper). Insert it in the preamble of
%% your document file: \NameTag{<your name>}.
%%
\typeout{}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesClass{ascelike-new}
[2016/03/18 Version 1.0 ASCE-like-new manuscripts (Am. Soc. Civ. Engr.)]
\typeout{}
\RequirePackage{xstring}
\RequirePackage{ifthen}
%
\newboolean{Proceedings}
\newboolean{NewProceedings}
\newboolean{Journal}
\newboolean{BackFigs}
\newboolean{InsideFigs}
\newboolean{SingleSpace}
\newboolean{DoubleSpace}
\newboolean{NoPageNumbers}
\newboolean{NoLists}
\newboolean{SectionNumbers}
\newboolean{NoLineNumbers}
\newboolean{LineNumbers}
\newcommand{\ptsize}{}
%
\DeclareOption{Proceedings}%
{\setboolean{Proceedings}{true}%
\setboolean{Journal}{false}%
\setboolean{NewProceedings}{false}}% 02-14-13
\DeclareOption{Journal}%
{\setboolean{Journal}{true}%
\setboolean{Proceedings}{false}%
\setboolean{NewProceedings}{false}}% 02-14-13
\DeclareOption{NewProceedings}% 02-14-13
{\setboolean{NewProceedings}{true}% 02-14-13
\setboolean{Journal}{false}% 02-14-13
\setboolean{Proceedings}{false}}% 02-14-13
%
\DeclareOption{BackFigs}%
{\setboolean{BackFigs}{true}\setboolean{InsideFigs}{false}}
\DeclareOption{InsideFigs}%
{\setboolean{InsideFigs}{true}\setboolean{BackFigs}{false}}
%
\DeclareOption{DoubleSpace}%
{\setboolean{DoubleSpace}{true}\setboolean{SingleSpace}{false}}
\DeclareOption{SingleSpace}%
{\setboolean{SingleSpace}{true}\setboolean{DoubleSpace}{false}}
%
\DeclareOption{NoLineNumbers}%
{\setboolean{NoLineNumbers}{true}\setboolean{LineNumbers}{false}}
\DeclareOption{LineNumbers}%
{\setboolean{LineNumbers}{true}\setboolean{NoLineNumbers}{false}}
%
% Declare text size options so that 12pt can be made the default option
\DeclareOption{10pt}{\renewcommand{\ptsize}{10pt}}
\DeclareOption{11pt}{\renewcommand{\ptsize}{11pt}}
\DeclareOption{12pt}{\renewcommand{\ptsize}{12pt}}
%
\DeclareOption{NoPageNumbers}{\setboolean{NoPageNumbers}{true}}
%
\DeclareOption{landscape}{\OptionNotUsed}
\DeclareOption{titlepage}{\OptionNotUsed}
\DeclareOption{openbib}{\OptionNotUsed}
\DeclareOption{leqno}{\OptionNotUsed}
\DeclareOption{fleqn}{\OptionNotUsed}
%
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
%
\DeclareOption{NoLists}{\setboolean{NoLists}{true}}% 11-21-02
\DeclareOption{SectionNumbers}{\setboolean{SectionNumbers}{true}}% 11-21-02
%
% Make 12pt and Journal the default options
\ExecuteOptions{12pt,Journal}
\ProcessOptions\relax
%
\LoadClass[oneside,onecolumn,final,\ptsize]{article}[1994/12/09]
% LLT: Force the PDF to be really letterpaper or a4paper.
\RequirePackage[pass]{geometry}
%
% These *.sty packages must be installed along this *.cls file. Note that
% the package endfloat.sty is also required further below in order to
% place figures at the end of the paper.
%
%
% Use these defaults
% For Journal manuscripts:
% 1) place figures at the end of the manuscript
% (can be changed with the InsideFigs option)
% 2) double spacing of text
% (can be changed with the SingleSpace option)
% 3) line numbers
% (can be changed with the NoLineNumbers option)
%
% For Proceedings manuscripts:
% 1) place figures within the text,
% (can be changed with the BackFigs option)
% 2) single spacing of text
% (can be changed with the DoubleSpace option)
% 3) no line numbers
% (can be changed with the LineNumbers option)
%
\ifthenelse{\boolean{Journal}}
{\ifthenelse{\boolean{InsideFigs}}{}{\setboolean{BackFigs}{true}}}
{\ifthenelse{\boolean{BackFigs}}{}{\setboolean{InsideFigs}{true}}}
%
\ifthenelse{\boolean{Journal}}
{\ifthenelse{\boolean{SingleSpace}}{}{\setboolean{DoubleSpace}{true}}}
{\ifthenelse{\boolean{DoubleSpace}}{}{\setboolean{SingleSpace}{true}}}
%
\ifthenelse{\boolean{Journal}}
{\ifthenelse{\boolean{NoLineNumbers}}{}{\setboolean{LineNumbers}{true}}}
{\ifthenelse{\boolean{LineNumbers}}{}{\setboolean{NoLineNumbers}{true}}}
%
%
% Various messages displayed on the screen:
\typeout{}
\ifthenelse{\boolean{Journal}}
{\typeout{(1) A "Journal" style manuscript will be produced}}
{\ifthenelse{\boolean{Proceedings}}% 02-14-13
{\typeout{(1) A "Proceedings" old-style manuscript will be produced}}%02-14-13
{\typeout{(1) A "NewProceedings" new-style manuscript will be produced}}}
%
\ifthenelse{\boolean{BackFigs}}
{\typeout{%
(2) Figures and Tables will be placed together at the end of the manuscript
(change with the 'InsideFigs' option)}}
{\typeout{%
(2) Figures and Tables will be placed within the text of the manuscript
(change with the 'BackFigs' option)}}
%
\ifthenelse{\boolean{DoubleSpace}}
{\typeout{%
(3) Text will be double spaced (change with the 'SingleSpace' option)}}
{\typeout{%
(3) Text will be single spaced (change with the 'DoubleSpace' option)}}
%
\typeout{(4) Text will be \ptsize
\space(change with the '10pt', '11pt', & '12pt' options)}
%
\ifthenelse{\boolean{LineNumbers}}% 12-16-11
{\typeout{%
(5) Line numbers will be placed alonside the text (change with the
'NoLineNumbers' option)}}
{\typeout{%
(5) Line numbers will not be placed alonside the text (change with the
'LineNumbers' option)}}
\typeout{}
%
% Delay the possible loading of these packages until the beginning of 7-18-00
% the document. This should avoid conflicts with user-load versions 7-18-00
% of the same packages. 7-18-00
\AtBeginDocument{% 7-18-00
\ifthenelse{\boolean{BackFigs}}
{\ifthenelse{\boolean{NoLists}}% 11-21-02
{\RequirePackage[nolists,noheads,nomarkers,tablesfirst]{endfloat}}%11-21-02
{\RequirePackage[lists,noheads,nomarkers,tablesfirst]{endfloat}}
}
{}
%
\ifthenelse{\boolean{DoubleSpace}}
{\RequirePackage{setspace}\doublespacing}{}
% 7-18-00
\ifthenelse{\boolean{LineNumbers}}
{\RequirePackage{lineno}\linenumbers%
\setlength{\linenumbersep}{0.3in}%
\linenumberdisplaymath}{}
}%
%
% Page layout for Proceedings manuscripts:
\ifthenelse{\boolean{Proceedings}}
{\setlength{\topmargin} {0.25in}
\setlength{\headheight} {0.00in}
\setlength{\headsep} {0.00in}
\setlength{\textheight} {8.83in}
\setlength{\footskip} {0.40in}
\setlength{\oddsidemargin} {0.45in}
\setlength{\textwidth} {5.71in}
\setlength{\marginparsep} {0.00in}
\setlength{\marginparwidth}{0.00in}
\setlength{\marginparpush} {0.00in}}
%
{\ifthenelse{\boolean{Journal}}
% Page layout for Journal manuscripts:
{\setlength{\topmargin} {0.00in}
\setlength{\headheight} {0.00in}
\setlength{\headsep} {0.00in}
\setlength{\textheight} {9.00in}
\setlength{\footskip} {0.50in}
\setlength{\oddsidemargin} {0.00in}
\setlength{\textwidth} {6.50in}
\setlength{\marginparsep} {0.00in}
\setlength{\marginparwidth}{0.00in}
\setlength{\marginparpush} {0.00in}}
%
% Page layout for NewProceedings manuscripts:
{\setlength{\topmargin} {0.00in}
\setlength{\headheight} {0.00in}
\setlength{\headsep} {0.00in}
\setlength{\textheight} {9.00in}
\setlength{\footskip} {0.40in}
\setlength{\oddsidemargin} {0.38in}
\setlength{\textwidth} {5.75in}
\setlength{\marginparsep} {0.00in}
\setlength{\marginparwidth}{0.00in}
\setlength{\marginparpush} {0.00in}}}
%
%
% Author-year citations in the ASCE style. The following code was
% adopted from the chicago.sty package. I removed the 'long citation
% style' to make all citations in the short style used by ASCE (i.e.,
% using "et. al" for multiple authors).
%
% Here's an adaptation of chicago.sty notes for the various citation
% options that I've included:
%
% \cite{key}
% which produces citations with full author list and year.
% eg. (Brown 1978; Jarke et al. 1985)
% \citeNP{key}
% which produces citations with full author list and year, but without
% enclosing parentheses:
% eg. Brown 1978; Jarke et. al 1985
% \citeA{key}
% which produces citations with only the full author list.
% eg. (Brown; Jarke et. al)
% \citeN{key}
% which produces citations with the full author list and year, but
% can be used as nouns in a sentence; no parentheses appear around
% the author names, but only around the year.
% eg. Shneiderman (1978) states that......
% \citeN should only be used for a single citation.
% \citeyear{key}
% which produces the year information only, within parentheses.
% \citeyearNP{key}
% which produces the year information only.
%
% `NP' means `no parentheses'.
%
%
%
% An ASCE-like title on the first page
\renewcommand{\maketitle}{
\begingroup
\renewcommand{\thefootnote}{\arabic{footnote}}%
\ifthenelse{\boolean{@twocolumn}}
{\ifthenelse{\equal{\col@number}{\@ne}}
{\@maketitle}
{\twocolumn[\@maketitle]}}%
{\newpage
\global\@topnum\z@ % Prevents figures from going at top of page.
\@maketitle}
\@thanks
\endgroup
\setcounter{footnote}{0}%
\let\thanks\relax
\let\maketitle\relax\let\@maketitle\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
%
\renewcommand{\@maketitle}{%
\newpage
\null
% \begin{center}%
\ifthenelse{\boolean{Journal}}
{\vspace{0.00in}}
{\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\vspace{1.40in}}% 02-14-13
{\vspace{1.40in}}}
\centering
{\large\bfseries\@title\par}%
\vspace{1.0em}%
{\normalsize\normalfont
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par}%
% \end{center}%
\par
\vspace{0.5em}}%
%
%% LLT: If placed before \maketitle redefinitions, botches
%% up the title quite badly!
\RequirePackage{authblk}
%
%
% An ASCE-like abstract
\renewcommand{\abstractname}{ABSTRACT}
\renewenvironment{abstract}
{\ifthenelse{\boolean{Proceedings}}
{\section*{\small\abstractname}\small}%
{\section*{\abstractname}}%
}
{\normalsize}
%
%
% ASCE-like section, subsection, and subsubsection headings
\ifthenelse{\boolean{SectionNumbers}}% 12-29-02
{\setcounter{secnumdepth}{2}}% 12-29-02
{\setcounter{secnumdepth}{0}}% 12-29-02
\renewcommand{\section}{\secdef\Section\sSection}
\newcommand{\SectionNumber}{}
\setcounter{section}{-1}
\newcommand{\Section}[2][?]{%
\refstepcounter{section}%
\ifthenelse{\boolean{SectionNumbers}} % 12-29-02
{\renewcommand{\SectionNumber}{\thesection\hspace{1em}}}
{}
\par{\flushleft\normalsize\bfseries%
\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\rmfamily}% 02-14-13
{\sffamily}%
\uppercase%
{\SectionNumber#2}\par}%
\nopagebreak}
\newcommand{\sSection}[1]{%
\refstepcounter{section}%
\par{\flushleft\bfseries%
\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\rmfamily}% 02-14-13
{\sffamily}%
\uppercase{#1}\par}\nopagebreak}
%
\renewcommand{\subsection}{\@startsection{subsection}{2}{0in}%
{1.00ex\@plus 1ex \@minus .2ex}%
{0.2ex \@plus .2ex}%
{\normalfont\normalsize\bfseries}}
%
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0in}%
{1.00ex\@plus 1ex \@minus .2ex}%
{0.2ex \@plus .2ex}%
{\normalfont\normalsize\itshape}}
%
\newcommand{\RefSectionType}{\section*}
\ifthenelse{\boolean{Journal}}{\renewcommand{\RefSectionType}{\section*}}{}%
%
%
% ASCE-like appendix headings. In order to get appendix heading such as
% 'Appendix II: Notation' you must insert the line '\appendix' in your
% document *.tex file at the start of the appendices.
%
\renewcommand{\appendixname}{APPENDIX}
\renewcommand{\appendix}{%
\renewcommand{\section}{%
\ifthenelse{\boolean{Journal}}
{\newpage}{}%
\secdef\Appendix\sAppendix}%
\setcounter{section}{0}%
\renewcommand{\thesection}{\Roman{section}}%
}
\newcommand{\Appendix}[2][]{%
\refstepcounter{section}%
{%
\flushleft\normalsize\bfseries
\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\rmfamily}% 02-14-13
{\sffamily}%
\appendixname\ %
\thesection. \uppercase{#1}\par}\nopagebreak}%
\newcommand{\sAppendix}[1]{%
{\flushleft\normalsize\bfseries%
\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\rmfamily}% 02-14-13
{\sffamily}%
\uppercase{#1}\par}\nopagebreak}%
%
%
% An ASCE-like "enumerate" environment for numbered lists
\newcounter{enumnoo}
\renewenvironment{enumerate}
{\begin{list}
{\arabic{enumnoo}.}%
{\usecounter{enumnoo}%
\setlength{\labelwidth}{2em}%
\setlength{\labelsep}{0.7em}%
\setlength{\itemindent}{0em}%
\setlength{\listparindent}{1.5em}% 12-29-02
\setlength{\leftmargin}{3em}%
\setlength{\rightmargin}{0em}%
\setlength{\parsep}{0ex}%
\setlength{\topsep}{2ex}%
\setlength{\itemsep}{0ex}%
}%
}
{\end{list}}%
%
%
% An ASCE-like "itemize" environment for 'bulleted' items
\renewenvironment{itemize}
{\begin{list}
{\labelitemi}%
{\setlength{\labelwidth}{1em}%
\setlength{\labelsep}{0.7em}%
\setlength{\itemindent}{0em}%
\setlength{\listparindent}{3em}%
\setlength{\leftmargin}{3em}%
\setlength{\rightmargin}{0em}%
\setlength{\parsep}{0ex}%
\setlength{\topsep}{2ex}%
\setlength{\itemsep}{0ex}%
}%
}
{\end{list}}%
%
%
% ASCE-like figure labels
\renewcommand{\figurename}%
{\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{Figure}% 02-14-13
{FIG.}}
\renewcommand{\tablename}%
{\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{Table}% 02-14-13
{TABLE}}
\newsavebox{\TempBoxb}
\newlength{\TempBoxl}
\setlength{\belowcaptionskip}{1.5ex}
\newlength{\Abovecaptionrule}
\ifthenelse{\boolean{Journal}\and\boolean{BackFigs}}%
{\setlength{\Abovecaptionrule}{0.75in}}
{\setlength{\Abovecaptionrule}{0.05in}}
\renewcommand{\@makecaption}[2]{%
\vspace{\Abovecaptionrule}
\savebox{\TempBoxb}{%
\rule{0em}{3ex}%
\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\rmfamily}% 02-14-13
{\sffamily}%
\bfseries\normalsize#1.%
\makebox[1ex]{}%
\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\rmfamily}% 02-14-13
{\sffamily}%
\bfseries\normalsize#2}%
\settowidth{\TempBoxl}{\usebox{\TempBoxb}}
\ifthenelse{\lengthtest{\TempBoxl > \textwidth}}
{\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\rmfamily}% 02-14-13
{\sffamily}%
\bfseries\normalsize#1.\makebox[1ex]{}%
\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\rmfamily}% 02-14-13
{\sffamily}%
\bfseries\normalsize#2\par}%
{\centering \usebox{\TempBoxb}}
\vskip\belowcaptionskip}%
%
%
% Float parameters suggested by G. Granger in TUGboat 15(2)
\setcounter{topnumber}{2}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4}
\setcounter{dbltopnumber}{2}
\renewcommand{\topfraction}{0.9}
\renewcommand{\bottomfraction}{0.5}
\renewcommand{\textfraction}{0.1}
\renewcommand{\floatpagefraction}{0.8}
\renewcommand{\dbltopfraction}{0.9}
\renewcommand{\dblfloatpagefraction}{0.8}
%
%
% An ASCE-like layout of the bibliographic items
\renewcommand{\refname}{REFERENCES}
\def\@biblabel#1{}
\bibindent=1.0em
\renewenvironment{thebibliography}[1]
{\par%
\RefSectionType{\refname%
\@mkboth{\refname}{\refname}}%
\list{[\arabic{enumiv}]}%
{%\settowidth\labelwidth{\@biblabel{#1}}%
\setlength{\labelwidth}{0em}
\leftmargin\labelwidth
\setlength{\labelsep}{0.in}
\advance\leftmargin\labelsep
\advance\leftmargin\bibindent
\itemindent -\bibindent
\listparindent \itemindent
\setlength{\itemsep}{0ex}%
\setlength{\topsep}{0ex}%
\parsep \z@
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand{\theenumiv}{\arabic{enumiv}}}%
\sloppy\clubpenalty4000\widowpenalty4000%
\sfcode`\.=\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\renewcommand{\newblock}{}
%
% A new commond for "tagging" the author's name on the bottom right
% corner of the page (as per the ASCE shiny, camera-ready blank paper)
\newcommand{\NameTag}[1]
{\ifthenelse{\boolean{NoPageNumbers}}% 02-14-13
% {\@latex@warning{Oops! Can not use NameTag with NoPageNumbers}}% 02-14-13
{}%
{\newlength{\LeftFootSpace}
\settowidth{\LeftFootSpace}{#1}
\renewcommand{\@oddfoot}{\hspace{\LeftFootSpace}\hfill\thepage\hfill#1}}
}
\newcommand{\KeyWordName}{Keywords}
\newcommand{\KeyWords}[1]{%
\par\noindent\rule{0em}{3ex}%
\ifthenelse{\boolean{NewProceedings}}%
{\rmfamily}%
{\sffamily}%
\bfseries\KeyWordName: %
\normalfont\processKeywords{#1}%
}
\newcommand{\processKeywords}[1]{%
\StrSubstitute{#1}{,}{; }[\tempKeywords]%
\tempKeywords
}
%
% ASCE asks for the lists of tables and figures to be double-spaces
\ifthenelse{\boolean{BackFigs}}
{\renewcommand\listoftables{%
\section*{\listtablename
\@mkboth{%
\MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
\ifthenelse{\boolean{DoubleSpace}}% 02-14-13
{\doublespacing\@starttoc{lot}\singlespacing}% 02-14-13
{\@starttoc{lot}}}
\renewcommand\listoffigures{%
\section*{\listfigurename
\@mkboth{\MakeUppercase\listfigurename}%
{\MakeUppercase\listfigurename}}%
\ifthenelse{\boolean{DoubleSpace}}% 02-14-13
{\doublespacing\@starttoc{lof}\singlespacing}% 02-14-13
{\@starttoc{lof}}}
}{}
%
\AtEndOfClass
{\bibliographystyle{ascelike-new}
\ifthenelse{\boolean{NoPageNumbers}}
{\pagestyle{empty}}
{\pagestyle{plain}}
}
%
\RequirePackage{silence}
\WarningFilter{caption}{Unsupported document class}