-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathultipack.tex
259 lines (223 loc) · 8.69 KB
/
ultipack.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% USEFUL LATEX PACKAGES AND CONFIGURATIONS
%%%
%%% Author: Louis-Philippe Rousseau (Université Laval)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% must be loaded before \documentclass in the document %%%
% checks for common mistakes and obsolete packages
%\RequirePackage[l2tabu,orthodox]{nag}
%%% common %%%
% desirable LaTeX 2e fixes
% (unnecessary for distributions newer than 2015, issues a warning)
%\usepackage{fixltx2e}
% UTF-8 input encoding and T1 font encoding
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% Latin modern font families (for accented characters)
\usepackage{lmodern}
% typographic improvements
\usepackage{microtype}
% LaTeX internationalization
% (languages as class options => correctly set languages for other packages)
\usepackage{babel}
%\usepackage[french, english]{babel} % last loaded language is the default
% setup for french in babel (see documentation)
%\frenchbsetup{
%StandardItemizeEnv=true, % use standard format for lists
%StandardEnumerateEnv=true, % use standard format for enumerations
%ThinSpaceInFrenchNumbers=true, % thin space in numbers
%og=«, fg=» % guillemets
%}
%%% layout and structure %%%
% changes the margins so that the full page is used
%\usepackage{fullpage}
% landscape environment (with PDF support)
%\usepackage{pdflscape}
% multicolumns documents
%\usepackage{multicol}
% advanced control over the document geometry
%\usepackage[letterpaper]{geometry}
% setup for the geometry package (see documentation)
%\geometry{top=25mm,bottom=25mm,left=30mm,right=30mm}
% to change the line spacing
%\usepackage{setspace}
% removes paragraph indentation
%\usepackage[parfill]{parskip}
% set paragraph indentation
%\setlength{\parindent}{1cm}
% control spacing in lists
%\usepackage{enumitem}
% setup for the enumitem package (see documentation)
%\setlist{topsep=0pt, partopsep=0pt, parsep=0pt, itemsep=0pt}
%\setlist[1]{labelindent=\parindent}
%\setlist{leftmargin=*, nosep}
% advanced control over section titles
%\usepackage{titlesec}
% setup for section titles
%\titleformat{\section}{\normalfont\Large\bfseries}{\thesection}{1em}{}[{\titlerule[0.8pt]}]
% advanced control over headers and footers
%\usepackage{fancyhdr}
% contents of headers and footers (see documentation)
%\pagestyle{options}
% format of page numbers (see documentation)
%\pagenumbering{options}
% advanced control over the ToC and other lists
%\usepackage{tocloft}
% add dots for chapters and sections in the ToC
%\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
%\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
% advanced quoting environments and control
\usepackage[autostyle]{csquotes}
% character that is used for quotes in the source file(s)
% (converted to the right quoting character in the document, e.g. «.» in French)
\MakeOuterQuote{"}
% better control of appendices
%\usepackage[toc]{appendix}
%%% math %%%
% loads amsmath, corrects bugs and provides useful tools
\usepackage{mathtools}
% allow bold math symbols (replaces amsbsy)
\usepackage{bm}
% AMS math font and symbols
\usepackage{amssymb} % also loads "amsfonts"
% AMS theorem environment
%\usepackage{amsthm}
% consistent typesetting of numbers and units
\usepackage{siunitx} % also loads "xparse"
% setup for siunitx package (see documentation)
%\sisetup{
%free-standing-units, % to use units abbreviations outside si commands
%space-before-unit, % add a space between a number and a free unit
%use-xspace % add a space after a free unit if necessary
%}
%%% figures and tables %%%
% extended graphics functionalities
\usepackage{graphicx}
% improved tables and multirow cells
\usepackage{booktabs,multirow}
% flexible and extended replacement for the "tabular" environment
%\usepackage{tabu}
% cell coloring in tables
%\usepackage{colortbl}
% multipage tables
%\usepackage{longtable}
% define a new column type "C": centered paragraph
%\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
% new rule type to separate the table header from the contents
\newcommand*{\headrule}{\midrule[\heavyrulewidth]}
% better control of captions and subcaptions
%\usepackage{caption,subcaption}
% setup for caption and subcaption packages (see documentation)
%\captionsetup{
%format=plain, % format of the caption: normal paragraph
%justification=centerlast, % center the last line in caption
%width=0.95\textwidth, % width of caption
%subrefformat=parens, % add parentheses to subfig reference
%skip=5pt,
%}
%\captionsetup[subfigure]{options}
% rename the tables caption in French to "Tableau", instead of "Table"
%\addto\captionsfrench{\renewcommand{\tablename}{\textsc{Tableau}}}
% control captions for multipages floats
%\usepackage{captcont}
% create or include Asymptote figures
%\usepackage[inline]{asymptote}
% directory where Asymptote figures should be created
%\def\asydir{asy}
% settings and definitions common to all figures
%\begin{asydef}
%include "asy/defaults.asy";
%\end{asydef}
% create or include Tikz/PGF figures
%\def\pgfsysdriver{pgfsys-dvipdfm.def} % driver for PGF
%\usepackage{tikz}
%\usepackage{pgfplots}
% compatibility mode for PGF plots
%\pgfplotsset{compat=newest}
% disable support for math expressions in plot coordinates
%\pgfplotsset{plot coordinates/math parser=false}
% list of Tikz/PGF libraries to load
%\usetikzlibrary{list,of,libraries}
% define new variables to set figure dimensions
%\newlength\figurewidth
%\newlength\figureheight
%%% bibliography and cross-referencing %%%
% improved "cite" command (incompatible with biblatex)
%\usepackage{cite}
% biblatex with Biber backend and numeric-comp style
\usepackage[backend=biber,style=numeric-comp]{biblatex}
% setup for biblatex package (see documentation)
\ExecuteBibliographyOptions{
sorting=none, % references are listed in citation order
url=false, % print url when appropriate?
doi=false, % print DOI?
isbn=false, % print ISBN/ISSN/ISRN?
giveninits=true, % print initial(s) for the first name
%firstinits=true, % print initial(s) for the first name (deprecated)
maxnames=50, % number of authors before using "et al."
}
% create lists of acronyms, symbols, etc.
%\usepackage{acronym}
%\usepackage{nomentbl}
%%% programming %%%
% include program listings into the document
%\usepackage{listings}
% setup for Matlab listings (see documentation)
%\lstset{language=Matlab,
%basicstyle=\footnotesize,
%linewidth=0.95\textwidth,
%frame=single,
%tabsize=2,
%breaklines=true,
%numbers=right,
%numberstyle=\tiny,
%numbersep=5pt,
%showspaces=false,
%showtabs=false,
%showstringspaces=false
%}
% fancy verbatim environments
%\usepackage{fancyvrb}
% produce algorithms/pseudo-code
%\usepackage{algpseudocode}
%%% miscellaneous %%%
% easily input or include files in folders
%\usepackage{import}
% better support for conditional statements
%\usepackage{xifthen}
% advanced control over colors (loaded by many packages)
%\usepackage{xcolor}
% generate a dummy document
%\usepackage{blindtext}
% add todo notes (add option "final" to disable)
%\usepackage[colorinlistoftodos]{todonotes}
% define commands for new types of todos
%\newcommand{\longtodo}[2][]{\ifthenelse{\isempty{#1}}{\todo[inline,caption={#2}]{#2}}{\todo[inline,caption={#1}]{#2}}}
%\newcommand{\addcont}[2][]{\ifthenelse{\isempty{#1}}{\todo[inline,color=green!40,caption={#2}]{#2}}{\todo[inline,color=green!40,caption={#1}]{#2}}}
%\newcommand{\note}[2][]{\ifthenelse{\isempty{#1}}{\todo[inline,color=blue!40,caption={#2}]{#2}}{\todo[inline,color=blue!40,caption={#1}]{#2}}}
%\newcommand{\addref}{\todo[color=red!40]{Add reference(s).}}
%%% packages that must be loaded last %%%
% control hyperlinks in the document
\usepackage{hyperref} % also loads "url" and "color"
% setup for hyperref package
\hypersetup{
colorlinks, % color links
%allcolors=ULlinkcolor, % set the color for all links
citecolor=green, % set the color for citations
filecolor=cyan, % set the color for files links
linkcolor=red, % set the color for document links
urlcolor=blue % set to color for URLs
}
% improved cross-referencing
\usepackage[noabbrev]{cleveref} % do not abbreviate cross-reference names
% change label for equations, figures and tables
%\crefname{equation}{}{}
%\crefname{figure}{Fig.}{Figs.}
%\creflabelformat{equation}{(#2#1#3)}
% create glossaries, symbols, acronyms, etc. (instead of acronym or nomentbl)
%\usepackage[xindy,acronym,nonumberlist,nosuper,notree,shortcuts,nohypertypes=]{glossaries}
% print the labels (add option "final" to disable)
%\usepackage[notref,notcite]{showkeys}
% create a list of necessary packages and files in the log file
%\listfiles
% NOTE: use "bundledoc" to create an archive with all the files needed