summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ametsoc/ametsoc.sty
blob: 1200fd5c1e4e2fc92ea635db6574caf189b33347 (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
\ProvidesPackage{ametsoc}
% AMS Latex Style File Version 2.0
% 
% LaTeX style file for American Meteorological Society publications
% (not including BAMS).
%
%************************************************************************
%********************** DO NOT MODIFY THIS FILE!!! **********************
%************************************************************************
%* ANY CHANGES MADE WILL BE LOST UPON UPLOADING YOUR MANUSCRIPT.        *
%* THIS STYLE FILE IS KEPT ON THE UPLOAD SYSTEM AND IS USED TO          *
%* CREATE YOUR MANUSCRIPT.  ANY STYLE FILE YOU UPLOAD WILL NOT BE USED  *
%************************************************************************
%
% Developed by Brian Papa - American Meteorological Society
%
% Based on the initial style file from Lakshmanan, 
% National Severe Storms Laboratory with modifications to follow 
% all AMS formatting style.
%
% Questions/feedback should be addressed to latex@ametsoc.org
%
% 12/29/06
% Added top documentation block and adjusted indentation for
% subsubsections and subsubsubsections (paragraph) to 4mm to follow
% AMS style. Set version number to 1.0 for initial release in Jan
% 2007.
%
% April 2007
% -Switched from the epsfig to the graphicx package
% -Switched from obsolete times package to mathptmx package for times
% fonts in text and math.
% -Added amsmath, fonts, symbols, and boldface packages
% -Rewrote code for appendices to allow for unlimited appendices using
% a single appendix command with an optional 1 letter argument.
% -Redid the page layout using the geometry package
% -Removed extraneous blank spaces to avoid unpredictable formatting
%
% July 2007
% -Set Reference and Abstract headings to all caps.
% -Added use of the setspace package
% -Updated to new doublespacing method
%
% August 2007
% -Updated amspaper.tex with new instructions, added references template information.
%
\usepackage{graphicx}
%
% Seup the page layout using the geometry package
%%%\usepackage[margin=2.54cm,centering]{geometry}
\usepackage[letterpaper,textwidth=16.5cm,textheight=22.9cm]{geometry}
%
% ametsoc.bst is built on top of natbib
\RequirePackage{natbib}

% Use times font in text and math
%\usepackage{mathptmx}
\usepackage{url}

% Provide the amsmath, fonts, symbol, and boldface math packages for use
\usepackage{amsmath,amsfonts,amssymb,bm}

%Use the indent first package to ensure the first paragraph after each
%section is indented.
\usepackage{indentfirst}

%Use setspace to set the spacing to allow double spacing to be defined in the document
\usepackage{setspace}

%If then options
\RequirePackage{ifthen} 

\ProcessOptions

% All the figures and tables should be at the end
\usepackage[nomarkers]{endfloat}%
\renewcommand{\processdelayedfloats}{{%  Change of the original endfloat
   \let\figure\@bfig
   \let\table\@btab
   \processdelayedfloats@hook
   \if@tablesfirst \processtables\processfigures
   \else \processfigures\processtables \fi
   \processotherdelayedfloats}}

%Page numbers.
\pagestyle{plain}

% Article's default is to provide arabic numerals for everything.
% Change the formatting of section and lower to follow AMS style.
\renewcommand{\@seccntformat}[1]{{\csname the#1\endcsname}.~~}%1

%section definitions
\renewcommand{\section}{%
\renewcommand{\@seccntformat}[1]{{\csname the##1\endcsname}.~~}%1
\@startsection
{section}%
{1}% 1 is the level for subsection
{0mm}% NO indent, starts immediately
{-\baselineskip}% skips 1 baseline after end of previous subsection
{0.5\baselineskip}% half baseline and the first paragraph starts
{\Large\bf}%the style, Large and boldface
}
\renewcommand{\thesection}{\arabic{section}} % numbers

% subsection definitions
\renewcommand{\subsection}{%
\renewcommand{\@seccntformat}[1]{{\csname the##1\endcsname}.~~}%1
\@startsection
{subsection}%
{2}% 2 is the level for subsection
{0mm}% NO indent, starts immediately
{-\baselineskip}% skips 1 baseline after end of previous subsection
{0.5\baselineskip}% half baseline and the first paragraph starts
{\normalfont\normalsize\itshape}%the style, all italics
}
\renewcommand{\thesubsection}{\alph{subsection}} % letters

% subsubsection definitions
\renewcommand{\subsubsection}{%
\renewcommand{\@seccntformat}[1]{{\csname the##1\endcsname})~~}%1
\@startsection
{subsubsection}%
{3}% 3 is the level for subsubsection
{5mm}% Indent subsubsections
{-\baselineskip}% skips 1 baseline after end of previous subsubsection
{0.5\baselineskip}% half baseline and the first paragraph starts
{\normalfont\normalsize\sc}%
}
\renewcommand{\thesubsubsection}{\arabic{subsubsection}}

% paragraph (subsubsubsection) definitions
\renewcommand{\paragraph}{%
\renewcommand{\@seccntformat}[1]{({\csname the##1\endcsname})~~}%1
\@startsection
{paragraph}%
{4}% 4 is the level for subsubsubsection (paragraph)
{5mm}% indent paragraph/subsubsubsections the same as subsubsections
{-\baselineskip}% skips 1 baseline after end of previous subsubsection
{0.5\baselineskip}% half baseline and the first paragraph starts
{\normalfont\normalsize\itshape}%
}
\renewcommand{\theparagraph}{\roman{paragraph}}

% Acknowlegments is defined as an unnumbered section.
\newenvironment{acknowledgment}
{\subsubsection*{\textit{Acknowledgments.}}}
{}

\renewenvironment{appendix}[1][1]%
{\ifthenelse{\equal{#1}{1}}%
{\renewcommand{\theequation}{A\arabic{equation}}%
\setcounter{equation}{0}% reset counter
\setcounter{subsection}{0}% reset counter
\begin{center}%
\section*{\textnormal{APPENDIX}}%
\end{center}}%
{\renewcommand{\theequation}{{#1}\arabic{equation}}%
\setcounter{equation}{0}% reset counter
\setcounter{subsection}{0}% reset counter
\begin{center}%
\section*{\textnormal{APPENDIX {#1}}}%
\end{center}}}%

% Legacy Appendix code for backwards compatibility---TO BE DELETED.

% The Appendix is handled as a special section...provide five
% appendices for authors.  The folowing block of code can be cut &
% paste if further appendices are needed.  Dont forget to updated the
% letter at the end of the command and at the beginning of redefining
% the equation counter
%
\newenvironment{appendix1}
{
% redefine the command that creates the equation no.
\renewcommand{\theequation}{A\arabic{equation}}
\setcounter{equation}{0}% reset counter
\setcounter{subsection}{0}% reset counter
\begin{center}
\section*{\textnormal{APPENDIX}}
\end{center}
}

\newenvironment{appendixA}
{
\renewcommand{\theequation}{A\arabic{equation}}
\setcounter{equation}{0}% reset counter
\setcounter{subsection}{0}% reset counter
\begin{center}
\section*{\textnormal{APPENDIX A}}
\end{center}
}

\newenvironment{appendixB}
{
\renewcommand{\theequation}{B\arabic{equation}}
\setcounter{equation}{0}% reset counter
\setcounter{subsection}{0}% reset counter
\begin{center}
\section*{\textnormal{APPENDIX B}}
\end{center}
}

\newenvironment{appendixC}
{
\renewcommand{\theequation}{C\arabic{equation}}
\setcounter{equation}{0}% reset counter
\setcounter{subsection}{0}% reset counter
\begin{center}
\section*{\textnormal{APPENDIX C}}
\end{center}
}

\newenvironment{appendixD}
{
\renewcommand{\theequation}{D\arabic{equation}}
\setcounter{equation}{0}% reset counter
\setcounter{subsection}{0}% reset counter
\begin{center}
\section*{\textnormal{APPENDIX D}}
\end{center}
}

\newenvironment{appendixE}
{
\renewcommand{\theequation}{E\arabic{equation}}
\setcounter{equation}{0}% reset counter
\setcounter{subsection}{0}% reset counter
\begin{center}
\section*{\textnormal{APPENDIX E}}
\end{center}
}

%
% Remove colon in \caption, AMS style is to have a period after the
% figure number
\long\def\@makecaption#1#2{%
% Create the proper style for the figure and table captions.
\renewcommand{\figurename}{\textsc{Fig.}}
\renewcommand{\tablename}{\textsc{Table}}
\renewcommand{\thefigure}{\arabic{figure}.}
\renewcommand{\thetable}{\arabic{table}.}
\vskip\abovecaptionskip
\sbox\@tempboxa{#1~~#2}%
\ifdim \wd\@tempboxa >\hsize
#1~~#2\par%
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
%
% Make sure Abstract heading is uppercase
\renewcommand{\abstractname}{\uppercase{Abstract}}%
%
\if@titlepage
  \renewenvironment{abstract}{%
      \titlepage
      \null\vfil
      \@beginparpenalty\@lowpenalty
      \begin{center}%
        \abstractname
        \@endparpenalty\@M
      \end{center}}%
     {\par\vfil\null\endtitlepage}
\else
  \renewenvironment{abstract}{%
      \if@twocolumn
        \section*{\abstractname}%
      \else
%        \small
        \begin{center}%
          {\abstractname\vspace{-.5em}\vspace{\z@}}%
%	  \newpage
        \end{center}%
        \quotation
%	\newpage
      \fi}
      {\if@twocolumn
       \else
          \endquotation
	  \newpage
       \fi}
\fi

% Define the amstitle
\newcommand{\amstitle}{
   \date{}% No date
   \maketitle%Make the title
   \thispagestyle{empty}% title page doesn't have page number
   \newpage%Title page is separate from rest of article
   \pagenumbering{arabic}%Start pagination from this point
   \newpage%Title page is separate from rest of article
}

%Citations should be of the form ``author year''  not ``author, year''
\bibpunct{(}{)}{;}{a}{}{,}
%
% Center the References section title
\renewcommand{\refname}{\begin{center}\uppercase{References}\end{center}}