This repository contains an updated version of the UMN PhD Thesis Template.
On Ubuntu 14.04 you will need to enable the universe repository. You can do
this by opening the "Ubuntu Software Center", then following "Edit > Software
Sources > Ubuntu Software Tab > check the box for 'Community-maintained free
and open-source software (universe)'", or by running the code below:
# Enable the univerese repo
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"You can then install the packages needed to compile the template:
# Install the required packages
sudo apt-get install \
texlive-latex-base \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-pictures \
texlive-science \cleveref is a package designed
to make cross referencing easier. Unlike \ref, \cref automatically adds
the prefix required for the object being referenced. For example,
\cref{fig:my_fig} will produce text like "figure 1" whereas
\ref{fig:my_fig} would simply produce "1" and require you to fill in the
"figure".
Additionally, cleveref can handle multiple references at once.
\cref{fig:my_fig,fig:my_fig2} produces "figures 1 and 2".
In the main thesis file, the following is set:
\newcommand{\creflastconjunction}{, and } % Always use the serial commaThis includes the serial comma in lists, so that
\cref{fig:my_fig,fig:my_fig2,fig_other_fig} produces "figures 1, 2, and 3"
instead of "figures 1, 2 and 3".
Additionally, the package is passed the option noabbrev which causes it to
print the full prefix instead of an abbreviation ("figure" vs "fig.").
SIunitx formats SI units. It
provides the \SI{} command, which is used as follows:
\SI{3.8}{\tesla}
\SI{14}{\kilo\tonne}
\SI{14.6}{\meter\squared}
\SI{8}{\tera\eV}There are various abbreviations for units (such as \SI{8}{\TeV}) and the
formatting of the numbers can be controlled in detail. Additionally, it
provides \SIrange{1}{5}{\meter} which produces "1m to 5m" and
\SIlist{1;2;3}{\kelvin} which produces "1K, 2K, and 3K".
The package also provides \num{12345} which will format numbers (just like
\SI) but without adding units. The previous example produces "12,345" for
instance.
In the main thesis file, the following default options are set:
% Configure the siunitx package
\sisetup{
group-separator = {,}, % Use , to separate groups of digits, like 12,345
list-final-separator = {, and } % Always use the serial comma in \SIlist
}group-separator makes the package separate groups of digits with commas (so
12,345.0), and list-final-separator uses the serial comma in lists ("1K, 2K,
and 3K", not "1K, 2K and 3K").
The way in which units are displayed can also be redefined, as has been done
\electronvolt in the macros file:
% Define a better looking eV by moving the V slightly left
\DeclareSIUnit\electronvolt{e\hspace{-0.08em}V}booktabs adds options to make
nicer tables. It defines \toprule, \midrule, and \bottomrule which add
rules of varying thickness and with additional vertical space.
An example table using these commands is shown below. The @{} removes extra
space on the end of the tables (so that the rules start and end flush with the
text instead of hanging over) and the \spacerows{1.2} command is defined in
the macros file and adds extra space between the rows.
\begin{table}[h]
\centering
\spacerows{1.2}
\begin{center}
\begin{tabular}{@{}l r@{}}
\toprule
Mode & Fraction $\left( \Gamma_{i} / \Gamma \right)$ \\
\midrule
$\Ztoqq$ & $69.91 \pm 0.06\%$ \\
$\Ztoee$ & $3.363 \pm 0.004\%$ \\
$\Ztomumu$ & $3.366 \pm 0.007\%$ \\
$\Ztotautau$ & $3.370 \pm 0.008\%$ \\
$\Ztonunu$ & $20.00 \pm 0.06\%$ \\
\bottomrule
\end{tabular}
\caption{
Selected decay modes of the Z boson.
}
\label{table:z_decays}
\end{center}
\end{table}