masters-thesis

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c59d0d4628a09e1d0787468bba952ce168609859
parent 48d9222e0ee4c1da83778b985381ada380c69df7
Author: Silas Brack <s174433@student.dtu.dk>
Date:   Mon,  2 Jan 2023 18:24:47 +0100

Small changes.

Diffstat:
MMakefile | 2+-
Mcompileall.sh | 32++++++++++++++++++--------------
Alatexmkrc | 23+++++++++++++++++++++++
Mmain.bib | 15+++++++++++++--
Mmain.tex | 84++++++++++++-------------------------------------------------------------------
5 files changed, 67 insertions(+), 89 deletions(-)

diff --git a/Makefile b/Makefile @@ -11,7 +11,7 @@ $(root).pdf: $(root).tex clean: rm -rf `biber --cache` rm -rf _minted-$(root) - latexmk -bibtex -CA + latexmk -CA find . -name \*.aux -type f -delete rm -f $(root).run.xml $(root).nlg $(root).nlo $(root).nls $(root).glo $(root).loa $(root).mw $(root).xdy indent.log diff --git a/compileall.sh b/compileall.sh @@ -1,22 +1,26 @@ #!/bin/bash -# Compile document -pdflatex -interaction=nonstopmode main +latexmk -# Compile nomenclature -makeindex main.nlo -s nomencl.ist -o main.nls +# -------------------------------------------------- -# Compile index -makeindex main +# # Compile document +# pdflatex -interaction=nonstopmode main -# Compile bibliography -biber main +# # Compile nomenclature +# makeindex main.nlo -s nomencl.ist -o main.nls -# Compile document -pdflatex main +# # Compile index +# makeindex main -# Compile glossary -makeglossaries main +# # Compile bibliography +# biber main -# Compile document -pdflatex main +# # Compile document +# pdflatex main + +# # Compile glossary +# makeglossaries main + +# # Compile document +# pdflatex main diff --git a/latexmkrc b/latexmkrc @@ -0,0 +1,23 @@ +# By default compile only the file called 'main.tex' +@default_files = ('main.tex'); + +$pdf_mode = 1; +$pdflatex = "pdflatex --shell-escape %O %S"; + +# Compile the glossary and acronyms list (package 'glossaries') +add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' ); +add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' ); +$clean_ext .= " acr acn alg glo gls glg"; +sub makeglossaries { + my ($base_name, $path) = fileparse( $_[0] ); + pushd $path; + my $return = system "makeglossaries", $base_name; + popd; + return $return; +} + +# Compile the nomenclature (package 'nomencl') +add_cus_dep( 'nlo', 'nls', 0, 'makenlo2nls' ); +sub makenlo2nls { + system("makeindex -s nomencl.ist -o \"$_[0].nls\" \"$_[0].nlo\""); +} diff --git a/main.bib b/main.bib @@ -173,6 +173,17 @@ year = {2018} } +@article{hale2008computing, + title = {Computing A\^{}$\alpha$,$\backslash$log(A), and related matrix functions by contour integrals}, + author = {Hale, Nicholas and Higham, Nicholas J and Trefethen, Lloyd N}, + journal = {SIAM Journal on Numerical Analysis}, + volume = {46}, + number = {5}, + pages = {2505--2523}, + year = {2008}, + publisher = {SIAM} +} + @article{harbrecht2012low, title = {On the low-rank approximation by the pivoted Cholesky decomposition}, author = {Harbrecht, Helmut and Peters, Michael and Schneider, Reinhold}, @@ -228,6 +239,8 @@ year = {2015} } +% ------------------------------------------------------------------------- + @article{krizhevsky2009learning, title = {Learning multiple layers of features from tiny images}, author = {Krizhevsky, Alex and Hinton, Geoffrey and others}, @@ -235,8 +248,6 @@ publisher = {Citeseer} } -% ------------------------------------------------------------------------- - @article{kunstner2019limitations, title = {Limitations of the empirical Fisher approximation for natural gradient descent}, author = {Kunstner, Frederik and Hennig, Philipp and Balles, Lukas}, diff --git a/main.tex b/main.tex @@ -24,14 +24,7 @@ % PACKAGES AND OTHER DOCUMENT CONFIGURATIONS %---------------------------------------------------------------------------------------- -\documentclass[ - a4paper, % Page size - fontsize=10pt, % Base font size - twoside=true, % Use different layouts for even and odd pages (in particular, if twoside=true, the margin column will be always on the outside) - %open=any, % If twoside=true, uncomment this to force new chapters to start on any page, not only on right (odd) pages - %chapterentrydots=true, % Uncomment to output dots from the chapter name to the page number in the table of contents - numbers=noenddot, % Comment to output dots after chapter numbers; the most common values for this option are: enddot, noenddot and auto (see the KOMAScript documentation for an in-depth explanation) -]{kaobook} +\documentclass{kaobook} % Choose the language \ifxetexorluatex @@ -67,8 +60,6 @@ \usepgfplotslibrary{groupplots,dateplot} \usetikzlibrary{patterns,shapes.arrows,plotmarks,angles,quotes} \pgfplotsset{compat=newest} -\def\figurewidth{147pt} -\def\figureheight{147pt} \usepackage{xcolor} \colorlet{vcol}{green!70!black} @@ -78,12 +69,11 @@ \tikzstyle{vector}=[->,very thick,xcol] \tikzstyle{mydashed}=[dash pattern=on 2pt off 2pt] \newcommand{\tick}[2]{\draw[thick] (#1) ++ (#2:0.1) --++ (#2-180:0.2)} %0.03*\xmax -% \newcommand{\tick}[2]{\draw[thick, line width=0.75mm] (#1) ++ (#2:0.1) --++ (#2-180:0.2)} %0.03*\xmax \input{macros.tex} -\graphicspath{{examples/documentation/figures/}{figures/}} % Paths in which to look for images +\graphicspath{{figures/}{./}} \makeindex[columns=3, title=Alphabetical Index, intoc] % Make LaTeX produce the files required to compile the index @@ -290,50 +280,19 @@ \defbibnote{bibnote}{Here are the references in citation order.\par\bigskip} % Prepend this text to the bibliography \printbibliography[heading=bibintoc, title=Bibliography, prenote=bibnote] % Add the bibliography heading to the ToC, set the title of the bibliography and output the bibliography note -% %---------------------------------------------------------------------------------------- -% % NOMENCLATURE -% %---------------------------------------------------------------------------------------- - -% % The nomenclature needs to be compiled on the command line with 'makeindex main.nlo -s nomencl.ist -o main.nls' from the template directory - -% \nomenclature{$c$}{Speed of light in a vacuum inertial frame} -% \nomenclature{$h$}{Planck constant} +%---------------------------------------------------------------------------------------- +% NOMENCLATURE +%---------------------------------------------------------------------------------------- -% \renewcommand{\nomname}{Notation} % Rename the default 'Nomenclature' -% \renewcommand{\nompreamble}{The next list describes several symbols that will be later used within the body of the document.} % Prepend this text to the nomenclature +% The nomenclature needs to be compiled on the command line with 'makeindex main.nlo -s nomencl.ist -o main.nls' from the template directory -% \printnomenclature % Output the nomenclature +\nomenclature{$c$}{Speed of light in a vacuum inertial frame} +\nomenclature{$h$}{Planck constant} -% %---------------------------------------------------------------------------------------- -% % GREEK ALPHABET -% % Originally from https://gitlab.com/jim.hefferon/linear-algebra -% %---------------------------------------------------------------------------------------- +\renewcommand{\nomname}{Notation} % Rename the default 'Nomenclature' +\renewcommand{\nompreamble}{The next list describes several symbols that will be later used within the body of the document.} % Prepend this text to the nomenclature -% \vspace{1cm} - -% {\usekomafont{chapter}Greek Letters with Pronunciations} -% \begin{center} -% \newcommand{\pronounced}[1]{\hspace*{.2em}\small\textit{#1}} -% \begin{tabular}{l l @{\hspace*{3em}} l l} -% \toprule -% Character & Name & Character & Name \\ -% \midrule -% $\alpha$ & alpha \pronounced{AL-fuh} & $\nu$ & nu \pronounced{NEW} \\ -% $\beta$ & beta \pronounced{BAY-tuh} & $\xi$, $\Xi$ & xi \pronounced{KSIGH} \\ -% $\gamma$, $\Gamma$ & gamma \pronounced{GAM-muh} & o & omicron \pronounced{OM-uh-CRON} \\ -% $\delta$, $\Delta$ & delta \pronounced{DEL-tuh} & $\pi$, $\Pi$ & pi \pronounced{PIE} \\ -% $\varepsilon$ & epsilon \pronounced{EP-suh-lon} & $\rho$ & rho \pronounced{ROW} \\ -% $\zeta$ & zeta \pronounced{ZAY-tuh} & $\sigma$, $\Sigma$ & sigma \pronounced{SIG-muh} \\ -% $\eta$ & eta \pronounced{AY-tuh} & $\tau$ & tau \pronounced{TOW (as in cow)} \\ -% $\theta$, $\Theta$ & theta \pronounced{THAY-tuh} & $\upsilon$, $\Upsilon$ & upsilon \pronounced{OOP-suh-LON} \\ -% $\iota$ & iota \pronounced{eye-OH-tuh} & $\phi$, $\Phi$ & phi \pronounced{FEE, or FI (as in hi)} \\ -% $\kappa$ & kappa \pronounced{KAP-uh} & $\chi$ & chi \pronounced{KI (as in hi)} \\ -% $\lambda$, $\Lambda$ & lambda \pronounced{LAM-duh} & $\psi$, $\Psi$ & psi \pronounced{SIGH, or PSIGH} \\ -% $\mu$ & mu \pronounced{MEW} & $\omega$, $\Omega$ & omega \pronounced{oh-MAY-guh} \\ -% \bottomrule -% \end{tabular} \\[1.5ex] -% Capitals shown are the ones that differ from Roman capitals. -% \end{center} +\printnomenclature % Output the nomenclature %---------------------------------------------------------------------------------------- % GLOSSARY @@ -341,29 +300,10 @@ % The glossary needs to be compiled on the command line with 'makeglossaries main' from the template directory +\glsaddall % Comment if you want to mention glossary entries in the text \setglossarystyle{listgroup} % Set the style of the glossary (see https://en.wikibooks.org/wiki/LaTeX/Glossary for a reference) \printglossary[title=Special Terms, toctitle=List of Terms] % Output the glossary, 'title' is the chapter heading for the glossary, toctitle is the table of contents heading % %---------------------------------------------------------------------------------------- -% % INDEX -% %---------------------------------------------------------------------------------------- - -% % The index needs to be compiled on the command line with 'makeindex main' from the template directory - -% \printindex % Output the index - -% %---------------------------------------------------------------------------------------- -% % BACK COVER -% %---------------------------------------------------------------------------------------- - -% % If you have a PDF/image file that you want to use as a back cover, uncomment the following lines - -% %\clearpage -% %\thispagestyle{empty} -% %\null% -% %\clearpage -% %\includepdf{cover-back.pdf} - -% %---------------------------------------------------------------------------------------- \end{document}