From b2ffe2d069aa7e932311231b4c11373c6ff31bdf Mon Sep 17 00:00:00 2001 From: dennis Date: Sat, 26 Oct 2024 20:39:09 +0200 Subject: [PATCH] move appendix from layout to content and allow array of appendices --- content/appendix.typ | 1 + layout/appendix.typ | 1 - layout/thesis_template.typ | 13 ++++++++----- thesis.typ | 1 + 4 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 content/appendix.typ delete mode 100644 layout/appendix.typ diff --git a/content/appendix.typ b/content/appendix.typ new file mode 100644 index 0000000..b0b0cf4 --- /dev/null +++ b/content/appendix.typ @@ -0,0 +1 @@ += Appendix A: Supplementary Material \ No newline at end of file diff --git a/layout/appendix.typ b/layout/appendix.typ deleted file mode 100644 index 8623209..0000000 --- a/layout/appendix.typ +++ /dev/null @@ -1 +0,0 @@ --- Supplementary Material -- \ No newline at end of file diff --git a/layout/thesis_template.typ b/layout/thesis_template.typ index 1fd0f69..1799f2a 100644 --- a/layout/thesis_template.typ +++ b/layout/thesis_template.typ @@ -20,6 +20,7 @@ abstract_de: "", acknowledgement: "", transparency_ai_tools: "", + appendix: array, is_print: false, body, ) = { @@ -126,9 +127,10 @@ body + set heading(numbering: none) // List of figures. pagebreak() - heading(numbering: none)[List of Figures] + heading()[List of Figures] outline( title:"", target: figure.where(kind: image), @@ -136,7 +138,7 @@ // List of tables. pagebreak() - heading(numbering: none)[List of Tables] + heading()[List of Tables] outline( title: "", target: figure.where(kind: table) @@ -144,9 +146,10 @@ // Appendix. pagebreak() - heading(numbering: none)[Appendix A: Supplementary Material] - include("/layout/appendix.typ") + for a in appendix { + a + pagebreak() + } - pagebreak() bibliography("/thesis.bib") } diff --git a/thesis.typ b/thesis.typ index 3b5b84e..0cbeb89 100644 --- a/thesis.typ +++ b/thesis.typ @@ -17,6 +17,7 @@ abstract_de: include "/content/abstract_de.typ", acknowledgement: include "/content/acknowledgement.typ", transparency_ai_tools: include "/content/transparency_ai_tools.typ", + appendix: (include "/content/appendix.typ", ) ) #include "/content/introduction.typ"