generator-latex-template 2026.11.1 → 2026.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/generators/app/index.js +56 -0
  2. package/generators/app/templates/.github/workflows/check.yml +103 -0
  3. package/generators/app/templates/IEEEtranN-doi.bst +1 -1
  4. package/generators/app/templates/IEEEtranN-doi.bst.patch +1 -1
  5. package/generators/app/templates/Makefile +6 -2
  6. package/generators/app/templates/README.en.md +180 -6
  7. package/generators/app/templates/Texlivefile +13 -0
  8. package/generators/app/templates/abbreviations.example.de.tex +4 -2
  9. package/generators/app/templates/abbreviations.example.en.tex +8 -5
  10. package/generators/app/templates/affirmation.de.tex +26 -0
  11. package/generators/app/templates/affirmation.en.tex +27 -0
  12. package/generators/app/templates/babel.preamble.de.tex +2 -1
  13. package/generators/app/templates/babel.preamble.en.tex +2 -1
  14. package/generators/app/templates/biblatex.preamble.en.tex +1 -1
  15. package/generators/app/templates/bibliography.bib +20 -0
  16. package/generators/app/templates/chickenize.preamble.en.tex +8 -0
  17. package/generators/app/templates/comparison-abstract.en.tex +3 -0
  18. package/generators/app/templates/comparison-body.acmart.tex +27 -0
  19. package/generators/app/templates/comparison-body.ieee.tex +23 -0
  20. package/generators/app/templates/comparison-body.lncs.tex +19 -0
  21. package/generators/app/templates/comparison-build.sh +41 -0
  22. package/generators/app/templates/comparison-plain.acmart.tex +9 -0
  23. package/generators/app/templates/comparison-plain.ieee.tex +12 -0
  24. package/generators/app/templates/comparison-plain.lncs.tex +11 -0
  25. package/generators/app/templates/comparison-text.en.tex +66 -0
  26. package/generators/app/templates/csquotes.example.en.tex +1 -1
  27. package/generators/app/templates/csquotes.preamble.en.tex +2 -2
  28. package/generators/app/templates/diagbox.example.en.tex +8 -9
  29. package/generators/app/templates/dot.aspell.de.pws +77 -59
  30. package/generators/app/templates/dot.aspell.en.pws +68 -56
  31. package/generators/app/templates/dot.chktexrc +27 -0
  32. package/generators/app/templates/dot.gitignore +6 -0
  33. package/generators/app/templates/floats.example.de.tex +1 -1
  34. package/generators/app/templates/floats.example.en.tex +1 -1
  35. package/generators/app/templates/font.preamble.en.tex +27 -8
  36. package/generators/app/templates/gitver.preamble.en.tex +1 -1
  37. package/generators/app/templates/hyperref.preamble.en.tex +2 -0
  38. package/generators/app/templates/hyphenation.example.en.tex +1 -1
  39. package/generators/app/templates/latexmkrc +8 -0
  40. package/generators/app/templates/listings.example.en.tex +8 -1
  41. package/generators/app/templates/listings.preamble.de.tex +18 -10
  42. package/generators/app/templates/listings.preamble.en.tex +18 -11
  43. package/generators/app/templates/longtable.example.en.tex +10 -7
  44. package/generators/app/templates/main.de.tex +93 -37
  45. package/generators/app/templates/main.en.tex +111 -46
  46. package/generators/app/templates/minted.example.en.tex +8 -1
  47. package/generators/app/templates/minted.preamble.en.tex +1 -0
  48. package/generators/app/templates/mwe-main.de.tex +2 -0
  49. package/generators/app/templates/mwe-main.en.tex +2 -0
  50. package/generators/app/templates/powerset.preamble.en.tex +5 -5
  51. package/generators/app/templates/subfig.example.en.tex +1 -1
  52. package/generators/app/templates/tables.example.en.tex +23 -0
  53. package/generators/app/templates/tables.preamble.en.tex +9 -0
  54. package/generators/app/templates/template-version.preamble.en.tex +4 -0
  55. package/generators/app/templates/thesis-additions.en.tex +4 -4
  56. package/generators/app/templates/thesis-additions.examples.en.tex +2 -2
  57. package/generators/app/templates/todos.preamble.en.tex +1 -1
  58. package/generators/app/templates/uml.example.en.tex +1 -1
  59. package/package.json +2 -2
@@ -149,6 +149,12 @@ export default class extends Generator {
149
149
  ? true
150
150
  : this.options.longtable === true || this.options.longtable === "true";
151
151
 
152
+ // `pagenumbering` is a plain CLI flag (no prompt) for the theses: "continuous"
153
+ // (default, ISO 7144: arabic from the title page on) or "roman" (roman numerals
154
+ // for the front matter, arabic from 1 for the main matter). See ADR-0027.
155
+ this.props.pagenumbering =
156
+ this.options.pagenumbering === "roman" ? "roman" : "continuous";
157
+
152
158
  // `authoryear` is a plain CLI flag (no prompt): switch citations to
153
159
  // author-year globally. Maps to biblatex's authoryear style (theses, lncs)
154
160
  // and \citestyle{acmauthoryear} (acmart); the mwe quick start is
@@ -191,6 +197,18 @@ export default class extends Generator {
191
197
  // stamp in the header of the ustutt thesis). minted 3 (TeX Live 2025 and later)
192
198
  // runs latexminted, which TeX Live permits in restricted shell escape; minted 2
193
199
  // (TeX Live 2024) still needs shell-escape.
200
+ // Written into the main file header and the PDF properties (template-version.preamble.en.tex):
201
+ // the state of the template is a function of the generator version.
202
+ this.props.generatorVersion = this.rootGeneratorVersion();
203
+ this.props.templateRepo = {
204
+ acmart: "acm-enhanced",
205
+ ieee: "ieee-enhanced",
206
+ lncs: "lncs-enhanced",
207
+ "scientific-thesis": "scientific-thesis-template",
208
+ ustutt: "uni-stuttgart-dissertation-template",
209
+ mwe: "markdown-latex-quickstart",
210
+ }[this.props.documentclass];
211
+
194
212
  this.props.requiresShellEscape =
195
213
  (this.props.listings == "minted" && this.props.texlive < 2025) ||
196
214
  this.props.uml == "plantuml" ||
@@ -529,6 +547,11 @@ export default class extends Generator {
529
547
  this.destinationPath(".editorconfig"),
530
548
  this.props,
531
549
  );
550
+ this.fs.copyTpl(
551
+ this.templatePath("dot.chktexrc"),
552
+ this.destinationPath(".chktexrc"),
553
+ this.props,
554
+ );
532
555
  this.fs.copyTpl(
533
556
  this.templatePath("bibliography.bib"),
534
557
  this.destinationPath(this.props.filenames.bib + ".bib"),
@@ -635,6 +658,21 @@ export default class extends Generator {
635
658
  );
636
659
  }
637
660
 
661
+ // Side-by-side comparison of the publisher's class as distributed with this template (README, gh-pages)
662
+ if (this.props.githubpublish && this.props.isPaper) {
663
+ for (const [src, dest] of [
664
+ [`comparison-body.${this.props.documentclass}.tex`, "body.tex"],
665
+ [`comparison-plain.${this.props.documentclass}.tex`, "plain.tex"],
666
+ ["comparison-build.sh", "build.sh"],
667
+ ]) {
668
+ this.fs.copyTpl(
669
+ this.templatePath(src),
670
+ this.destinationPath(`comparison/${dest}`),
671
+ this.props,
672
+ );
673
+ }
674
+ }
675
+
638
676
  if (this.props.documentclass === "lncs") {
639
677
  this.fs.copy(
640
678
  this.templatePath("splncs04nat.bst"),
@@ -644,6 +682,7 @@ export default class extends Generator {
644
682
 
645
683
  if (this.props.documentclass === "ieee") {
646
684
  this.fs.copy(
685
+ // [impl->req~ieee-bst-banner~1]
647
686
  this.templatePath("IEEEtranN-doi.bst"),
648
687
  this.destinationPath("IEEEtranN-doi.bst"),
649
688
  );
@@ -722,6 +761,23 @@ export default class extends Generator {
722
761
  );
723
762
  }
724
763
 
764
+ // The declaration at the end of a University of Stuttgart thesis is a file of the template, so its
765
+ // text can be adapted (scientific-thesis-template#119)
766
+ if (
767
+ this.props.documentclass === "scientific-thesis" &&
768
+ this.props.thesisvariant === "ustutt"
769
+ ) {
770
+ // English and German thesis share one repository on GitHub, so the file name carries the language
771
+ this.fs.copy(
772
+ this.templatePath("affirmation." + this.props.language + ".tex"),
773
+ this.destinationPath(
774
+ this.props.language === "en"
775
+ ? "affirmation.tex"
776
+ : "affirmation-de.tex",
777
+ ),
778
+ );
779
+ }
780
+
725
781
  // mwe-main does not \input{commands}; keep the quick start minimal.
726
782
  if (this.props.documentclass !== "mwe") {
727
783
  this.fs.copyTpl(
@@ -94,6 +94,57 @@ jobs:
94
94
  echo '```' >> $GITHUB_STEP_SUMMARY
95
95
  texlogsieve <%= filenames.main %>.log | tee -a "$GITHUB_STEP_SUMMARY" || true
96
96
  echo '```' >> $GITHUB_STEP_SUMMARY
97
+ <% } -%>
98
+ <% if (githubpublish) { const templateRepo = { acmart: "acm-enhanced", ieee: "ieee-enhanced", lncs: "lncs-enhanced", "scientific-thesis": "scientific-thesis-template", ustutt: "uni-stuttgart-dissertation-template", mwe: "markdown-latex-quickstart" }[documentclass]; -%>
99
+ - name: Install pdftoppm and ImageMagick
100
+ # A TeX Live update can change the output (line breaks, fonts, spacing) without an error.
101
+ # On the weekly run, the PDF published from main is the baseline; pages that differ are
102
+ # rendered side by side in the artifact "pdf-diff". A difference is a warning, not a failure.
103
+ if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
104
+ uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
105
+ with:
106
+ packages: poppler-utils imagemagick
107
+ version: 1.0
108
+ execute_install_scripts: true # creates the "compare" alternative
109
+ <%# [impl->req~pdf-diff-weekly~1] -%>
110
+ - name: Compare with the published PDF
111
+ if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
112
+ run: |
113
+ if ! curl -sSfL -o published.pdf https://latextemplates.github.io/<%= templateRepo %>/<%= filenames.main %>.pdf; then
114
+ echo "No published <%= filenames.main %>.pdf to compare with." >> "$GITHUB_STEP_SUMMARY"
115
+ exit 0
116
+ fi
117
+ pages() { pdfinfo "$1" | awk '/^Pages:/ { print $2 }'; }
118
+ published=$(pages published.pdf)
119
+ built=$(pages <%= filenames.main %>.pdf)
120
+ mkdir pdf-diff
121
+ changed=0
122
+ for i in $(seq 1 $(( published > built ? published : built ))); do
123
+ if [ "$i" -gt "$published" ] || [ "$i" -gt "$built" ]; then
124
+ changed=$((changed + 1))
125
+ continue
126
+ fi
127
+ pdftoppm -r 50 -f "$i" -l "$i" -png -singlefile published.pdf "pdf-diff/page-$i-published"
128
+ pdftoppm -r 50 -f "$i" -l "$i" -png -singlefile <%= filenames.main %>.pdf "pdf-diff/page-$i-built"
129
+ # "compare" exits with 1 when the pages differ and writes the differences in red
130
+ if compare -metric AE "pdf-diff/page-$i-published.png" "pdf-diff/page-$i-built.png" "pdf-diff/page-$i-diff.png" 2>/dev/null; then
131
+ rm "pdf-diff/page-$i-published.png" "pdf-diff/page-$i-built.png" "pdf-diff/page-$i-diff.png"
132
+ else
133
+ changed=$((changed + 1))
134
+ fi
135
+ done
136
+ if [ "$changed" -eq 0 ]; then
137
+ echo "<%= filenames.main %>.pdf is identical to the published one ($built pages)." >> "$GITHUB_STEP_SUMMARY"
138
+ rmdir pdf-diff
139
+ else
140
+ echo "::warning::<%= filenames.main %>.pdf differs from the published one on $changed page(s); see the artifact pdf-diff"
141
+ echo "<%= filenames.main %>.pdf **differs** from the published one on $changed page(s) (published: $published pages, built: $built pages); the artifact \`pdf-diff\` shows the pages and their differences in red." >> "$GITHUB_STEP_SUMMARY"
142
+ fi
143
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
144
+ if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && hashFiles('pdf-diff/*.png') != ''
145
+ with:
146
+ name: pdf-diff
147
+ path: pdf-diff/
97
148
  <% } -%>
98
149
  - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
99
150
  with:
@@ -102,7 +153,41 @@ jobs:
102
153
  <%= filenames.main %>.pdf
103
154
  <%= filenames.main %>.log
104
155
  <%= filenames.main %>.fls
156
+ <% if (githubpublish && isPaper) { -%>
157
+ <%# [impl->req~publisher-comparison~1] -%>
158
+ comparison:
159
+ # The publisher's class as distributed next to this template, same content (see comparison/build.sh and the README)
160
+ name: comparison (comparison/build.sh)
161
+ runs-on: ubuntu-latest
162
+ steps:
163
+ - name: Set up Git repository
164
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
165
+ - name: Install TeX Live
166
+ uses: zauguin/install-texlive@c9f3ea3d51b2e04d092c4f9d208a19542d5dabcf # v4.5.0
167
+ with:
168
+ package_file: '${{ github.workspace }}/Texlivefile'
169
+ texlive_version: <%= texlive %>
170
+ - name: Prepare latexmk
171
+ run: |
172
+ updmap -sys
173
+ texhash
174
+ tlmgr generate language --rebuild-sys
175
+ - name: Install pdftoppm and ImageMagick
176
+ uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
177
+ with:
178
+ packages: poppler-utils imagemagick
179
+ version: 1.0
180
+ execute_install_scripts: true # creates the "convert" alternative
181
+ - run: ./comparison/build.sh
182
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
183
+ with:
184
+ name: comparison
185
+ path: |
186
+ comparison-*.png
187
+ comparison-*.pdf
188
+ <% } -%>
105
189
  <% if (isThesis) { -%>
190
+ <%# [impl->req~chapter-standalone~1] -%>
106
191
  chapter:
107
192
  # One chapter compiled on its own (package subfiles, see chapters-<%= language %>/README.md)
108
193
  name: chapter (latexmk "<%= firstChapter %>")
@@ -129,6 +214,24 @@ jobs:
129
214
  chapters-<%= language %>/<%= firstChapter.replace(/\s+/g, '') %>.pdf
130
215
  chapters-<%= language %>/<%= firstChapter.replace(/\s+/g, '') %>.log
131
216
  <% } -%>
217
+ <%# [impl->req~chktex-clean~1] -%>
218
+ chktex:
219
+ runs-on: ubuntu-latest
220
+ steps:
221
+ - name: Set up Git repository
222
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
223
+ - name: Install TeX Live
224
+ uses: zauguin/install-texlive@c9f3ea3d51b2e04d092c4f9d208a19542d5dabcf # v4.5.0
225
+ with:
226
+ package_file: '${{ github.workspace }}/Texlivefile'
227
+ texlive_version: <%= texlive %>
228
+ - name: Check the LaTeX sources with ChkTeX (configuration in .chktexrc)
229
+ run: |
230
+ find . -maxdepth 2 \( -name '<%= isPaper ? "paper" : ((documentclass == "ustutt") ? "thesis-example" : "main") %>*.tex' -o -path './chapters-*/*.tex' \) -exec chktex -q {} + | tee chktex.txt
231
+ if [ -s chktex.txt ]; then
232
+ { echo "## ChkTeX"; echo; echo '```'; cat chktex.txt; echo '```'; } >> "$GITHUB_STEP_SUMMARY"
233
+ exit 1
234
+ fi
132
235
  word-count:
133
236
  runs-on: ubuntu-latest
134
237
  steps:
@@ -1136,7 +1136,7 @@ FUNCTION {start.entry}
1136
1136
  % the other gurus on comp.text.tex for their help and advice on the topic of
1137
1137
  % \selectlanguage, Babel and BibTeX.
1138
1138
  FUNCTION {begin.bib}
1139
- { "% Generated by IEEEtranN-doi.bst, based on IEEEtranN.bst version: " bst.file.version * " (" * bst.file.date * ")" *
1139
+ { "% Generated by IEEEtranN-doi.bst, based on IEEEtranN.bst " bst.file.version * " (" * bst.file.date * ")" *
1140
1140
  write$ newline$
1141
1141
  preamble$ empty$ 'skip$
1142
1142
  { preamble$ write$ newline$ }
@@ -39,7 +39,7 @@
39
39
  % \selectlanguage, Babel and BibTeX.
40
40
  FUNCTION {begin.bib}
41
41
  -{ "% Generated by IEEEtranN.bst, version: " bst.file.version * " (" * bst.file.date * ")" *
42
- +{ "% Generated by IEEEtranN-doi.bst, based on IEEEtranN.bst version: " bst.file.version * " (" * bst.file.date * ")" *
42
+ +{ "% Generated by IEEEtranN-doi.bst, based on IEEEtranN.bst " bst.file.version * " (" * bst.file.date * ")" *
43
43
  write$ newline$
44
44
  preamble$ empty$ 'skip$
45
45
  { preamble$ write$ newline$ }
@@ -154,6 +154,10 @@ spellcheck-textidote:
154
154
  <% } -%>
155
155
 
156
156
  <% } -%>
157
+ ## Check the LaTeX sources for typographic and syntax issues with ChkTeX (configuration: .chktexrc)
158
+ chktex:
159
+ $(RUN) find . -maxdepth 2 \( -name '<%= isPaper ? "paper" : ((documentclass == "ustutt") ? "thesis-example" : "main") %>*.tex' -o -path './chapters-*/*.tex' \) -exec chktex -q {} +
160
+
157
161
  ## Merge the word lists of the spell checkers: a word added to .aspell.<language>.pws or (e.g., by
158
162
  ## "Add to dictionary" in VS Code) to .vscode/ltex.dictionary.<language>.txt ends up in both<% if (documentclass != "mwe") { %> and in .textidote.dict<% } %>.
159
163
  ## aspell word lists cannot contain hyphenated words; these words are added to the other lists.
@@ -163,14 +167,14 @@ dictionaries:
163
167
  for pair in en:en-US de:de-DE; do \
164
168
  lang=$${pair%%:*}; pws=".aspell.$$lang.pws"; ltex=".vscode/ltex.dictionary.$${pair#*:}.txt"; \
165
169
  [ -e "$$pws" ] || continue; \
166
- { tail -n +2 "$$pws"; if [ -e "$$ltex" ]; then cat "$$ltex"; fi; printf '%s\n' $(HYPHENATED_WORDS); } | grep -v '^$$' | LC_ALL=C sort -u > "$$ltex.tmp"; \
170
+ { tail -n +2 "$$pws"; if [ -e "$$ltex" ]; then cat "$$ltex"; fi; printf '%s\n' $(HYPHENATED_WORDS); } | grep -v '^$$' | LC_ALL=C sort -u | LC_ALL=C sort -f > "$$ltex.tmp"; \
167
171
  mv "$$ltex.tmp" "$$ltex"; \
168
172
  grep -v -e - "$$ltex" > "$$pws.tmp"; \
169
173
  { echo "personal_ws-1.1 $$lang $$(wc -l < "$$pws.tmp" | tr -d ' ') utf-8"; cat "$$pws.tmp"; } > "$$pws"; \
170
174
  rm "$$pws.tmp"; \
171
175
  done
172
176
  <% if (documentclass != "mwe") { -%>
173
- cat .vscode/ltex.dictionary.*.txt | LC_ALL=C sort -u > .textidote.dict
177
+ cat .vscode/ltex.dictionary.*.txt | LC_ALL=C sort -u | LC_ALL=C sort -f > .textidote.dict
174
178
  <% } -%>
175
179
 
176
180
  ## Show only the relevant messages of the last LaTeX run
@@ -161,6 +161,17 @@ This is a **minimal Markdown quick start**. Write your content as plain Markdown
161
161
 
162
162
  The source code examples use the [minted] package, which highlights code best; it needs Python and [latexminted] (contained in the Docker image and on Overleaf).
163
163
  The `-basic-listings` variants use the [listings] package instead and need no extra setup.
164
+
165
+ ## Comparison with the publisher's template
166
+
167
+ <% const plainClass = { acmart: "acmart", ieee: "IEEEtran", lncs: "llncs" }[documentclass]; -%>
168
+ The same text rendered with the <%= plainClass %> class as distributed (left) and with this template (right).
169
+ The layout, the fonts, and the title block are the publisher's; this template adds microtype, hyperlinks, and DOIs in the references.
170
+ The sources are in [comparison/](comparison/); `comparison/build.sh` renders the images.
171
+ <% for (const page of ["first", "middle", "last"]) { -%>
172
+
173
+ ![<%= page[0].toUpperCase() + page.slice(1) %> page: as distributed (left) and this template (right)](https://latextemplates.github.io/<%= templateRepo %>/comparison-<%= page %>.png)
174
+ <% } -%>
164
175
  <% } -%>
165
176
  <% if (!(githubpublish && ((documentclass == "ustutt") || (documentclass == "scientific-thesis")))) { -%>
166
177
 
@@ -380,6 +391,9 @@ A first step towards that is done at the [biblatex-ieee package](https://ctan.or
380
391
  <% } -%>
381
392
  - [bibliography.bib](bibliography.bib) - Bibliography. [biblatex] format. Manage it with [JabRef].
382
393
  - [abbreviations.tex](abbreviations.tex) - Acronyms and abbreviations.
394
+ <% if ((documentclass == "scientific-thesis") && (githubpublish || (thesisvariant == "ustutt"))) { -%>
395
+ - <% if (githubpublish || (language == "en")) { %>[affirmation.tex](affirmation.tex)<% } %><% if (githubpublish) { %> and <% } %><% if (githubpublish || (language == "de")) { %>[affirmation-de.tex](affirmation-de.tex)<% } %> - The declaration at the end of the thesis<% if (githubpublish) { %> (University of Stuttgart variant, English and German)<% } %>. Adapt the text if your university requires another one.
396
+ <% } -%>
383
397
  - [commands.tex](commands.tex) - Example LaTeX macros.
384
398
 
385
399
  Following additional files are included, which do not need to be adapted:
@@ -534,6 +548,7 @@ On the command line, there are additional features:
534
548
  - `latexmk -C` or `make clean` for cleaning up
535
549
  - `make log` shows only the relevant messages of the last LaTeX run (using [texlogsieve](https://ctan.org/pkg/texlogsieve))
536
550
  - `make format` to reformat the `.tex` files (one sentence per line and indent)
551
+ - `make chktex` checks the LaTeX sources for typographic and syntax issues with [ChkTeX](https://ctan.org/pkg/chktex); the `Check` workflow runs it as job `chktex`. Warnings to ignore are configured in `.chktexrc` (`chktex -l` lists all), a single line with `% chktex <number>` at its end.
537
552
  - `make spellcheck` runs all spell checkers<% if (docker) { %> (in the [Docker image by DANTE e.V.](https://hub.docker.com/r/danteev/texlive), which contains them; `make LOCAL=1 spellcheck` uses local installations)<% } %>:
538
553
  - `make spellcheck-aspell` for interactive spell checking with aspell
539
554
  <% if (documentclass != "mwe") { -%>
@@ -706,15 +721,52 @@ See [this question on TeX.SE](https://tex.stackexchange.com/q/584702/9075) for d
706
721
  <% if (documentclass != "mwe") { -%>
707
722
  ## FAQs
708
723
 
724
+ <% if (listings != "minted" || githubpublish) { -%>
725
+ ### Q: pdfLaTeX stops with "Invalid UTF-8 byte sequence (\lst@EC)" in a listing, or an umlaut is missing in it.
726
+
727
+ Under pdfLaTeX, the `listings` package reads a listing byte by byte, so a character outside ASCII has to be mapped to its LaTeX command.
728
+ The template does this for accented Latin letters and common punctuation with `literate=` in `\lstset` (search for `extendedchars` in `<%= filenames.main %>.tex`).
729
+ A character that is not in the table triggers the error and is dropped.
730
+ Add it with the same pattern, e.g., `{ő}{{\H{o}}}1` (the `1` is its width in characters).
731
+ LuaLaTeX reads UTF-8 directly and needs no table, which is why the table is inside `\ifpdftex`.
732
+ [listingsutf8](https://ctan.org/pkg/listingsutf8) helps with `\lstinputlisting` only, not with the `lstlisting` environment.
733
+
734
+ <% } -%>
735
+ ### Q: How do I include an SVG file?
736
+
737
+ Convert it once to PDF with Inkscape (1.0 or later) and include the PDF with `\includegraphics`:
738
+
739
+ ```bash
740
+ inkscape figure.svg --export-type=pdf --export-filename=figure.pdf
741
+ ```
742
+
743
+ The [svg](https://ctan.org/pkg/svg) package automates this (`\includesvg{figure}` converts at every build), but it needs Inkscape on the machine that compiles and `--shell-escape`, so the conversion fails on Overleaf and in CI; the one-time conversion has neither constraint.
744
+ Text in the SVG stays as it is; the `--export-latex` option of Inkscape writes the text to a `.pdf_tex` file set by LaTeX in the document font instead (see the svg package manual for the `\includeinkscape` workflow).
745
+
709
746
  ### Q: How do I find the cause of a LaTeX error?
710
747
 
711
- In case something goes wrong, you can instruct the LaTeX compiler to stop at the first error:
748
+ Run the compiler so that it stops at the first error instead of continuing with a damaged document:
749
+
750
+ ```bash
751
+ <%= reallatexcompiler %> -halt-on-error --synctex=1 <% if (requiresShellEscape) { %>--shell-escape <% } %><%= filenames.main %>
752
+ ```
753
+
754
+ The line starting with `!` in the output (and in `<%= filenames.main %>.log`) names the error, the following `l.<number>` line the line of the source.
755
+ `make log` shows only the relevant messages of the last run (using [texlogsieve](https://ctan.org/pkg/texlogsieve)).
756
+ For an interactive run, [texfot](https://ctan.org/pkg/texfot) wraps the compiler and prints only the lines that probably need a change in the source:
712
757
 
713
758
  ```bash
714
- <%= reallatexcompiler %> --synctex=1 <% if (requiresShellEscape) { %>--shell-escape <% } %><%= filenames.main %>
759
+ texfot <%= reallatexcompiler %> <% if (requiresShellEscape) { %>--shell-escape <% } %><%= filenames.main %>
715
760
  ```
716
761
 
717
- Run `<%= bibrunner %> <%= filenames.main %>` to get the bibliography rendered (execute `lualatex` afterwards).
762
+ Which tool fits which situation is compared in the [decision record on log filtering](https://github.com/latextemplates/gadr-latex-packages/blob/main/log-filtering.md).
763
+ Run `<%= bibrunner %> <%= filenames.main %>` to get the bibliography rendered (execute `<%= reallatexcompiler %>` afterwards).
764
+
765
+ If there is no PDF although the log shows only warnings, the compiler stopped on a missing file without an `!` line: search the end of the log for `not found`, `cannot find`, or `Fatal error`.
766
+ A missing font or encoding file is the usual cause (see the questions on `.enc` files and `LatinModernMath` below); warnings such as "THIS IS AN ALPHA VERSION" of a package are harmless.
767
+ <% if (githubpublish) { -%>
768
+ The `Check` workflow builds this template on every change, so a build that fails locally comes from the local TeX installation; compare with the PDF at <https://latextemplates.github.io/<%= templateRepo %>/> or build in the Docker image (see the Makefile).
769
+ <% } -%>
718
770
 
719
771
  <% if (listings == "minted" || githubpublish) { -%>
720
772
  ### Q: I get `! Package minted Error: minted v3+ executable is not installed`
@@ -986,6 +1038,91 @@ Try with following command
986
1038
 
987
1039
  See <https://tex.stackexchange.com/a/124206/9075> for details.
988
1040
 
1041
+ <% if (isThesis || feature.abbreviations) { -%>
1042
+ ### Q: `\glsunset{...}` or `\glsreset{...}` seem to do nothing. Why?
1043
+
1044
+ They only change the "already used" flag of an abbreviation; nothing is printed where they stand.
1045
+ The effect shows at the next `\gls{...}` of that abbreviation: after `\glsunset{nlp}`, `\gls{nlp}` prints the short form; after `\glsreset{nlp}`, the long form.
1046
+ Put them before that `\gls{...}` in the text, use the key from `abbreviations.tex` (`\newabbreviation{nlp}{NLP}{natural language processing}`), and compile twice (`latexmk` does), because the first-use information comes from the previous run.
1047
+ `\glsresetall` after the abstract lets every abbreviation appear in its long form again in the main text.
1048
+
1049
+ <% } -%>
1050
+ <% if ((documentclass == "scientific-thesis") && (githubpublish || (thesisvariant == "ustutt"))) { -%>
1051
+ ### Q: The thesis is in English, but the title page says "Masterarbeit" (or "Bachelorarbeit"). Why?
1052
+
1053
+ On the cover of the University of Stuttgart, the thesis type is the official German term of the examination regulations, also in an English thesis; see the [discussion at the cover package](https://github.com/latextemplates/scientific-thesis-cover/pull/10).
1054
+ If your university wants it in English, set the type as free text in the options of `scientific-thesis-cover` in the main file: `type={Master Thesis}` instead of `type=master`.
1055
+
1056
+ ### Q: I write my thesis at ISTE (University of Stuttgart). What do I set?
1057
+
1058
+ - Cover (options of `scientific-thesis-cover` in the main file): `institute=istesqa` prints the Institute of Software Engineering with the department Software Quality and Architecture, `institute=iste, department={Empirical Software Engineering}` another department; `type=forschungsprojekt` prints "Bachelor-Forschungsprojekt Informatik", `type=studienprojektse` "Studienprojekt Software Engineering", `type=bachelor` and `type=master` the theses.
1059
+ The [cover package](https://github.com/latextemplates/scientific-thesis-cover#options) lists all keys.
1060
+ Any other institute, department, or type is free text in curly braces, `\\` starts a new line: `institute={Institute of Software Engineering\\Empirical Software Engineering}`.
1061
+ - Times as text font and roman page numbers for the front matter are generator options.
1062
+ Generate an own copy of the template with the [latex template generator]:
1063
+
1064
+ ```bash
1065
+ npx -p yo -p generator-latex-template -c 'yo latex-template <%= regenerateOptions %> --font=times --pagenumbering=roman'
1066
+ ```
1067
+
1068
+ The generator asks for the remaining options (institution: University of Stuttgart; language; package for source code).
1069
+ - The German Kurzfassung stays the appendix at the end of the thesis.
1070
+
1071
+ <% } -%>
1072
+ <% if (isThesis) { -%>
1073
+ ### Q: Why are the pages numbered continuously, without roman numerals for the front matter?
1074
+
1075
+ ISO 7144 ("Presentation of theses and similar documents") numbers the pages consecutively with arabic numerals from the title page on, and the doctoral regulations of the University of Stuttgart require that.
1076
+ Furthermore, the page number in the PDF viewer then equals the printed one, and a page reference is unambiguous.
1077
+ See the [decision record](https://github.com/latextemplates/generator-latex-template/blob/main/docs/decisions/0027-number-pages-continuously.md).
1078
+ If your institution wants roman numerals for the front matter, put `\frontmatter` before the title page and `\mainmatter` before the first chapter of the main file, or generate an own copy of the template with the [latex template generator]:
1079
+
1080
+ ```bash
1081
+ npx -p yo -p generator-latex-template -c 'yo latex-template <%= regenerateOptions %> --pagenumbering=roman'
1082
+ ```
1083
+
1084
+ <% } -%>
1085
+ <% if (documentclass == "scientific-thesis") { -%>
1086
+ ### Q: How do I change the font of the table of contents?
1087
+
1088
+ With KOMA-Script commands in the preamble of the main file (next to `\setkomafont{disposition}`); the `tocloft` package is not needed and does not go well with KOMA-Script.
1089
+ The chapter entries use the font element `chapterentry`, the lower levels are set by `\DeclareTOCStyleEntries`:
1090
+
1091
+ ```latex
1092
+ \setkomafont{chapterentry}{\sffamily\bfseries\large}
1093
+ \DeclareTOCStyleEntries[entryformat=\sffamily\large]{tocline}{section}
1094
+ \DeclareTOCStyleEntries[entryformat=\sffamily]{tocline}{subsection,subsubsection}
1095
+ ```
1096
+
1097
+ The template sets all entries in the sans-serif font of the headings; see the KOMA-Script manual (`texdoc scrguide`, section on `tocbasic`) for `numwidth`, `indent`, `pagenumberformat`, and the other keys.
1098
+
1099
+ <% } -%>
1100
+ ### Q: How do I speed up compilation with a precompiled preamble?
1101
+
1102
+ With pdfLaTeX, the preamble of `<%= filenames.main %>.tex` can be dumped into a format file once ([mylatex](https://ctan.org/pkg/mylatex), part of TeX Live); later runs load the format instead of reading all packages, which saved 26 % per run for the example thesis.
1103
+
1104
+ ```bash
1105
+ pdflatex -ini "&pdflatex" mylatex.ltx <%= filenames.main %>
1106
+ pdflatex "&mylatex" <%= filenames.main %>
1107
+ ```
1108
+
1109
+ Caveats: a run with the format skips the preamble of the `.tex` file, so after every change to the preamble, and after a TeX Live update, the first command has to be repeated; otherwise the change is silently ignored.
1110
+ Additions placed after a line containing only `% mylatex` (put it right before `\begin{document}`) are read anyway, so new packages and macros can go there while writing.
1111
+ `latexmk` does not rebuild the format, so this is for runs by hand while writing; `latexmk` builds the final version as usual.
1112
+ The file `mylatex.fmt` (about 14 MB) is a build product and in `.gitignore`.
1113
+ LuaLaTeX<% if (reallatexcompiler.startsWith("lualatex")) { %> (the default of this template)<% } %> cannot dump its preamble: Lua states and the loaded fonts are not part of a format.
1114
+ The other ways to shorten the edit-compile loop, with measurements, are in the decision record [How to speed up compilation](https://github.com/latextemplates/gadr-latex-packages/blob/main/compilation-speed.md).
1115
+
1116
+ <% if (bibtextool == 'biblatex') { -%>
1117
+ ### Q: How do I change the citation style (APA, Chicago, IEEE, ...)?
1118
+
1119
+ The bibliography is typeset by [biblatex] with its built-in styles: `<%= authoryear ? "authoryear" : (documentclass == "lncs" ? "lncs" : "alphabetic") %>` here<% if (!authoryear && documentclass != "lncs") { %> (`--authoryear` at generation time switches to `authoryear`)<% } %>.
1120
+ These styles are generic and complete; they follow no published style guide, which is fine unless a department or a journal prescribes one.
1121
+ To switch to a prescribed style, replace the `bibstyle` and `citestyle` options in the `\usepackage[...]{biblatex}` block of `<%= filenames.main %>.tex` by the style's option, e.g., `style=apa` ([biblatex-apa](https://ctan.org/pkg/biblatex-apa)) or `style=ieee` ([biblatex-ieee](https://ctan.org/pkg/biblatex-ieee)); Chicago comes as its own package ([biblatex-chicago](https://ctan.org/pkg/biblatex-chicago)), which is loaded instead of biblatex.
1122
+ The options `minalphanames` and `maxalphanames` belong to the `alphabetic` style and have to go.
1123
+ Rendered examples of each style and the trade-offs are in the decision record [How to cite in a given citation style](https://github.com/latextemplates/gadr-latex-packages/blob/main/citation-styles.md).
1124
+
1125
+ <% } -%>
989
1126
  ### Q: There is an output that biber/biblatex too old
990
1127
 
991
1128
  See installation hints of how to update them at different systems.
@@ -1055,15 +1192,52 @@ Please head to <https://koppor.github.io/plantuml/> for installation instruction
1055
1192
  <% if (documentclass == "mwe") { -%>
1056
1193
  ## FAQs
1057
1194
 
1195
+ <% if (listings != "minted" || githubpublish) { -%>
1196
+ ### Q: pdfLaTeX stops with "Invalid UTF-8 byte sequence (\lst@EC)" in a listing, or an umlaut is missing in it.
1197
+
1198
+ Under pdfLaTeX, the `listings` package reads a listing byte by byte, so a character outside ASCII has to be mapped to its LaTeX command.
1199
+ The template does this for accented Latin letters and common punctuation with `literate=` in `\lstset` (search for `extendedchars` in `<%= filenames.main %>.tex`).
1200
+ A character that is not in the table triggers the error and is dropped.
1201
+ Add it with the same pattern, e.g., `{ő}{{\H{o}}}1` (the `1` is its width in characters).
1202
+ LuaLaTeX reads UTF-8 directly and needs no table, which is why the table is inside `\ifpdftex`.
1203
+ [listingsutf8](https://ctan.org/pkg/listingsutf8) helps with `\lstinputlisting` only, not with the `lstlisting` environment.
1204
+
1205
+ <% } -%>
1206
+ ### Q: How do I include an SVG file?
1207
+
1208
+ Convert it once to PDF with Inkscape (1.0 or later) and include the PDF with `\includegraphics`:
1209
+
1210
+ ```bash
1211
+ inkscape figure.svg --export-type=pdf --export-filename=figure.pdf
1212
+ ```
1213
+
1214
+ The [svg](https://ctan.org/pkg/svg) package automates this (`\includesvg{figure}` converts at every build), but it needs Inkscape on the machine that compiles and `--shell-escape`, so the conversion fails on Overleaf and in CI; the one-time conversion has neither constraint.
1215
+ Text in the SVG stays as it is; the `--export-latex` option of Inkscape writes the text to a `.pdf_tex` file set by LaTeX in the document font instead (see the svg package manual for the `\includeinkscape` workflow).
1216
+
1058
1217
  ### Q: How do I find the cause of a LaTeX error?
1059
1218
 
1060
- In case something goes wrong, you can instruct the LaTeX compiler to stop at the first error:
1219
+ Run the compiler so that it stops at the first error instead of continuing with a damaged document:
1061
1220
 
1062
1221
  ```bash
1063
- <%= reallatexcompiler %> --synctex=1 <% if (requiresShellEscape) { %>--shell-escape <% } %><%= filenames.main %>
1222
+ <%= reallatexcompiler %> -halt-on-error --synctex=1 <% if (requiresShellEscape) { %>--shell-escape <% } %><%= filenames.main %>
1064
1223
  ```
1065
1224
 
1066
- Run `<%= bibrunner %> <%= filenames.main %>` to get the bibliography rendered (execute `lualatex` afterwards).
1225
+ The line starting with `!` in the output (and in `<%= filenames.main %>.log`) names the error, the following `l.<number>` line the line of the source.
1226
+ `make log` shows only the relevant messages of the last run (using [texlogsieve](https://ctan.org/pkg/texlogsieve)).
1227
+ For an interactive run, [texfot](https://ctan.org/pkg/texfot) wraps the compiler and prints only the lines that probably need a change in the source:
1228
+
1229
+ ```bash
1230
+ texfot <%= reallatexcompiler %> <% if (requiresShellEscape) { %>--shell-escape <% } %><%= filenames.main %>
1231
+ ```
1232
+
1233
+ Which tool fits which situation is compared in the [decision record on log filtering](https://github.com/latextemplates/gadr-latex-packages/blob/main/log-filtering.md).
1234
+ Run `<%= bibrunner %> <%= filenames.main %>` to get the bibliography rendered (execute `<%= reallatexcompiler %>` afterwards).
1235
+
1236
+ If there is no PDF although the log shows only warnings, the compiler stopped on a missing file without an `!` line: search the end of the log for `not found`, `cannot find`, or `Fatal error`.
1237
+ A missing font or encoding file is the usual cause (see the questions on `.enc` files and `LatinModernMath` below); warnings such as "THIS IS AN ALPHA VERSION" of a package are harmless.
1238
+ <% if (githubpublish) { -%>
1239
+ The `Check` workflow builds this template on every change, so a build that fails locally comes from the local TeX installation; compare with the PDF at <https://latextemplates.github.io/<%= templateRepo %>/> or build in the Docker image (see the Makefile).
1240
+ <% } -%>
1067
1241
 
1068
1242
  ### Q: How do I spell check a passage in another language?
1069
1243
 
@@ -39,15 +39,25 @@ blindtext
39
39
  <% if (githubpublish || (documentclass == "ustutt")) { -%>
40
40
  bookcover<%# required for cover.tex%>
41
41
  <% } -%>
42
+ adjustbox
43
+ collectbox<%# required by adjustbox %>
42
44
  booktabs
43
45
  caption
44
46
  <% if (githubpublish || isThesis) { -%>
45
47
  catchfile
46
48
  <% } -%>
47
49
  cfr-lm
50
+ chickenize
51
+ chktex
48
52
  <% if (githubpublish || (documentclass == "ustutt")) { -%>
49
53
  charter<%# required by mathdesign-charter%>
50
54
  <% } -%>
55
+ <% if (githubpublish || (documentclass == "ieee")) { -%>
56
+ cite<%# plain.tex of the comparison: IEEEtran as distributed %>
57
+ <% } -%>
58
+ <% if (githubpublish || (documentclass == "ieee")) { -%>
59
+ courier<%# plain.tex of the comparison: IEEEtran as distributed uses Courier (pcr) for \texttt %>
60
+ <% } -%>
51
61
  <% if (githubpublish || (crossref == "cleveref")) { -%>
52
62
  cleveref
53
63
  <% } -%>
@@ -332,7 +342,9 @@ tabto-ltx
332
342
  tablefootnote
333
343
  tcolorbox
334
344
  tex-gyre<%# at least required by acm, ieee, font config "times"; provides ts1-qtmr %>
345
+ tex-gyre-math<%# TeX Gyre Termes Math and Pagella Math: math font of ieee and font config "times" under LuaLaTeX %>
335
346
  texcount
347
+ texfot<%# "texfot <compiler> <main>" shows only the relevant messages, see the README FAQ %>
336
348
  texlogsieve
337
349
  textcase<%# required by lccaps %>
338
350
  <% if (githubpublish || isThesis) { -%>
@@ -365,6 +377,7 @@ varwidth
365
377
  <% } -%>
366
378
  <% if (githubpublish || (documentclass == "ustutt")) { -%>
367
379
  xcharter
380
+ xcharter-math<%# XCharter-Math.otf: math font of ustutt under LuaLaTeX %>
368
381
  <% } -%>
369
382
  xcolor
370
383
  <% if (githubpublish || isThesis) { -%>
@@ -6,10 +6,12 @@ Außerdem wird die Abkürzung automatisch in die Abkürzungsliste eingefügt.
6
6
  Mit \verb+\glspl{...}+ wird die Pluralform verwendet.
7
7
  Möchte man, dass bei der ersten Verwendung direkt die Kurzform erscheint, so kann man mit \verb+\glsunset{...}+ eine Abkürzung als bereits verwendet markieren.
8
8
  Das Gegenteil erreicht man mit \verb+\glsreset{...}+.
9
+ Beide ändern nur die Markierung \enquote{bereits verwendet}: Die Wirkung zeigt sich beim nächsten \verb+\gls{...}+ dieser Abkürzung, die Befehle müssen also davor im Text stehen.
10
+ \verb+\glsresetall+ (z.\,B. nach der Kurzfassung) lässt alle Abkürzungen wieder in der Langform erscheinen.
9
11
 
10
- Definiert werden Abkürzungen in der Datei \textit{abbreviationstex} mithilfe von \verb+\newacronym{...}{...}{...}+.
12
+ Definiert werden Abkürzungen in der Datei \verb+abbreviations.tex+ mithilfe von \verb+\newabbreviation{key}{kurz}{lang}+ (oder \verb+\newacronym+ für ein Akronym, das als Wort gelesen wird).
11
13
 
12
- Mehr Infos unter: \url{https://ctan.org/pkg/bib2gls}.
14
+ Mehr Infos unter: \url{https://ctan.org/pkg/glossaries-extra}.
13
15
 
14
16
  <%- bexample %>
15
17
  Beim ersten Durchlauf betrug die \gls{fr} 5.
@@ -4,12 +4,15 @@ With \verb+\gls{...}+, you can enter abbreviations: the first time you call it,
4
4
  When reusing \verb+\gls{..}+ the short form is automatically displayed.
5
5
  The abbreviation is also automatically inserted in the abbreviation list.
6
6
  With \verb+\glspl{...}+ the plural form is used.
7
- If you want the short form to appear directly at the first use, you can use \verb+\glsunset{..}+ to mark an abbreviation as already used.
8
- The opposite is achieved with \verb+\glsreset{..}+.
7
+ <%# [impl->req~abbreviation-first-use~1] -%>
8
+ If you want the short form to appear directly at the first use, you can use \verb+\glsunset{...}+ to mark an abbreviation as already used.
9
+ The opposite is achieved with \verb+\glsreset{...}+.
10
+ Both only change the ``already used'' flag: the effect shows at the next \verb+\gls{...}+ of that abbreviation, so they have to come before it in the text.
11
+ \verb+\glsresetall+ (e.g., after the abstract) lets every abbreviation appear in its long form again.
9
12
 
10
- Abbreviations are defined in \verb+\content\ausarbeitung.tex+ by means of \verb+\newacronym{...}{...}{...}+.
13
+ Abbreviations are defined in \verb+abbreviations.tex+ by means of \verb+\newabbreviation{key}{short}{long}+ (or \verb+\newacronym+ for an acronym that is read as a word).
11
14
 
12
- More information at: \url{https://ctan.org/pkg/bib2gls}.
15
+ More information at: \url{https://ctan.org/pkg/glossaries-extra}.
13
16
 
14
17
  <%- bexample %>
15
18
  At the first pass, the \gls{er} was 5.
@@ -23,4 +26,4 @@ A \gls{gp} is a medical doctor.
23
26
  I went to my surgery to see the \gls{gp}.
24
27
  <%- eexample %>
25
28
 
26
- \todo{Include difference between acronym and abbreviation - \url{https://tex.stackexchange.com/a/154566/9075}}
29
+ \todo{Include difference between acronym and abbreviation, see https://tex.stackexchange.com/a/154566/9075}
@@ -0,0 +1,26 @@
1
+ % Erklärung (Versicherung) am Ende der Arbeit, wie von der Universität Stuttgart verlangt.
2
+ % Der Text steht hier und nicht in einem Paket, damit er angepasst werden kann: andere Hochschule, geänderte
3
+ % Prüfungsordnung oder mehrere Autorinnen und Autoren. Layout wie im Paket scientific-thesis-cover (\Versicherung).
4
+ \cleardoublepage
5
+ \null
6
+ \vskip 5cm\relax
7
+ \begin{center}
8
+ \begin{minipage}[t]{10cm}
9
+ \hbox{\textbf{Erklärung}}%
10
+ \vskip 1cm\relax
11
+ Hiermit erkläre ich, dass ich die vorliegende Arbeit selbstständig verfasst und dabei keine anderen als die angegebenen Quellen und Hilfsmittel benutzt habe.
12
+ Sämtliche wörtlichen oder sinngemäßen Übernahmen und Zitate aus anderen Werken sind kenntlich gemacht und nachgewiesen.
13
+ Ich versichere, dass ich keine Hilfsmittel verwendet habe, deren Nutzung die Prüferin oder der Prüfer explizit ausgeschlossen hat.\par\vspace{0.5em}
14
+ Im Anhang \enquote{Nutzung von KI-Tools} habe ich dokumentiert, inwiefern KI-Tools zur Erstellung wesentlicher Teile dieser Arbeit verwendet wurden.
15
+ Mit Abgabe der Arbeit übernehme ich die volle Verantwortung für alle Inhalte.
16
+ Die \textit{Grundsätze zur KI-Nutzung für Studierende an der Universität Stuttgart} habe ich zur Kenntnis genommen und befolgt.\par\vspace{0.5em}
17
+ Weder diese Arbeit noch wesentliche Teile daraus waren bisher Gegenstand eines anderen Prüfungsverfahrens.
18
+ Ich habe diese Arbeit bisher weder teilweise noch vollständig veröffentlicht.
19
+ Das elektronische Exemplar stimmt mit allen eingereichten Exemplaren überein.
20
+ \vskip 4cm\relax
21
+ \hrulefill
22
+ \vskip .4\baselineskip
23
+ \hbox{\ Ort, Datum, Unterschrift}
24
+ \end{minipage}
25
+ \end{center}
26
+ \clearpage