From 0c14a1af00266f49753dd603bbc890ade477b480 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Mon, 29 Jun 2026 20:19:50 +0200 Subject: [PATCH] Update subfiles document structure --- .../00_00_abstract.tex} | 4 +- .../01_00_introduction.tex} | 4 +- .../02_00_related_work.tex} | 4 +- .../03_00_experiment_design.tex} | 4 +- chapters/04_experiment_setup.tex | 8 ---- .../04_00_experiment_setup.tex | 11 +++++ .../04_01_wamr_baremetal.tex | 13 ++++++ .../04_02_wasm_host_program.tex | 14 +++++++ .../05_00_results.tex} | 4 +- .../06_00_discussion.tex} | 4 +- .../07_00_conclusion.tex} | 4 +- chapters/{ => examples}/examples.tex | 8 ++-- .../examples/figures}/example.svg | 0 .../examples/listings}/example.cpp | 0 chapters/template.tex | 8 ++++ preamble.tex | 42 +++++++++++-------- thesis.tex | 23 +++++----- 17 files changed, 100 insertions(+), 55 deletions(-) rename chapters/{00_abstract.tex => 00_abstract/00_00_abstract.tex} (93%) rename chapters/{01_introduction.tex => 01_introduction/01_00_introduction.tex} (54%) rename chapters/{02_related_work.tex => 02_related_work/02_00_related_work.tex} (53%) rename chapters/{03_experiment_design.tex => 03_experiment_design/03_00_experiment_design.tex} (56%) delete mode 100644 chapters/04_experiment_setup.tex create mode 100644 chapters/04_experiment_setup/04_00_experiment_setup.tex create mode 100644 chapters/04_experiment_setup/04_01_wamr_baremetal.tex create mode 100644 chapters/04_experiment_setup/04_02_wasm_host_program.tex rename chapters/{05_results.tex => 05_results/05_00_results.tex} (50%) rename chapters/{06_discussion.tex => 06_discussion/06_00_discussion.tex} (52%) rename chapters/{07_conclusion.tex => 07_conclusion/07_00_conclusion.tex} (52%) rename chapters/{ => examples}/examples.tex (77%) rename {figures => chapters/examples/figures}/example.svg (100%) rename {listings => chapters/examples/listings}/example.cpp (100%) create mode 100644 chapters/template.tex diff --git a/chapters/00_abstract.tex b/chapters/00_abstract/00_00_abstract.tex similarity index 93% rename from chapters/00_abstract.tex rename to chapters/00_abstract/00_00_abstract.tex index 32d6697..ffe1cdf 100644 --- a/chapters/00_abstract.tex +++ b/chapters/00_abstract/00_00_abstract.tex @@ -1,5 +1,5 @@ -\documentclass[thesis.tex]{subfiles} -\graphicspath{figures} +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} \begin{document} diff --git a/chapters/01_introduction.tex b/chapters/01_introduction/01_00_introduction.tex similarity index 54% rename from chapters/01_introduction.tex rename to chapters/01_introduction/01_00_introduction.tex index ba527b2..26df2b7 100644 --- a/chapters/01_introduction.tex +++ b/chapters/01_introduction/01_00_introduction.tex @@ -1,5 +1,5 @@ -\documentclass[thesis.tex]{subfiles} -\graphicspath{figures} +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} \begin{document} diff --git a/chapters/02_related_work.tex b/chapters/02_related_work/02_00_related_work.tex similarity index 53% rename from chapters/02_related_work.tex rename to chapters/02_related_work/02_00_related_work.tex index 436a49c..c999676 100644 --- a/chapters/02_related_work.tex +++ b/chapters/02_related_work/02_00_related_work.tex @@ -1,5 +1,5 @@ -\documentclass[thesis.tex]{subfiles} -\graphicspath{figures} +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} \begin{document} diff --git a/chapters/03_experiment_design.tex b/chapters/03_experiment_design/03_00_experiment_design.tex similarity index 56% rename from chapters/03_experiment_design.tex rename to chapters/03_experiment_design/03_00_experiment_design.tex index ca492e8..2efe278 100644 --- a/chapters/03_experiment_design.tex +++ b/chapters/03_experiment_design/03_00_experiment_design.tex @@ -1,5 +1,5 @@ -\documentclass[thesis.tex]{subfiles} -\graphicspath{figures} +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} \begin{document} diff --git a/chapters/04_experiment_setup.tex b/chapters/04_experiment_setup.tex deleted file mode 100644 index c1ae190..0000000 --- a/chapters/04_experiment_setup.tex +++ /dev/null @@ -1,8 +0,0 @@ -\documentclass[thesis.tex]{subfiles} -\graphicspath{figures} - -\begin{document} - -\chapter{Experiment Setup}\label{ch:experimentsetup} - -\end{document} diff --git a/chapters/04_experiment_setup/04_00_experiment_setup.tex b/chapters/04_experiment_setup/04_00_experiment_setup.tex new file mode 100644 index 0000000..9e74b70 --- /dev/null +++ b/chapters/04_experiment_setup/04_00_experiment_setup.tex @@ -0,0 +1,11 @@ +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} + +\begin{document} + +\chapter{Experiment Setup}\label{ch:experimentsetup} + +\subfile{04_01_wamr_baremetal.tex} +\subfile{04_02_wasm_host_program.tex} + +\end{document} diff --git a/chapters/04_experiment_setup/04_01_wamr_baremetal.tex b/chapters/04_experiment_setup/04_01_wamr_baremetal.tex new file mode 100644 index 0000000..9c07930 --- /dev/null +++ b/chapters/04_experiment_setup/04_01_wamr_baremetal.tex @@ -0,0 +1,13 @@ +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} + +\begin{document} + +\section{WAMR Baremetal Platform}\label{sec:wamrbaremetal} + +\begin{itemize} + \item Cross-compiler issues + \item Which platform functions? +\end{itemize} + +\end{document} diff --git a/chapters/04_experiment_setup/04_02_wasm_host_program.tex b/chapters/04_experiment_setup/04_02_wasm_host_program.tex new file mode 100644 index 0000000..d71e45d --- /dev/null +++ b/chapters/04_experiment_setup/04_02_wasm_host_program.tex @@ -0,0 +1,14 @@ +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} + +\begin{document} + +\section{Wasm Host Program}\label{sec:wasmhost} + +\begin{itemize} + \item WAMR setup + \item Calling \code{FAIL\_MARKER}s + \item WAMR exception handler marker? +\end{itemize} + +\end{document} diff --git a/chapters/05_results.tex b/chapters/05_results/05_00_results.tex similarity index 50% rename from chapters/05_results.tex rename to chapters/05_results/05_00_results.tex index 48521b0..d2c7c9c 100644 --- a/chapters/05_results.tex +++ b/chapters/05_results/05_00_results.tex @@ -1,5 +1,5 @@ -\documentclass[thesis.tex]{subfiles} -\graphicspath{figures} +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} \begin{document} diff --git a/chapters/06_discussion.tex b/chapters/06_discussion/06_00_discussion.tex similarity index 52% rename from chapters/06_discussion.tex rename to chapters/06_discussion/06_00_discussion.tex index 152a87c..91be6da 100644 --- a/chapters/06_discussion.tex +++ b/chapters/06_discussion/06_00_discussion.tex @@ -1,5 +1,5 @@ -\documentclass[thesis.tex]{subfiles} -\graphicspath{figures} +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} \begin{document} diff --git a/chapters/07_conclusion.tex b/chapters/07_conclusion/07_00_conclusion.tex similarity index 52% rename from chapters/07_conclusion.tex rename to chapters/07_conclusion/07_00_conclusion.tex index 545f830..645ffd0 100644 --- a/chapters/07_conclusion.tex +++ b/chapters/07_conclusion/07_00_conclusion.tex @@ -1,5 +1,5 @@ -\documentclass[thesis.tex]{subfiles} -\graphicspath{figures} +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} \begin{document} diff --git a/chapters/examples.tex b/chapters/examples/examples.tex similarity index 77% rename from chapters/examples.tex rename to chapters/examples/examples.tex index 28b9be3..7b94c63 100644 --- a/chapters/examples.tex +++ b/chapters/examples/examples.tex @@ -1,5 +1,5 @@ -\documentclass[thesis.tex]{subfiles} -\graphicspath{figures} +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} \begin{document} @@ -15,13 +15,13 @@ This is a reference to \autoref{ch:introduction}. This is a formula: \( \sum\limits_{f=1}^{\infty}\frac{o}{r}\cdot m_{u} + l^{a} \). \begin{codeblock}[label=lst:examplelisting]{This is a listing}{C++} - \inputminted{cpp}{listings/example.cpp} + \inputminted{cpp}{\subfix{listings/example.cpp}} \end{codeblock} \begin{figure}[H] \centering \begin{subfigure}[b]{0.55\textwidth} - \includesvg[width=1.0\linewidth]{figures/example.svg} + \includesvg[width=1.0\linewidth]{\subfix{figures/example.svg}} \end{subfigure} \caption{This is a figure.}\label{fig:examplefigure} \end{figure} diff --git a/figures/example.svg b/chapters/examples/figures/example.svg similarity index 100% rename from figures/example.svg rename to chapters/examples/figures/example.svg diff --git a/listings/example.cpp b/chapters/examples/listings/example.cpp similarity index 100% rename from listings/example.cpp rename to chapters/examples/listings/example.cpp diff --git a/chapters/template.tex b/chapters/template.tex new file mode 100644 index 0000000..343243e --- /dev/null +++ b/chapters/template.tex @@ -0,0 +1,8 @@ +%! TeX program = lualatex +\documentclass[../../thesis.tex]{subfiles} + +\begin{document} + +\chapter{}\label{} + +\end{document} diff --git a/preamble.tex b/preamble.tex index b428d63..4d5a968 100644 --- a/preamble.tex +++ b/preamble.tex @@ -10,7 +10,7 @@ \usepackage{setspace} % Line stretch % Bibliography -\usepackage[backend=biber,urldate=iso,date=iso]{biblatex} +\usepackage[backend=biber,urldate=iso,date=iso,seconds=true]{biblatex} \usepackage[nottoc,notlof,notlot]{tocbibind} % Include bibliography in ToC, nottoc disables the "Contents" entry for the ToC itself % Figures @@ -20,8 +20,8 @@ \usepackage[bottom]{footmisc} % Bottom not below footnote % Math -% \usepackage{amsmath,amssymb,amsthm} -% \usepackage{mathtools} % Extension of amsmath +\usepackage{amsmath,amsthm} % Don't load amssymb with concmath-otf +\usepackage{mathtools} % Extension of amsmath % \usepackage{upgreek} % For non italic greek (vectors/matrices) \usepackage{unicode-math} \usepackage{lualatex-math} @@ -79,11 +79,11 @@ \usetikzlibrary{shadings, backgrounds} \setlength{\headheight}{14pt} -% \mathtoolsset{showonlyrefs} -% \usepackage{xpatch} -% \makeatletter -% \xpretocmd\HyRef@autoref{\noeqref{#2}}{}{} % showonlyrefs mit \autoref -% \makeatother +\mathtoolsset{showonlyrefs} +\usepackage{xpatch} +\makeatletter +\xpretocmd\HyRef@autoref{\noeqref{#2}}{}{} % showonlyrefs mit \autoref +\makeatother \makeatletter\newcommand{\tcb@cnt@codeblockautorefname}{Listing}\makeatother @@ -154,25 +154,29 @@ \let\ref\undefined% \newcommand{\ref}[1]{\PackageError{Thesis}{REF:\ Use \autoref{label} instead}{}} + \let\oldcite\cite% + \let\cite\undefined% + \newcommand{\cite}[1][\PackageError{Thesis}{CITE:\ Use \autocite{ref} instead}{}] + % Visualize "overfull-hbox" \overfullrule=2cm - \pagestyle{empty} - \pagenumbering{gobble} + % \pagestyle{empty} + % \pagenumbering{gobble} % Starting pages + \frontmatter% \input{titlepage} \cleardoublepage% - \frontmatter% - \pagestyle{plain} - \pagenumbering{Roman} + % \pagestyle{plain} + % \pagenumbering{Roman} % \tableofcontents{\thispagestyle{plain}} \tableofcontents% \cleardoublepage% - \pagestyle{report} + % \pagestyle{report} \setacronymstyle{short-long} \printglossary[type=\acronymtype] @@ -180,14 +184,16 @@ \printglossary% \mainmatter% - \pagenumbering{arabic} + % \pagenumbering{arabic} } -\AtEndDocument{% - \pagestyle{empty} - \pagenumbering{gobble} +\AtEndDocument{ + % \pagestyle{empty} + % \pagenumbering{gobble} \let\url\undefined% \let\url\oldurl% + \let\cite\undefined% + \let\cite\oldcite% \printbibliography[heading=bibintoc] \cleardoublepage% diff --git a/thesis.tex b/thesis.tex index b9db630..081350c 100644 --- a/thesis.tex +++ b/thesis.tex @@ -1,3 +1,4 @@ +%! TeX program = lualatex \documentclass[a4paper,11pt,twoside]{book} % Add final to silence TODOs \input{preamble.tex} @@ -5,37 +6,37 @@ \begin{document} -\subfile{chapters/00_abstract.tex} +\subfile{chapters/examples/examples.tex} \cleardoublepage% -\subfile{chapters/examples.tex} +\subfile{chapters/00_abstract/00_00_abstract.tex} \cleardoublepage% -\subfile{chapters/01_introduction.tex} +\subfile{chapters/01_introduction/01_00_introduction.tex} \cleardoublepage% -\subfile{chapters/02_related_work.tex} +\subfile{chapters/02_related_work/02_00_related_work.tex} \cleardoublepage% -\subfile{chapters/03_experiment_design.tex} +\subfile{chapters/03_experiment_design/03_00_experiment_design.tex} \cleardoublepage% -\subfile{chapters/04_experiment_setup.tex} +\subfile{chapters/04_experiment_setup/04_00_experiment_setup.tex} \cleardoublepage% -\subfile{chapters/05_results.tex} +\subfile{chapters/05_results/05_00_results.tex} \cleardoublepage% -\subfile{chapters/06_discussion.tex} +\subfile{chapters/06_discussion/06_00_discussion.tex} \cleardoublepage% -\subfile{chapters/07_conclusion.tex} +\subfile{chapters/07_conclusion/07_00_conclusion.tex} \cleardoublepage% % Appendix -% \backmatter% % Backmatter breaks reference counters into appendices -\pagenumbering{Roman} +\backmatter% % Backmatter breaks reference counters into appendices +% \pagenumbering{Roman} \appendix \end{document}