|
|
\documentclass[12pt,titlepage,twoside]{article} \usepackage[table]{xcolor} %For colored tables
\usepackage{graphicx} \usepackage{lscape} \usepackage{epstopdf} \usepackage{wrapfig} \usepackage{amsmath, amsthm, amssymb} \usepackage{amsfonts} \usepackage[cp1250]{inputenc} \usepackage[ngerman, english]{babel} \selectlanguage{english} \usepackage{nomencl} \makenomenclature \usepackage{setspace} \usepackage[figurename=Fig.,tablename=Tab.]{caption} \usepackage{subfig} \usepackage[toc,page]{appendix} \usepackage{fancyhdr} \usepackage{listings} \usepackage{pdfpages} \usepackage{feynmp} %Feynman diagrams
\usepackage{xfrac} %Pretty fractions
\usepackage{multirow} %Fancy tables
\usepackage{lmodern} %Fixes problems with sizes
\usepackage{threeparttable} %Footnotes in tables
\usepackage{multicol} \usepackage{enumitem}%for indents
\usepackage{upgreek} %For bold greek stuff
\usepackage[absolute,overlay]{textpos} %textbox
\usepackage[a4paper,top = 2cm, bottom = 2cm, outer=3 cm, inner = 3cm]{geometry} \usepackage{hyperref} %Hyperref should be always last. Unless it is cleverref
\usepackage{cleveref}
%\usepackage{subfigure}
\graphicspath{{./figures/}} \pdfminorversion=6 %Set minimal pdf version
%Make sure that there are now widow/orphan lines, or at least make it improbable
%\widowpenalty10000
%\clubpenalty10000
%=====================================================
%
% Set list of abbreviations
%
%=====================================================
%\usepackage{stdpage}
\let\abbrev\nomenclature \renewcommand{\nomname}{List of Abbreviations} \setlength{\nomlabelwidth}{0.48\textwidth} \renewcommand{\nomlabel}[1]{#1 \dotfill} \setlength{\nomitemsep}{.1cm} \makenomenclature \newcommand{\listofabbrev}{ \setlength{\nomitemsep}{-\parsep} \printnomenclature \newpage }
%=====================================================
%
% My margin settings
%
%=====================================================
%\hoffset -1.54cm
%\voffset -0.04pt
%\evensidemargin 3 cm
%\oddsidemargin 2 cm
\topmargin -.5cm \textheight 217mm %\textwidth 165mm
%=====================================================
%
% My bibliography settings
%
%=====================================================
\usepackage{mciteplus} \bibliographystyle{References/lhcb} \mciteErrorOnUnknownfalse %=====================================================
%
% My paragraph settings
%
%=====================================================
% Instead of subsubsubparagraph; not including in the table of content, needed to press enter, otherwise it won't generate the number!
\usepackage{titlesec} \setcounter{secnumdepth}{4} \titleformat{\paragraph} {\normalfont\small\bfseries}{\theparagraph}{1em}{} \titlespacing*{\paragraph} {0pt}{1.0ex plus 0ex minus -.5ex}{0.0ex plus 0.0ex} %{\normalfont\normalsize\bfseries\itshape}
%***********************************
%=====================================================
%
% TO DO setings
%
%=====================================================
\usepackage[colorinlistoftodos,prependcaption,textsize=small]{todonotes} %Imported from David's thesis, possibly change
\newcommand{\todored}[2][1=]{\todo[linecolor=red,backgroundcolor=red!25,bordercolor=red,#1]{#2}} \newcommand{\todoblue}[2][1=]{\todo[linecolor=blue,backgroundcolor=blue!25,bordercolor=blue,#1]{#2}} \newcommand{\todoFill}[2][1=]{\todo[linecolor=olive,backgroundcolor=olive!25,bordercolor=olive,#1]{#2}} \newcommand{\todopurple}[2][1=]{\todo[linecolor=Plum,backgroundcolor=Plum!25,bordercolor=Plum,#1]{#2}} \newcommand{\todoAddCitation}[1]{\todo[linecolor=brightturquoise, backgroundcolor=brightturquoise!25, bordercolor=brightturquoise, inline, inlinewidth=4cm, noinlinepar]{#1}} \newcommand{\thiswillnotshow}[2][1=]{\todo[disable,#1]{#2}}
%=====================================================
%
% My caption settings
%
%=====================================================
\captionsetup[table]{font={stretch=1.0, small},indention=0.0em,labelfont=bf} %% change 1.2 as you like
\captionsetup[figure]{font={stretch=1.0, small},indention=0.0em,labelfont=bf} %\addto\captionsenglish{\renewcommand{\figurename}{Fig.}}
%\addto\captions{\renewcommand{\tablename}{Tab.}}
%\renewcommand{\bibname}{\section*{References}}
%\setlength{\belowcaptionskip}{0pt} %Sets only the skip below caption
\setlength\intextsep{20pt} %Sets spacing between any floats, so both figs and tables
%=====================================================
%
% My referencing
%
%=====================================================
\usepackage{chngcntr} %Numbering of figures etc based on the section
\counterwithin{figure}{section} \counterwithin{table}{section} \counterwithin{equation}{section} \newcommand\refFig[1]{Fig.\,\ref{fig:#1}} \newcommand\refTab[1]{Tab.\,\ref{tab:#1}} \newcommand\refSec[1]{Sec.\,\ref{sec:#1}} \newcommand\refEq[1]{Eq.\,\ref{eq:#1}} \newcommand\refApp[1]{App.\,\ref{app:#1}}
\hypersetup{pageanchor=false} %=====================================================
%
% Import color definitions
%
%=====================================================
\input{Formatting/colors} \input{Formatting/FancyColors}
%This is dumb but it works so
\colorlet{oneSigma}{BriGreen!75!white} \colorlet{twoSigmas}{LigOlive!70!white} \colorlet{threeSigmas}{LigYellow!70!white} \colorlet{moreSigmas}{BriRed!70!white} \def\cellOneSigma {\cellcolor{oneSigma}} \def\cellTwoSigmas {\cellcolor{twoSigmas}} \def\cellThreeSigmas {\cellcolor{threeSigmas}} \def\cellMoreSigmas {\cellcolor{moreSigmas}}
%=====================================================
%s
% My frequently used symbols settings
%
%=====================================================
\input{Formatting/lhcb-symbols-def} \input{Formatting/my_symbols}
%=====================================================
%
% Table settings
%
%=====================================================
\usepackage{array} \newcolumntype{x}[1]{>{\centering\arraybackslash\hspace{0pt}}p{#1}}
%=====================================================
%
% Hyphenation
%
%=====================================================
\hyphenation{non-factor-izable}
|