-
Notifications
You must be signed in to change notification settings - Fork 0
/
CrallPramb.tex
153 lines (120 loc) · 4.17 KB
/
CrallPramb.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
%References: http://tex.stackexchange.com/questions/58098/what-are-all-the-font-styles-i-can-use-in-math-mode
\usepackage[hang]{caption}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{mathrsfs} % Fancy script mathscr
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{xstring}
\usepackage{mathtools}
\usepackage{algorithm}
\usepackage{bbm}
%\usepackage{ulem}
%\normalem{}
\usepackage[binary-units=true,group-separator={,}]{siunitx} % gives \num{3002432}
% Place both short and long title in the caption.
% References: https://tex.stackexchange.com/questions/91341/display-short-title-and-long-title-both-in-a-caption
%\makeatletter
%\let\x@caption\caption % original \caption
%\def\x@@caption[#1]#2{\x@caption[{#1}]{#1 --- #2}} % with optional arg
%\def\x@@@caption#1{\x@caption[{#1}]{#1}} % without optional arg
%\def\caption{\@ifnextchar[\x@@caption\x@@@caption} % new \caption
%\makeatother
% for subfigure
\usepackage{subcaption}
\captionsetup{compatibility=false}
% TURN OFF FOR PRINT VERSION, ON FOR ONLINE VERSION
%\usepackage[marginpar=2cm] {geometry}
% Include other packages here, before hyperref.
% http://en.wikibooks.org/wiki/LaTeX/Hyperlinks
\usepackage[
backref=page,%
pagebackref=true,%
breaklinks=true,%
bookmarks=true,%
bookmarksnumbered=true,%
bookmarksopen=true,%
hyperfigures=true,%
pdfauthor={Jon Crall},%
colorlinks,
%allcolors=black % % Comment in for thesis submission
linkcolor=red,
citecolor=green,
anchorcolor=black,
]{hyperref}
\usepackage{multirow}
\usepackage{cleveref}
\crefname{subfigure}{subfigure}{subfigures}
\Crefname{subfigure}{Subfigure}{Subfigures}
\crefname{subfigure}{}{}
\Crefname{subfigure}{}{}
% Remove the subfigure from cleveref and add parenthesis
% http://tex.stackexchange.com/questions/170408/how-to-put-numbers-in-parenthesis-using-cleveref
\creflabelformat{subfigure}{(#2#1#3)}
% chktex-file 9
% chktex-file 10
% chktex-file 17
\crefmultiformat{subfigure}{(#2#1#3}{ and~#2#1#3)}{, #2#1#3}{ and~#2#1#3)}
%http://tex.stackexchange.com/questions/17874/cleveref-and-titlesec-section-issues
\crefname{appsec}{appendix}{appendices}
\Crefname{appsec}{Appendix}{Appendices}
%\input{creferrors.tex}
% For space after ensuremath
\usepackage{xspace}
\usepackage{enumerate}
%http://tex.stackexchange.com/questions/60135/path-to-external-files-in-nested-input
%\usepackage{import}
%\usepackage[numbers,sort]{natbib}
%\usepackage[numbers,sort,compress]{natbib}
%\usepackage{cite}
%\usepackage[style=ieee]{biblatex}
%\usepackage[%
% bibstyle=ieee,
% citestyle=numeric,
% %isbn=true,
% %doi=false,
% %sorting=none,
% %url=true,
% %defernumbers=true,
% %bibencoding=utf8,
% backend=biber
%]{biblatex}
% IEEE style where each reference is individually braketed
\usepackage[noadjust]{cite}
\renewcommand\citeform[1]{[#1]}
\renewcommand\citeleft{}
\renewcommand\citeright{}
\usepackage{booktabs}
\usepackage{listings}
\usepackage[chapter]{minted}
\newenvironment{code}{\captionsetup{type=listing}}{}
\usepackage[inline]{enumitem}
\newlist{itemln}{itemize}{3}
\setlist[itemln]{label=\textbullet,noitemsep,nolistsep}
\newlist{enumln}{enumerate}{3}
\setlist[enumln,1]{label=(\arabic*),noitemsep,nolistsep}
\setlist[enumln,2]{label=(\arabic{enumlni}.\arabic*),noitemsep,nolistsep}
\setlist[enumln,3]{label=(\arabic{enumlni}.\arabic{enumlnii}.\arabic*),noitemsep,nolistsep}
\newlist{enumin}{enumerate*}{2}
\setlist[enumin]{label=(\arabic*),noitemsep,nolistsep}
\usepackage{makecell}
% defines the FloatBarrier command
\usepackage[section]{placeins}
% References: https://tex.stackexchange.com/questions/333906/switch-between-long-and-short-caption-in-list-of-figures
\makeatletter
\let\latex@@caption\caption
%\RenewDocumentCommand{\caption}{+o+m}{%
\NewDocumentCommand{\captext}{+o+m}{%
\IfValueTF{#1}{%
\latex@@caption[#1]{\textbf{#1}\quad{}\@ifnextchar\par\@gobble\relax#2}%
%\latex@@caption[#1]{\textbf{#1.} #2}%
}{%
%\latex@@caption[#2]{#2}% No [#1] given, use the long caption then!
\latex@@caption[ERROR-NO-SHORT-TEXT]{#2}% No [#1] given, use the long caption then!
}
}
\makeatother