Skip to content

Instantly share code, notes, and snippets.

@justmytwospence
Created July 4, 2014 02:37
Show Gist options
  • Save justmytwospence/914450a96376007ed14d to your computer and use it in GitHub Desktop.
Save justmytwospence/914450a96376007ed14d to your computer and use it in GitHub Desktop.
Basic LaTeX preamble, especially for Rnoweb files.
\documentclass{article}
\usepackage{graphicx,hyperref,amsmath,natbib,bm,url} % Common packages
\usepackage[australian]{babel} % Ascending date format
\usepackage[a4paper,text={16.5cm,25.2cm},centering]{geometry} % Document size
\usepackage[compact,small]{titlesec} % Title spacing
\setlength{\parskip}{1.2ex} % Paragraph spacing
\setlength{\parindent}{0em} % Paragraph indentation
\clubpenalty = 10000 % Prevent orphans
\widowpenalty = 10000 % Prevent widows
\usepackage{kpfonts} % Better fonts
\usepackage[T1]{fontenc}
\usepackage{booktabs,dcolumn} % R xtable dependencies
\setlength\fboxsep{5mm} % Knitr chunk padding
\begin{document}
\title{}
\author{Spencer Boucher}
\maketitle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment