Skip to content

Instantly share code, notes, and snippets.

@dmsul
Created September 27, 2018 01:44
Show Gist options
  • Save dmsul/cc823926023dd83070a3d2486b02037d to your computer and use it in GitHub Desktop.
Save dmsul/cc823926023dd83070a3d2486b02037d to your computer and use it in GitHub Desktop.
Example preamble
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage[utopia]{mathdesign}
%\usepackage{mathptmx}
%\usepackage{mathpazo}
%\usepackage{fontspec}
%\setmainfont{Cambria}
\usepackage[bookmarks=false]{hyperref}
\hypersetup{%
hidelinks,
}
\urlstyle{same} % Use std typeface in URL's
\usepackage{microtype} % For better spacing between words, punctuation
\usepackage[compact]{titlesec}
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\usepackage{setspace}
\onehalfspacing
\usepackage{xspace} % for \xspace command
\usepackage{amsmath}
\usepackage[detect-mode=true, group-minimum-digits=4, group-separator={,}]{siunitx}
\usepackage{xfrac}
% Margins
\usepackage[margin=1.25in]{geometry}
\usepackage{graphicx}
\usepackage{pdflscape}
% BibLaTex
\usepackage[nameinlink]{cleveref} % Better than 'autoref'; load after amsthm
\PassOptionsToPackage{natbib,useprefix=true}{biblatex-chicago}
\input{biblatex-aer} % In ~/texmf
\usepackage{csquotes} % biblatex really likes this?
\addbibresource{moncov.bib}
% Utopia font doesn't have the right symbol?
\makeatletter
\renewcommand*{\@fnsymbol}[1]{\ifcase#1\or*\else\@arabic{#1}\fi}
\makeatother
\title{%
My Very Descriptive and Not Punny Title%
\thanks{%
1600 Pennsylvannia Ave NW, Washington DC. Email:
\url{jack@twitter.com}. We thank all who need thanking.
}%
}
\author{First Author \and Second Author}
\date{\today}
% Not full justified (so easier to read)
\raggedright
%\usepackage{ragged2e} % For some breaking of words across lines
\setlength{\parskip}{8pt plus4mm minus3mm}
% Uncomment this to get raggedright footnotes?
%\ExplSyntaxOn
%\makeatletter
%\RenewDocumentCommand\@makefntext{+m}{
%\raggedright
%\leavevmode
%\hbox_to_wd:nn{0pt}{\hss\@thefnmark\enspace}
%#1
%}
%\makeatother
%\ExplSyntaxOff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment