forked from jamesbornholt/sigplan-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.tex
47 lines (38 loc) · 2.23 KB
/
packages.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
% fonts & text %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{mathptmx} % times for math text
\usepackage[scaled]{helvet} % helvetica for sans-serif
\usepackage{microtype} % better text rendering
\usepackage{courier} % courier for fixed-width
% bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[numbers,square,sort&compress]{natbib}
% figures %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{graphicx} % includegraphics
\usepackage{caption,subcaption} % subfigures & captions
\usepackage{float} % non-stupid floats
% get the sigplanconf caption style back
\captionsetup[subfigure]{format=plain,labelformat=simple,aboveskip=0.3em,belowskip=0em}
\DeclareCaptionFormat{hline}{\hrulefill\\#1#2#3}
\captionsetup[figure]{format=hline} % uncomment to get the line above the caption
\captionsetup{aboveskip=0.2em, belowskip=-0.8em, labelsep=period, labelfont=bf}
\renewcommand\thesubfigure{(\alph{subfigure})}
% tables %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{booktabs} % pretty table spacing
% spacing %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{relsize} % \relsize{-1} for macros
\usepackage{xspace} % space after macros
% colors %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[svgnames]{xcolor} % colors, with svg names available
% links %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{url}
\usepackage[breaklinks]{hyperref} % links
% math %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath}
\usepackage{amsfonts} % provides \mathbb and other stuff
\usepackage{amssymb} % lots of symbols
% listings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{listings} % code listings
% todos & draft stuff %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifnum\draft=1
\IfFileExists{revision.tex}{\include{revision}}{\newcommand{\Revision}{???}}
\usepackage{drafthead}
\fi