1 \ProvidesPackage{ametsoc
}
3 % hacked Jan Mandel Oct 2006
5 %LaTeX and BibTeX style files for American Meteorological Society publications.
6 %These are not authorized or approved by the AMS in any way. Use at your own
8 % (c) Lakshman, National Severe Storms Laboratory
9 % http://www.cimms.ou.edu/~lakshman/ametsoc/
10 % $Id: ametsoc.sty,v 1.1 2017/04/24 20:36:46 jmandel Exp $
12 % ametsoc.bst is built on top of natbib
13 \RequirePackage{natbib
}
15 %use Postscript times if available ... it's better looking than computer roman
18 % Check if user has defined the final option or the conf option
19 \RequirePackage{ifthen
}
21 \DeclareOption{final
}{\setboolean{final
}{true
}}
24 \DeclareOption{conf
}{\setboolean{conf
}{true
}}
28 % Set up the environment for conference papers
29 \ifthenelse{\boolean{conf
}}%
30 {\renewcommand\familydefault{\sfdefault}%Helvetica
31 \setlength{\oddsidemargin}{-
0.25in
}%wider page
32 \setlength{\textwidth}{7in
}%more text
33 \usepackage{fix2col
}%makes things look better
37 % If we are final, then all the figures and tables should be at the
39 \ifthenelse{\boolean{final
}}
40 %{\usepackage[tablesfirst]{endfloat}%
41 {\usepackage{endfloat
}% put the tables last, not first
42 \renewcommand{\processdelayedfloats}{{% Change of the original endfloat
43 %\def\baselinestretch{1}\normalsize %<-- do not override setspace ...
46 \processdelayedfloats@hook
47 \if@tablesfirst
\processtables\processfigures
48 \else \processfigures\processtables \fi
49 \processotherdelayedfloats}}
53 % Make it do double-spacing for manuscript when you send it out.
54 % User will have used \usepackage[final]{ametsoc} to get double-spaced text.
55 \ifthenelse{\boolean{final
}}
56 {\usepackage{setspace
} \doublespacing \setstretch{2.0}}
59 %AMS requires page numbers.
62 \renewcommand\thefootnote{\@fnsymbol
\c@footnote
} % use * for footnote
64 % Article's default is to provide arabic numerals for everything.
65 % Change the formatting of section and lower to be the way AMS wants them.
66 % --> \makeatletter is not needed because this is a package file.
67 \renewcommand{\@seccntformat
}[1]{\bf{\csname the
#1\endcsname}.~~
}%1. in bold
71 \renewcommand{\section}{\@startsection
73 {1}% 2 is the level for section
74 {0mm
}% NO indent, starts immediately
75 {-
\baselineskip}% skips 1 baseline after end of previous subsection
76 {0.5\baselineskip}% half baseline and the first paragraph starts
77 {\bf\uppercase}%the style, all italics
81 \renewcommand{\subsection}{\@startsection
83 {2}% 2 is the level for subsection
84 {0mm
}% NO indent, starts immediately
85 {-
\baselineskip}% skips 1 baseline after end of previous subsection
86 {0.5\baselineskip}% half baseline and the first paragraph starts
87 %{\normalfont\normalsize\itshape}%the style, all italics
90 \renewcommand{\thesubsection}{\thesection.
\arabic{subsection
}} % letters
93 \renewcommand{\subsubsection}{\@startsection
95 {3} % 3 is the level for subsubsection
96 {0mm
}% NO indent, starts immediately
97 {-
\baselineskip}% skips 1 baseline after end of previous subsubsection
98 {-
2mm
}% text starts on the same line
99 {\normalfont\normalsize\itshape}%the style, all italics
101 % roman numbers; because this is run-in, we need a couple of spaces too.
102 \renewcommand{\thesubsubsection}{\thesubsection.
\arabic{subsubsection
}}
105 % Acknowlegments is not a section, but is formatted with run-in headings
106 \newenvironment{acknowledgement
}
107 {\subsubsection*
{\textbf{\emph{Acknowledgement
}}}}
111 \renewenvironment{abstract
}{%
114 \@beginparpenalty\@lowpenalty
116 \bfseries \abstractname
119 {\par\vfil\null\endtitlepage}
121 \renewenvironment{abstract
}{%
123 \section*
{\abstractname}%
127 {\bfseries \abstractname\vspace{-
.5em
}\vspace{\z@
}}%
131 {\if@twocolumn
\else\endquotation\fi}
134 % No date on conference papers
135 \ifthenelse{\boolean{conf
}}
139 % Define the amstitle depending on whether we are final or not
140 \newcommand{\amstitle}{
141 %\date{}% title page on final should be dated
142 \maketitle%make the title
143 \thispagestyle{empty
}%title page doesn't have page number ...
144 \newpage%title page is separate from rest of article
145 \pagenumbering{arabic
}%start numbering from this point ...
146 \newpage%The AMS wants title page separate from article
147 }%For final manuscript
149 \ifthenelse{\boolean{final
}}
151 {\renewcommand{\amstitle}{\maketitle}} %no need for separate pages on non-final
153 %% citations should be of the form ``author year'' not ``author, year''
154 \bibpunct{(
}{)
}{;
}{a
}{}{,
}