Update subfiles document structure

This commit is contained in:
2026-06-29 20:19:50 +02:00
parent 5f447c955d
commit 0c14a1af00
17 changed files with 100 additions and 55 deletions
@@ -1,5 +1,5 @@
\documentclass[thesis.tex]{subfiles} %! TeX program = lualatex
\graphicspath{figures} \documentclass[../../thesis.tex]{subfiles}
\begin{document} \begin{document}
@@ -1,5 +1,5 @@
\documentclass[thesis.tex]{subfiles} %! TeX program = lualatex
\graphicspath{figures} \documentclass[../../thesis.tex]{subfiles}
\begin{document} \begin{document}
@@ -1,5 +1,5 @@
\documentclass[thesis.tex]{subfiles} %! TeX program = lualatex
\graphicspath{figures} \documentclass[../../thesis.tex]{subfiles}
\begin{document} \begin{document}
@@ -1,5 +1,5 @@
\documentclass[thesis.tex]{subfiles} %! TeX program = lualatex
\graphicspath{figures} \documentclass[../../thesis.tex]{subfiles}
\begin{document} \begin{document}
-8
View File
@@ -1,8 +0,0 @@
\documentclass[thesis.tex]{subfiles}
\graphicspath{figures}
\begin{document}
\chapter{Experiment Setup}\label{ch:experimentsetup}
\end{document}
@@ -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}
@@ -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}
@@ -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}
@@ -1,5 +1,5 @@
\documentclass[thesis.tex]{subfiles} %! TeX program = lualatex
\graphicspath{figures} \documentclass[../../thesis.tex]{subfiles}
\begin{document} \begin{document}
@@ -1,5 +1,5 @@
\documentclass[thesis.tex]{subfiles} %! TeX program = lualatex
\graphicspath{figures} \documentclass[../../thesis.tex]{subfiles}
\begin{document} \begin{document}
@@ -1,5 +1,5 @@
\documentclass[thesis.tex]{subfiles} %! TeX program = lualatex
\graphicspath{figures} \documentclass[../../thesis.tex]{subfiles}
\begin{document} \begin{document}
@@ -1,5 +1,5 @@
\documentclass[thesis.tex]{subfiles} %! TeX program = lualatex
\graphicspath{figures} \documentclass[../../thesis.tex]{subfiles}
\begin{document} \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} \). 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++} \begin{codeblock}[label=lst:examplelisting]{This is a listing}{C++}
\inputminted{cpp}{listings/example.cpp} \inputminted{cpp}{\subfix{listings/example.cpp}}
\end{codeblock} \end{codeblock}
\begin{figure}[H] \begin{figure}[H]
\centering \centering
\begin{subfigure}[b]{0.55\textwidth} \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} \end{subfigure}
\caption{This is a figure.}\label{fig:examplefigure} \caption{This is a figure.}\label{fig:examplefigure}
\end{figure} \end{figure}

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

+8
View File
@@ -0,0 +1,8 @@
%! TeX program = lualatex
\documentclass[../../thesis.tex]{subfiles}
\begin{document}
\chapter{}\label{}
\end{document}
+24 -18
View File
@@ -10,7 +10,7 @@
\usepackage{setspace} % Line stretch \usepackage{setspace} % Line stretch
% Bibliography % 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 \usepackage[nottoc,notlof,notlot]{tocbibind} % Include bibliography in ToC, nottoc disables the "Contents" entry for the ToC itself
% Figures % Figures
@@ -20,8 +20,8 @@
\usepackage[bottom]{footmisc} % Bottom not below footnote \usepackage[bottom]{footmisc} % Bottom not below footnote
% Math % Math
% \usepackage{amsmath,amssymb,amsthm} \usepackage{amsmath,amsthm} % Don't load amssymb with concmath-otf
% \usepackage{mathtools} % Extension of amsmath \usepackage{mathtools} % Extension of amsmath
% \usepackage{upgreek} % For non italic greek (vectors/matrices) % \usepackage{upgreek} % For non italic greek (vectors/matrices)
\usepackage{unicode-math} \usepackage{unicode-math}
\usepackage{lualatex-math} \usepackage{lualatex-math}
@@ -79,11 +79,11 @@
\usetikzlibrary{shadings, backgrounds} \usetikzlibrary{shadings, backgrounds}
\setlength{\headheight}{14pt} \setlength{\headheight}{14pt}
% \mathtoolsset{showonlyrefs} \mathtoolsset{showonlyrefs}
% \usepackage{xpatch} \usepackage{xpatch}
% \makeatletter \makeatletter
% \xpretocmd\HyRef@autoref{\noeqref{#2}}{}{} % showonlyrefs mit \autoref \xpretocmd\HyRef@autoref{\noeqref{#2}}{}{} % showonlyrefs mit \autoref
% \makeatother \makeatother
\makeatletter\newcommand{\tcb@cnt@codeblockautorefname}{Listing}\makeatother \makeatletter\newcommand{\tcb@cnt@codeblockautorefname}{Listing}\makeatother
@@ -154,25 +154,29 @@
\let\ref\undefined% \let\ref\undefined%
\newcommand{\ref}[1]{\PackageError{Thesis}{REF:\ Use \autoref{label} instead}{}} \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" % Visualize "overfull-hbox"
\overfullrule=2cm \overfullrule=2cm
\pagestyle{empty} % \pagestyle{empty}
\pagenumbering{gobble} % \pagenumbering{gobble}
% Starting pages % Starting pages
\frontmatter%
\input{titlepage} \input{titlepage}
\cleardoublepage% \cleardoublepage%
\frontmatter% % \pagestyle{plain}
\pagestyle{plain} % \pagenumbering{Roman}
\pagenumbering{Roman}
% \tableofcontents{\thispagestyle{plain}} % \tableofcontents{\thispagestyle{plain}}
\tableofcontents% \tableofcontents%
\cleardoublepage% \cleardoublepage%
\pagestyle{report} % \pagestyle{report}
\setacronymstyle{short-long} \setacronymstyle{short-long}
\printglossary[type=\acronymtype] \printglossary[type=\acronymtype]
@@ -180,14 +184,16 @@
\printglossary% \printglossary%
\mainmatter% \mainmatter%
\pagenumbering{arabic} % \pagenumbering{arabic}
} }
\AtEndDocument{% \AtEndDocument{
\pagestyle{empty} % \pagestyle{empty}
\pagenumbering{gobble} % \pagenumbering{gobble}
\let\url\undefined% \let\url\undefined%
\let\url\oldurl% \let\url\oldurl%
\let\cite\undefined%
\let\cite\oldcite%
\printbibliography[heading=bibintoc] \printbibliography[heading=bibintoc]
\cleardoublepage% \cleardoublepage%
+12 -11
View File
@@ -1,3 +1,4 @@
%! TeX program = lualatex
\documentclass[a4paper,11pt,twoside]{book} % Add final to silence TODOs \documentclass[a4paper,11pt,twoside]{book} % Add final to silence TODOs
\input{preamble.tex} \input{preamble.tex}
@@ -5,37 +6,37 @@
\begin{document} \begin{document}
\subfile{chapters/00_abstract.tex} \subfile{chapters/examples/examples.tex}
\cleardoublepage% \cleardoublepage%
\subfile{chapters/examples.tex} \subfile{chapters/00_abstract/00_00_abstract.tex}
\cleardoublepage% \cleardoublepage%
\subfile{chapters/01_introduction.tex} \subfile{chapters/01_introduction/01_00_introduction.tex}
\cleardoublepage% \cleardoublepage%
\subfile{chapters/02_related_work.tex} \subfile{chapters/02_related_work/02_00_related_work.tex}
\cleardoublepage% \cleardoublepage%
\subfile{chapters/03_experiment_design.tex} \subfile{chapters/03_experiment_design/03_00_experiment_design.tex}
\cleardoublepage% \cleardoublepage%
\subfile{chapters/04_experiment_setup.tex} \subfile{chapters/04_experiment_setup/04_00_experiment_setup.tex}
\cleardoublepage% \cleardoublepage%
\subfile{chapters/05_results.tex} \subfile{chapters/05_results/05_00_results.tex}
\cleardoublepage% \cleardoublepage%
\subfile{chapters/06_discussion.tex} \subfile{chapters/06_discussion/06_00_discussion.tex}
\cleardoublepage% \cleardoublepage%
\subfile{chapters/07_conclusion.tex} \subfile{chapters/07_conclusion/07_00_conclusion.tex}
\cleardoublepage% \cleardoublepage%
% Appendix % Appendix
% \backmatter% % Backmatter breaks reference counters into appendices \backmatter% % Backmatter breaks reference counters into appendices
\pagenumbering{Roman} % \pagenumbering{Roman}
\appendix \appendix
\end{document} \end{document}