diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ametsoc/ametsoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ametsoc/ametsoc.sty | 206 |
1 files changed, 79 insertions, 127 deletions
diff --git a/Master/texmf-dist/tex/latex/ametsoc/ametsoc.sty b/Master/texmf-dist/tex/latex/ametsoc/ametsoc.sty index 42b4948f99b..4e7291df6db 100644 --- a/Master/texmf-dist/tex/latex/ametsoc/ametsoc.sty +++ b/Master/texmf-dist/tex/latex/ametsoc/ametsoc.sty @@ -1,5 +1,5 @@ \ProvidesPackage{ametsoc} -% AMS Latex Style File Version 2.0 +% AMS Latex Style File Version 3.0 % % LaTeX style file for American Meteorological Society publications % (not including BAMS). @@ -49,46 +49,67 @@ % so captions and text would be double spaced % -Added dvips option to geometry to guarantee page layout info is passed to the dvi file % -\usepackage{graphicx} +% August 12, 2008 -- Sarah Cooley, AMS +% - Shortened endfloat commands +% - Moved \setcounter command here from .tex +% - Removed legacy appendix code for app's A-E +% - Made captions in list of figures/tables double spaced, cap's under figs/tables single sp. +% - Removed dotted line from list of figures/tables +% +% August, 2008 -- Brian Papa, AMS +% - Cretaed separate style file for single space double column draft for author use +% - Added doublespacing boolean +% - Created header for first page to indicate use of Official AMS LaTeX template +% - Corrected usepackage commands to Requirepackage +% +\RequirePackage{graphicx} % % Seup the page layout using the geometry package -%%%\usepackage[margin=2.54cm,centering]{geometry} -\usepackage[dvips,letterpaper,textwidth=16.5cm,textheight=22.9cm]{geometry} +\RequirePackage[dvips,letterpaper,textwidth=16.5cm,textheight=22.9cm]{geometry} % % ametsoc.bst is built on top of natbib \RequirePackage{natbib} % Use times font in URLs -\usepackage{url} +\RequirePackage{url} -% Provide the amsmath, fonts, symbol, and boldface math packages for use -\usepackage{amsmath,amsfonts,amssymb,bm} +% Define a light gray color for use in the title page header +\RequirePackage{color} +\definecolor{lightgray}{gray}{0.75} +\RequirePackage{fancyhdr} -%Ensure both text and captions are double spaced following AMS requirements -\renewcommand{\baselinestretch}{2.0} +% Provide the amsmath, fonts, symbol, and boldface math packages for use +\RequirePackage{amsmath,amsfonts,amssymb,bm} %Use the indent first package to ensure the first paragraph after each %section is indented. -\usepackage{indentfirst} +\RequirePackage{indentfirst} %If then options \RequirePackage{ifthen} +\newboolean{dc} +\setboolean{dc}{false} -\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}} - +%Ensure both text and captions are double spaced following AMS requirements +\ifthenelse{\boolean{dc}} +{} +{\renewcommand{\baselinestretch}{2.0}} + +\renewcommand{\labelenumi}{\roman{enumi}.} +% All the figures and tables should be at the end on their own pages +\RequirePackage[nomarkers, tablesfirst]{endfloat}% +\AtBeginDelayedFloats{\clearpage} +%\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} +\setcounter{secnumdepth}{4} % 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 @@ -145,95 +166,26 @@ } \renewcommand{\theparagraph}{\roman{paragraph}} -% Acknowlegments is defined as an unnumbered section. +% Acknowledgments is defined as an unnumbered section. \newenvironment{acknowledgment} {\subsubsection*{\textit{Acknowledgments.}}} {} \renewenvironment{appendix}[1][1]% {\ifthenelse{\equal{#1}{1}}% -{\renewcommand{\theequation}{A\arabic{equation}}% +{\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}}% +{\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 @@ -253,51 +205,51 @@ \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 +\renewenvironment{abstract}{ +\normalfont% Used under normal template conditions +\begin{center}% +{\abstractname\vspace{-.5em}\vspace{\z@}}% +\end{center} +} % Define the amstitle \newcommand{\amstitle}{ \date{}% No date \maketitle%Make the title - \thispagestyle{empty}% title page doesn't have page number + \thispagestyle{fancy}% title page doesn't have page number + \lhead{\textcolor{lightgray}{\footnotesize{Generated using version 3.0 of the official AMS \LaTeX\ template}}} \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}{}{,} % +% Adjust the spacing for two column papers +\ifthenelse{\boolean{dc}} +{\setlength{\columnsep}{.25in}} +{} % Center the References section title -\renewcommand{\refname}{\begin{center}\uppercase{References}\end{center}}
\ No newline at end of file +\renewcommand{\refname}{\begin{center}\uppercase{References}\end{center}} + +%Change the way the list of figures and tables operates +\renewcommand\listoffigures{ + \section*{\listfigurename}% + \renewcommand{\baselinestretch}{2.0} + \small\normalsize + \@starttoc{lof}% +} +% +\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}} +\renewcommand{\@dotsep}{1000} + +\renewcommand\listoftables{ + \section*{\listtablename}% + \renewcommand{\baselinestretch}{2.0} + \small\normalsize + \@starttoc{lot} \renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}} +\renewcommand{\@dotsep}{1000} +}
\ No newline at end of file |