diff options
author | Karl Berry <karl@freefriends.org> | 2008-09-05 18:46:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-09-05 18:46:06 +0000 |
commit | 53b978a99a82b83e1643db2362d70d9eba83e19d (patch) | |
tree | 11ed9e1292e6a6081a2defcfa15640c65c74d82c /Master/texmf-dist/tex/latex/ametsoc | |
parent | b0dcc8e69a391e4ff375f15a908fc97068a4ba4f (diff) |
ametsoc 3.0 (3sep08)
git-svn-id: svn://tug.org/texlive/trunk@10433 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ametsoc')
-rw-r--r-- | Master/texmf-dist/tex/latex/ametsoc/ametsoc.sty | 206 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ametsoc/ametsoc2col.sty | 189 |
2 files changed, 268 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 diff --git a/Master/texmf-dist/tex/latex/ametsoc/ametsoc2col.sty b/Master/texmf-dist/tex/latex/ametsoc/ametsoc2col.sty new file mode 100644 index 00000000000..0335d95b11f --- /dev/null +++ b/Master/texmf-dist/tex/latex/ametsoc/ametsoc2col.sty @@ -0,0 +1,189 @@ +\ProvidesPackage{ametsoc2col} +% AMS Latex Style File Version 3.0 +% +% LaTeX style file for AUTHOR USE ONLY +% Produces two column, single spaced journal page layout. +% +%************************************************************************************ +%****************************FOR AUTHOR'S PERSONAL USE ONLY!!!*********************** +%********************** NOT TO BE USED FOR SUBMISSION TO THE AMS!!!****************** +%************************************************************************************ +%* This file can be used with amspaper.tex to generate a double column, single spaced +%* PDF that closely resembles AMS journal page layout. This is for author use ONLY! +%* PAPERS SUBMITTED IN THIS FORMAT WILL BE RETURNED TO THE AUTHOR! To submit a paper +%* in a format that follows all the AMS guidelines for submission and peer review use +%* ametsoc.sty +%************************************************************************************ +% +% August, 2008 - Developed by Brian Papa - American Meteorological Society +% - A modified version of ametsoc.sty +% +\RequirePackage{graphicx} +% +% Seup the page layout using the geometry package +%%%\usepackage[margin=2.54cm,centering]{geometry} +\RequirePackage[dvips,letterpaper,textwidth=18.5cm,textheight=22.9cm]{geometry} +% +% ametsoc.bst is built on top of natbib +\RequirePackage{natbib} + +% Use times font in URLs +\RequirePackage{url} + +% Define a light gray color for use in the title page header +\RequirePackage{color} +\definecolor{lightgray}{gray}{0.50} +\RequirePackage{fancyhdr} + +% 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. +\RequirePackage{indentfirst} + +%If then options +\RequirePackage{ifthen} +\newboolean{dc} +\setboolean{dc}{true} + +%Ensure both text and captions are double spaced following AMS requirements +\ifthenelse{\boolean{dc}} +{} +{\renewcommand{\baselinestretch}{2.0}} + +% Corrected labels to roman numbers for lists +\renewcommand{\labelenumi}{\roman{enumi}.} + +%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 + +%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 +{\normalsize\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\small\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\small\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\small\itshape}% +} +\renewcommand{\theparagraph}{\roman{paragraph}} + +% 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}}% +\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}}}% + +% +% 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} +% +% Set the abstract heading as upper case and define the abstract environment. +\renewcommand{\abstractname}{\uppercase{Abstract}} +% +\renewenvironment{abstract}{ +\footnotesize% 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{fancy}% title page doesn't have page number + \lhead{\textcolor{lightgray}{\footnotesize{Generated using V3.0 of the official AMS \LaTeX\ template--journal page layout FOR AUTHOR USE ONLY, NOT FOR SUBMISSION!}}} + \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}} +% Set the column separator width to 0.25 inches. +{\setlength{\columnsep}{.25in}} +{} +% +% Center the References section title +\renewcommand{\refname}{\begin{center}\uppercase{\normalfont{References}}\end{center}}
\ No newline at end of file |