Last active
December 15, 2015 02:19
-
-
Save keot/5186926 to your computer and use it in GitHub Desktop.
A simple header for Pandoc.
Usage: ```pandoc input.md -o output.pdf --include-in-header=pandoc_latex_header.tex```
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Figures and Graphics | |
\usepackage[format=hang,labelsep=endash,font=small,labelfont=bf]{caption} | |
% Mathematical Packages | |
\usepackage{xfrac} % Slanted fractions \sfrac{1}{2} | |
% Header Packages | |
\usepackage{lastpage} | |
\usepackage{fancyhdr} | |
\renewcommand{\headrulewidth}{0pt} | |
\setlength{\headheight}{15pt} % avoids fancyhdr warning | |
\fancyhf{} | |
\fancyhead[L]{\emph{\nouppercase{\leftmark}}} | |
\fancyfoot[R]{\emph{\Large{\sfrac{\thepage}{\pageref{LastPage}}}}} | |
\fancypagestyle{plain}{\fancyhf{}} % Remove page numbers from title page | |
% PDF Packages | |
\usepackage[section]{placeins} | |
\usepackage[british]{babel} | |
\usepackage{datetime} | |
\usepackage[margin=25mm]{geometry} | |
\usepackage{hyperref} | |
\usepackage{xcolor} | |
\definecolor{navy}{RGB}{0 0 128} | |
\definecolor{grey}{RGB}{128 128 128} | |
\hypersetup{ | |
bookmarksnumbered, | |
bookmarksopen, | |
colorlinks = true, | |
citecolor = navy, | |
filecolor = navy, | |
linkcolor = navy, | |
urlcolor = navy | |
} | |
\usepackage[all]{hypcap} % caption links go direct to figure | |
% Typographic Packages | |
\usepackage{setspace} | |
\usepackage{extdash} % Provides \Endash{} and \Emdash{} for correct hairline spacing | |
\usepackage[footnotefigures,mathlf]{MinionPro} % Minion Pro font family from Adobe | |
\usepackage{inconsolata} % Monospace font |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment