-
Notifications
You must be signed in to change notification settings - Fork 0
/
general-preamble.tex
executable file
·86 lines (75 loc) · 3.5 KB
/
general-preamble.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
% Standard packages to always use
\usepackage[utf8]{inputenc}
% The following command(s) fix an error generated by the inputenc package, "Package inputenc Error Unicode char (u+200B)
% See inputenc documentation, pp. 3-4 (http://ftp.math.purdue.edu/mirrors/ctan.org/macros/latex/base/inputenc.pdf) for an explanation why inputenc does not define all utf8 characters and how to add undefined characters
% See http://www.fileformat.info/info/unicode/char/200B/index.htm for the definition of u+200B as a zero-width space
% See http://heyrod.com/snippets/zero-width-space-char-in-html-and-latex.html for how to implement zero-width space in LaTeX by using \hspace{(0pt)}
\DeclareUnicodeCharacter{200B}{\hspace{0pt}}
%\usepackage[main=USenglish]{babel}
\usepackage{csquotes}
\usepackage[authordate,natbib,backend=biber]{biblatex-chicago}
% Other packages go here
% % % % % % % % % % % % % %
% The following is based on Aaron Defazio's Setup Guide for thesis writing in LyX. See http://www.aarondefazio.com/tangentially/?p=19
% % % % % % % % % % % % % %
%\usepackage{svn-multi} % Only use these two commands if versions of the document(s)
%\svnid{$Id$} % are to be maintained by the Subversion VCS.
%
% This is Aaron's original version. Various LyX options call hyperref and set other, incompatible options. Make this conditional.
% See https://tex.stackexchange.com/questions/16199/test-if-a-package-or-package-option-is-loaded for this approach
\@ifpackageloaded{hyperref}
{ %
\hypersetup{hyperindex=true}
}
{ %
\usepackage[hyperindex=true,
bookmarks=true,
colorlinks=true,
pdfborder=0,
pagebackref=false,
citecolor=blue,
plainpages=false,
pdfpagelabels,
hyperfootnotes=true]{hyperref} % Assume this version is at least 2006/11/15, so don't need memhfixc. See Memoir Manual p. xxix.
}
%\usepackage{hyperref}
\usepackage[all]{hypcap}
\usepackage{hypcap}
\usepackage{afterpage}
\usepackage{graphicx}
\usepackage[normalem]{ulem}
%\usepackage{makeidx} Included in Memoir
\usepackage{cleveref}
\usepackage{caption}
%\usepackage{float} Duplicates functionality built into Memoir (see p. 169 of Manual), and because of this causes problems when used. Also see https://tex.stackexchange.com/questions/23726/error-in-memoir-command-newfloat-already-defined
\urlstyle{sf}
\renewcommand{\sfdefault}{uop}
\usepackage[T1]{fontenc}
\usepackage[scaled]{beramono}
\usepackage{pifont}
\usepackage{rotating}
\usepackage{multirow}
%%%% Old macros file includes
%\usepackage{booktabs} Memoir does this; see p. xxvii of Memoir Manual
\usepackage{relsize}
\usepackage{xspace}
% \usepackage{subfig} Memoir does this too; see p. xxvii of Memoir Manual.
\usepackage{listings}
%%%%%%%%
% % % % % % % % % % % % % % % % % %
% Special packages needed
\usepackage{refcount}
% Redefine (Memoir's & Epigraph package) epigraph width
% This is set in myMemoir, but you can reset it here.
\setlength{\epigraphwidth}{.65\linewidth}
% Bibliography stuff
\addbibresource{References.bib}
% Bibliography Options (I can't get bookseries to work, but it should. See p. 61 of the biblatex-chicago documentation at http://mirror.hmc.edu/ctan/macros/latex/exptl/biblatex-contrib/biblatex-chicago/doc/biblatex-chicago.pdf)
\ExecuteBibliographyOptions{doi=only,bookpages=false,isbn=false,compresspages}
%\ExecuteBibliographyOptions{doi=only,bookpages=false,isbn=false,bookseries=false,compresspages}
% Cosmetics
\setbeforesecskip{-2em}
\setbeforesubsecskip{-2em}
% Temporary cosmetics
\addtolength{\absleftindent}{-5em}
\addtolength{\absrightindent}{-5em}