430 lines
11 KiB
TeX
430 lines
11 KiB
TeX
%% ------------------------------------------------------------------%
|
|
%% LANGUAGE, FONT, SIZE, GEOMETRY ENCODINGS
|
|
|
|
\usepackage[a4paper,
|
|
top=2cm,
|
|
bottom=2cm,
|
|
left=1.5cm,
|
|
right=1.5cm,
|
|
marginparwidth=1.75cm]{geometry} % Geometry
|
|
|
|
\usepackage[utf8]{inputenc}
|
|
\usepackage[T1]{fontenc}
|
|
\usepackage[english]{babel} % Language
|
|
\usepackage[german=swiss]{csquotes} % Quotation
|
|
\MakeAutoQuote{«}{»} % (Shift) + opt + ,
|
|
|
|
\usepackage{fontspec}
|
|
\usepackage{amsmath}
|
|
\usepackage{mathtools}
|
|
\usepackage[colon=literal]{unicode-math}
|
|
|
|
% Font Selection
|
|
\setmainfont{STIX Two Text}
|
|
\setmathfont{STIX Two Math}
|
|
|
|
\usepackage[skip=0pt, indent=0pt]{parskip}
|
|
\usepackage{enumitem}
|
|
%\setlength{\columnseprule}{0.5pt}
|
|
\setlength{\columnsep}{3em}
|
|
\setlist{leftmargin=1cm}
|
|
\renewcommand\labelitemi{--}
|
|
|
|
%% ------------------------------------------------------------------%
|
|
%% GRAPHICS PACKAGES
|
|
|
|
% graphics package and graphics paths
|
|
\usepackage{graphicx}
|
|
\graphicspath{{../graphics/charts/}{../graphics/postscript_figures/}{../graphics/raster_images/}{../config/logos/}{../config/titlepage/}}
|
|
|
|
%% ------------------------------------------------------------------%
|
|
%% PACKAGES
|
|
|
|
%\usepackage{amsfonts}
|
|
%\usepackage{amsmath}
|
|
%\usepackage{amssymb}
|
|
\usepackage{accents}
|
|
\usepackage{amsthm}
|
|
\usepackage{alphalph}
|
|
\usepackage[toc,page]{appendix}
|
|
\usepackage[affil-it]{authblk}
|
|
\usepackage[backend=biber,
|
|
style=authoryear,
|
|
citestyle=authoryear,
|
|
natbib,
|
|
maxcitenames=1,
|
|
maxbibnames=99,
|
|
doi=false,
|
|
isbn=false,
|
|
url=false,
|
|
eprint=false,
|
|
giveninits=true,
|
|
autocite=inline]{biblatex}
|
|
\usepackage{blindtext}
|
|
\usepackage{commath}
|
|
%\usepackage{dblfnote}
|
|
\usepackage{dirtree}
|
|
\usepackage{dirtytalk}
|
|
|
|
\usepackage{eso-pic}
|
|
|
|
\usepackage{etoolbox}
|
|
\usepackage{fancyhdr}
|
|
\usepackage{float}
|
|
\usepackage[record=hybrid, acronym, symbols, automake, indexcrossrefs=true, autoseeindex=true, stylemods={longextra}]{glossaries-extra}
|
|
\usepackage[colorlinks=true, linktoc=true, allcolors=black]{hyperref} % allcolors=black
|
|
\usepackage{imakeidx}
|
|
\usepackage{kantlipsum}
|
|
\usepackage{lastpage}
|
|
\usepackage[switch*, modulo]{lineno}
|
|
\usepackage{mathtools}
|
|
\usepackage[arrows=pgf-filled, version=4]{mhchem}
|
|
\usepackage{multicol}
|
|
\usepackage{nameref}
|
|
\usepackage{pdfpages}
|
|
\usepackage{pgfplots}
|
|
\usepackage{printlen}
|
|
\usepackage{setspace}
|
|
\usepackage[free-standing-units=true]{siunitx}
|
|
\usepackage[subrefformat=parens, labelformat=parens]{subcaption}
|
|
\renewcommand{\thesubfigure}{\alph{subfigure}}
|
|
\captionsetup[subfigure]{labelfont={normal, bf}}
|
|
|
|
\usepackage{scrwfile}
|
|
\usepackage{tabularray}
|
|
\usepackage{tikz}
|
|
\usepackage{tikz-3dplot}
|
|
\usepackage[breakable, many]{tcolorbox}
|
|
\usepackage[titles]{tocloft}
|
|
\usepackage{verbatim}
|
|
\usepackage{xcolor}
|
|
|
|
% Chemical equations and according setup: Needs to be loaded after \usepackage{mhchem}
|
|
\usepackage{chemmacros}
|
|
\chemsetup{
|
|
formula=mhchem,
|
|
reactions/tag-open=[R,
|
|
reactions/tag-close=]
|
|
}
|
|
|
|
\counterwithin{reaction}{section}
|
|
|
|
%% ------------------------------------------------------------------%
|
|
%% TITLE FORMAT
|
|
|
|
% Formatting author and affiliations
|
|
\renewcommand\Authfont{\Large\normalfont}
|
|
\renewcommand\Affilfont{\normalsize\normalfont}
|
|
|
|
\makeatletter
|
|
\renewcommand{\maketitle}{
|
|
\thispagestyle{empty}
|
|
|
|
\begin{minipage}[b]{0.3\textwidth}
|
|
\centering
|
|
\includegraphics[height=1.5cm]{ETH_Logo.pdf}
|
|
\end{minipage}
|
|
\hfill
|
|
\begin{minipage}[b]{0.3\textwidth}
|
|
\centering
|
|
\includegraphics[height=1.5cm]{iac_logo.pdf}
|
|
\end{minipage}
|
|
\hfill
|
|
\begin{minipage}[b]{0.3\textwidth}
|
|
\centering
|
|
\includegraphics[height=1.5cm]{PSI_Logo.pdf}
|
|
\end{minipage}
|
|
|
|
\vspace*{6cm}
|
|
|
|
\begin{flushleft}
|
|
\textsc{\@subject}
|
|
\end{flushleft}
|
|
|
|
\vspace*{-0.25cm}
|
|
|
|
\begin{flushleft}
|
|
\LARGE{\scshape{\@title}}
|
|
\end{flushleft}
|
|
|
|
\vspace*{-0.25cm}
|
|
|
|
\begin{flushleft}
|
|
\Large\textsc{\@subtitle}
|
|
\end{flushleft}
|
|
|
|
\vfill
|
|
|
|
\begin{flushleft}
|
|
\large\@author
|
|
\end{flushleft}
|
|
|
|
\vspace*{0.5cm}
|
|
|
|
\begin{flushleft}
|
|
\textnormal{Student-ID: 20-914-180}\\
|
|
\textnormal{E-Mail: }\href{mailto:datschan@student.ethz.ch}{\small\texttt{datschan@student.ethz.ch}}
|
|
\end{flushleft}
|
|
|
|
\vspace*{0.5cm}
|
|
|
|
\begin{flushleft}
|
|
\normalsize\textbf{Supervised By:}\\
|
|
|
|
\vspace*{0.25cm}
|
|
|
|
Prof. Dr. Markus Ammann\textsuperscript{2}\\
|
|
Nicole Carina Leemann\textsuperscript{2}\\
|
|
|
|
\vspace*{0.25cm}
|
|
|
|
\normalsize\normalfont{\textsuperscript{2}Laboratory of Atmospheric Chemistry,\linebreak{Paul Scherrer Institut PSI}}
|
|
\end{flushleft}
|
|
|
|
\vspace*{0.5cm}
|
|
|
|
\begin{flushleft}
|
|
\Large\@date
|
|
\end{flushleft}
|
|
|
|
\pagebreak
|
|
|
|
}\makeatother
|
|
|
|
%% ------------------------------------------------------------------%
|
|
%% FORMATTING
|
|
|
|
% Line Spacing
|
|
\renewcommand{\baselinestretch}{1.0}
|
|
|
|
% Numbering
|
|
\makeatletter
|
|
\newcommand{\@alphalph}{}
|
|
\let\@alphalph=\alphalph
|
|
\makeatother
|
|
\allowdisplaybreaks
|
|
|
|
% Tabularray Setup
|
|
\UseTblrLibrary{booktabs}
|
|
\DefTblrTemplate{caption-tag}{default}{\small\bfseries\scshape{Table \thetable}}
|
|
\DefTblrTemplate{caption-text}{default}{\small\InsertTblrText{caption}}
|
|
\DefTblrTemplate{caption-sep}{default}{\small\bfseries{:}\enskip}
|
|
\SetTblrStyle{foot}{font={\normalfont\small}}
|
|
\renewcommand\TblrOverlap[1]{#1}
|
|
%\setlength{\DTbaselineskip}{}
|
|
\SetTblrStyle{conthead-text}{font={\normalfont\small}}
|
|
|
|
% Section Title Formatting
|
|
\setkomafont{chapter}{\normalfont\Large\bfseries}
|
|
\setkomafont{chapterentry}{\normalfont\bfseries}
|
|
\setkomafont{subsection}{\normalfont\normalsize\bfseries}
|
|
\setkomafont{subsubsection}{\normalfont\normalsize\bfseries}
|
|
\setkomafont{captionlabel}{\normalfont\small\bfseries\scshape}
|
|
\setkomafont{caption}{\normalfont\small}
|
|
\renewcaptionname{english}{\figurename}{Figure }
|
|
\renewcaptionname{english}{\tablename}{Table }
|
|
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{proposal}}{}{}
|
|
|
|
% Formatting for TOC
|
|
\addtokomafont{disposition}{\rmfamily}
|
|
|
|
|
|
% Roman Numbers
|
|
\newcommand{\toRoman}[1]{\MakeUppercase{\romannumeral #1}}
|
|
|
|
% SI unit and SI settings (siunitx)
|
|
\DeclareSIUnit\amu{u}
|
|
\DeclareSIUnit\bar{bar}
|
|
\DeclareSIUnit\year{yr}
|
|
\DeclareSIUnit\month{m}
|
|
\DeclareSIUnit\week{w}
|
|
\DeclareSIUnit\day{d}
|
|
\DeclareSIUnit\ppm{ppm}
|
|
\DeclareSIUnit\ppb{ppb}
|
|
\DeclareSIUnit\ppt{ppt}
|
|
\DeclareSIUnit\pptv{pptv}
|
|
\DeclareSIUnit\atm{atm}
|
|
\DeclareSIUnit\Molar{M}
|
|
\DeclareSIUnit\gramCarbon{g\ce{C}}
|
|
\DeclareSIUnit\permille{\text{\textperthousand}}
|
|
\sisetup{separate-uncertainty, multi-part-units=single, range-units=single, range-phrase=\ensuremath{\ldots}}
|
|
|
|
% Bibliogrpahy Format
|
|
\AtBeginBibliography{\small}
|
|
\AtEveryBibitem{\clearfield{note}}
|
|
|
|
% Header and Footer Setup
|
|
\fancypagestyle{mainbody}{
|
|
\fancyhead[RO, LE]{D. Tschan}
|
|
\fancyhead[LO, RE]{\textit\leftmark}
|
|
\fancyfoot[RO, LE]{\thepage\text{ of }\pageref{LastPage}}
|
|
\fancyfoot[CO, CE]{}
|
|
\fancyfoot[LO, RE]{\textit\rightmark}
|
|
}
|
|
|
|
\fancypagestyle{proposal}{
|
|
\fancyhead[RO, LE]{D. Tschan}
|
|
\fancyhead[LO, RE]{D-USYS Master Thesis Proposal}
|
|
\fancyfoot[RO, LE]{\thepage\text{ of }\pageref{LastPage}}
|
|
\fancyfoot[CO, CE]{}
|
|
\fancyfoot[LO, RE]{\textit\leftmark}
|
|
}
|
|
|
|
% Dirtree Setup
|
|
\newcommand\mydirtree[1]{{\ttfamily\small\dirtree{#1}\par}}
|
|
|
|
%% ------------------------------------------------------------------%
|
|
%% GLOSSARIES SETUP
|
|
|
|
% Create new glossary type
|
|
\newglossary*{species}{species}
|
|
|
|
% Compile the glossaries
|
|
\makeglossaries
|
|
\makeindex[options=-s ../main/index.ist, name=main, intoc, columns=3]
|
|
|
|
% Also adds the actual entry in the glossary to the index
|
|
\glssetcategoryattribute{main}{indexname}{textbf}
|
|
\glssetcategoryattribute{main}{dualindex}{true}
|
|
|
|
% Formatting command...
|
|
\GlsXtrEnableIndexFormatOverride
|
|
|
|
% Prevents character escaping
|
|
\renewcommand*{\glsxtrautoindexesc}{}
|
|
|
|
% Sets the correct sorting in the index
|
|
\renewcommand*{\glsxtrautoindexentry}[1]{\string\glsentryuseri{#1}}
|
|
\renewcommand*{\glsxtrautoindexassignsort}[2]{%
|
|
\glsletentryfield{#1}{#2}{user1}%
|
|
}
|
|
|
|
% Sets the correct sorting in the index
|
|
\renewcommand*{\glsxtrautoindexassignsort}[2]{%
|
|
\ifglshasshort{#2}%
|
|
{\glsletentryfield{#1}{#2}{sort}}%
|
|
{\glsletentryfield{#1}{#2}{sort}}%
|
|
}
|
|
|
|
\indexsetup{firstpagestyle=mainbody}
|
|
|
|
%% SYMBOLS
|
|
|
|
% Add glossary key 'unit' and 'formula'
|
|
\glsaddkey{unit}{}{\glsentryunit}{\Glsentryunit}{\glsunit}{\Glsunit}{\GLSunit}
|
|
\glsxtrprovidestoragekey{formula}{}{\Formula}
|
|
|
|
\GlsXtrLoadResources[
|
|
src={../config/symbols}, % data in symbols.bib
|
|
sort-field={desc}, % sort by name field
|
|
sort={letter-nocase}, % case-insensitive letter sort
|
|
type=symbols, % put these terms in the symbols list
|
|
field-aliases={unit=symbol}, % convert unit key to symbol
|
|
save-locations=false % don't save location lists
|
|
]
|
|
|
|
%% CHEMICAL SPECIES
|
|
|
|
% \glsaddkey{formula}{}{\glsentryformula}{\Glsentryformula}{\glsformula}{\Glsformula}{\GLSformula}
|
|
|
|
\GlsXtrLoadResources[
|
|
src={../config/species}, % data in symbols.bib
|
|
sort-field={desc}, % sort by name field
|
|
sort={letter-nocase}, % case-insensitive letter sort
|
|
type=species, % put these terms in the symbols list
|
|
field-aliases={formula=symbol}, % convert unit key to symbol
|
|
save-locations=false % don't save location lists
|
|
]
|
|
|
|
|
|
% Enable hyperlinks for glossary
|
|
\glsenablehyper
|
|
|
|
%% ------------------------------------------------------------------%
|
|
%% THEOREMS AND ENVIRONMENTS
|
|
|
|
% General modifications
|
|
|
|
\renewcommand{\qedsymbol}{\ensuremath{\blacksquare}}
|
|
|
|
% Color definitions
|
|
|
|
\definecolor{color_box}{HTML}{EEEEEE}
|
|
\definecolor{color_box_lower}{HTML}{DDDDDD}
|
|
\definecolor{definition_color_title}{HTML}{C63B3B}
|
|
\definecolor{example_color_title}{HTML}{005B2F}
|
|
\definecolor{theorem_color_title}{HTML}{AD4CBB}
|
|
\definecolor{law_color_title}{HTML}{4C84BB}
|
|
|
|
% Definitions
|
|
|
|
\newcounter{def_custom}
|
|
\newtcolorbox[use counter=def_custom,
|
|
number within=section]
|
|
{definition_custom}[2]{
|
|
skin=bicolor,
|
|
breakable=true,
|
|
arc=0mm,
|
|
boxrule=0pt,
|
|
colback=color_box,
|
|
colframe=definition_color_title,
|
|
label={#2},
|
|
title={\textcolor{white}{Definition~\thetcbcounter:\enskip\bfseries\itshape{#1}}},
|
|
segmentation style={draw=none},
|
|
colbacklower=color_box_lower
|
|
}
|
|
|
|
% Examples
|
|
|
|
\newcounter{example_custom}
|
|
\newtcolorbox[use counter=example_custom,
|
|
number within=section]
|
|
{example_custom}[2]{
|
|
skin=bicolor,
|
|
breakable=true,
|
|
arc=0mm,
|
|
boxrule=0pt,
|
|
colback=color_box,
|
|
colframe=example_color_title,
|
|
label={#2},
|
|
title={\textcolor{white}{Example~\thetcbcounter:\enskip\bfseries\itshape{#1}}},
|
|
segmentation style={draw=none},
|
|
colbacklower=color_box_lower
|
|
}
|
|
|
|
% theorems
|
|
|
|
\newcounter{theorem_custom}
|
|
\newtcolorbox[use counter=theorem_custom,
|
|
number within=section]
|
|
{theorem_custom}[2]{
|
|
skin=bicolor,
|
|
breakable=true,
|
|
arc=0mm,
|
|
boxrule=0pt,
|
|
colback=color_box,
|
|
colframe=theorem_color_title,
|
|
label={#2},
|
|
title={\textcolor{white}{Theorem~\thetcbcounter:\enskip\bfseries\itshape{#1}}},
|
|
segmentation style={draw=none},
|
|
colbacklower=color_box_lower
|
|
}
|
|
|
|
% Law
|
|
|
|
\newcounter{law_custom}
|
|
\newtcolorbox[use counter=law_custom,
|
|
number within=section]
|
|
{law_custom}[2]{
|
|
skin=bicolor,
|
|
breakable=true,
|
|
arc=0mm,
|
|
boxrule=0pt,
|
|
colback=color_box,
|
|
colframe=law_color_title,
|
|
label={#2},
|
|
title={\textcolor{white}{Law~\thetcbcounter:\enskip\bfseries\itshape{#1}}},
|
|
segmentation style={draw=none},
|
|
colbacklower=color_box_lower
|
|
}
|