Skip to content

Instantly share code, notes, and snippets.

@matsen
Last active October 27, 2016 19:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsen/4219300 to your computer and use it in GitHub Desktop.
Save matsen/4219300 to your computer and use it in GitHub Desktop.
Framework for a latex file designed for both arXiv and journal submission.
\documentclass{amsart}
\usepackage[round]{natbib}
\usepackage{graphicx}
\usepackage[notref,notcite]{showkeys}
\usepackage{url}
% in case of supplementary material
% \usepackage{xr}
% \externaldocument{lcfit_supp}
% general
\newcommand{\EE}{\mathbb{E}}
% arxivness
\newcommand{\arxiv}[1]{#1}
\newcommand{\notarxiv}[1]{}
\newcommand{\eat}[1]{}
% theorems, etc
\newtheorem{lemma}{Lemma}
\newtheorem{prop}{Proposition}
\newtheorem{theorem}{Theorem}
\newtheorem{problem}{Problem}
\newtheorem{defn}{Definition}
\newtheorem{obs}{Observation}
\newtheorem{alg}{Algorithm}
\newcommand{\FIGshape}{\
\begin{figure}
\begin{center}
\arxiv{\includegraphics[height=9cm]{theta_shape.pdf}}
\end{center}
\caption{\
As $\theta$ goes to zero, the $g_\theta$ converge pointwise to $g$, which is 1 on the interior of the unit interval and 0 on the boundaries.
}
\label{FIGshape}
\end{figure}
}
\newcommand{\refFIGshape}{1}
\title[Shorttitle]{Longtitle}
\author{Author}
\date{\today}
\begin{document}
\begin{abstract}
Start, stop.
\end{abstract}
\maketitle
\section{Acknowledgements}
\bibliography{lcfittex}
\bibliographystyle{alphaplainnat}
% Figure legends for submission
\notarxiv{
\section{Figure Legends}
\FIGshape
\renewcommand{\thefigure}{S\arabic{figure}} % Figure S1, etc.
\setcounter{figure}{0} % Reset counter.
}
\bibliographystyle{plain}
\bibliography{skeleton.bib}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment