Skip to content

Instantly share code, notes, and snippets.

@naught101
Last active October 13, 2017 10:32
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save naught101/f369e9796c36965b0cf6 to your computer and use it in GitHub Desktop.
ametsoc.latex
%% AMS pandoc template.
%% https://gist.github.com/naught101/f369e9796c36965b0cf6
%% Converts pandoc to a latex file along the lines of the templates from
%% https://www2.ametsoc.org/ams/index.cfm/publications/authors/journal-and-bams-authors/author-resources/latex-author-info/preparing-a-latex-manuscript-for-submission/
%% The results of this template should work with ametsoc.cls and ametsoc2014.bst
%% out of the box.
%% amssamp1.tex is nearly identical to amssamp2.tex, except
%% that amssamp2.tex uses the [twocol] option to produce
%% two-column text.
\documentclass{ametsoc}
%\documentclass[twocol]{ametsoc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% To be entered only if twocol option is used
$if(journal)$
\journal{$journal$}
$else$
\journal{jcli}
$endif$
% This should be removed, but pandoc doesn't do normal tables for other reasons
% see https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/pandoc-discuss/znkTLPkekOg/bpXJZNyJ_rIJ
$if(tables)$
\usepackage{longtable,booktabs}
$endif$
% This should be removed if pandoc can be made not to use tightlist
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\usepackage{fixltx2e} % provides \textsubscript
% Please choose a journal abbreviation to use above from the following list:
%
% jamc (Journal of Applied Meteorology and Climatology)
% jtech (Journal of Atmospheric and Oceanic Technology)
% jhm (Journal of Hydrometeorology)
% jpo (Journal of Physical Oceanography)
% jas (Journal of Atmospheric Sciences)
% jcli (Journal of Climate)
% mwr (Monthly Weather Review)
% wcas (Weather, Climate, and Society)
% waf (Weather and Forecasting)
% bams (Bulletin of the American Meteorological Society)
% ei (Earth Interactions)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Citations should be of the form ``author year'' not ``author, year''
\bibpunct{(}{)}{;}{a}{}{,}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{$title$}
\authors{$for(author)$$author$$sep$ \and $endfor$}
\affiliation{$affiliation$}
\email{$email$}
%\extraauthor{Extra Author}
%\extraaffil{Affiliation, City, State/Province, Country}
\abstract{$abstract$}
\begin{document}
\maketitle
$body$
%%%%%%%%%%%%%%%%%
%REFERENCES
%%%%%%%%%%%%%%%%%
\bibliographystyle{ametsoc2014}
\bibliography{references}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment