generator-latex-template 2026.10.26 → 2026.11.1
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.
- package/generators/app/CLAUDE.md +1 -1
- package/generators/app/index.js +60 -8
- package/generators/app/templates/.github/workflows/check.yml +30 -3
- package/generators/app/templates/README.en.md +56 -4
- package/generators/app/templates/Texlivefile +17 -3
- package/generators/app/templates/abbreviations.de.tex +1 -1
- package/generators/app/templates/abbreviations.en.tex +1 -1
- package/generators/app/templates/abbreviations.preamble.en.tex +4 -4
- package/generators/app/templates/biblatex.example.en.tex +4 -0
- package/generators/app/templates/biblatex.preamble.de.tex +1 -0
- package/generators/app/templates/bibliography.bib +15 -0
- package/generators/app/templates/chapters.README.de.md +8 -1
- package/generators/app/templates/chapters.README.en.md +8 -1
- package/generators/app/templates/chapters.dot.latexmkrc +9 -0
- package/generators/app/templates/dot.aspell.conf +1 -0
- package/generators/app/templates/dot.aspell.de.pws +10 -1
- package/generators/app/templates/dot.aspell.en.pws +10 -1
- package/generators/app/templates/dot.gitignore +5 -0
- package/generators/app/templates/dot.typos.toml +2 -0
- package/generators/app/templates/font.preamble.en.tex +12 -2
- package/generators/app/templates/footnotes.preamble.en.tex +10 -1
- package/generators/app/templates/gitver.preamble.en.tex +12 -0
- package/generators/app/templates/graphicscache.preamble.en.tex +17 -0
- package/generators/app/templates/latexmkrc +0 -16
- package/generators/app/templates/listings.preamble.de.tex +1 -1
- package/generators/app/templates/listings.preamble.en.tex +1 -1
- package/generators/app/templates/main.de.tex +17 -9
- package/generators/app/templates/main.en.tex +13 -5
- package/generators/app/templates/markdown.example.en.tex +3 -0
- package/generators/app/templates/mwe-main.de.tex +10 -2
- package/generators/app/templates/mwe-main.en.tex +10 -2
- package/generators/app/templates/natbib.preamble.en.tex +5 -0
- package/generators/app/templates/paragraphs.example.de.tex +5 -0
- package/generators/app/templates/paragraphs.example.en.tex +5 -0
- package/generators/app/templates/splncs04nat.bst +3 -1
- package/generators/app/templates/subfiles.preamble.en.tex +6 -0
- package/generators/app/templates/tables.example.en.tex +21 -0
- package/generators/app/templates/tables.preamble.en.tex +3 -0
- package/generators/app/templates/todos.example.de.tex +9 -0
- package/generators/app/templates/todos.example.en.tex +9 -0
- package/generators/app/templates/todos.preamble.en.tex +29 -1
- package/generators/app/templates/uml.mermaid.preamble.en.tex +2 -1
- package/generators/app/templates/ustutt-chapterstyle.preamble.en.tex +2 -1
- package/generators/app/templates/ustutt-pagestyle.preamble.en.tex +12 -7
- package/package.json +2 -2
package/generators/app/CLAUDE.md
CHANGED
|
@@ -34,7 +34,7 @@ the feature vanishes for some switch combination without any error.
|
|
|
34
34
|
3. **`Texlivefile`** — add the TeX Live package name, guarded (usually
|
|
35
35
|
`githubpublish || <condition>`; `githubpublish` deliberately bundles everything).
|
|
36
36
|
4. **Shell-escape is derived, never hardcoded.** It is the boolean
|
|
37
|
-
`requiresShellEscape` in `index.js` (`uml == "plantuml"`, and minted only up to TeX Live 2024:
|
|
37
|
+
`requiresShellEscape` in `index.js` (`uml == "plantuml"`/`"mermaid"`, `ustutt` for gitver, and minted only up to TeX Live 2024:
|
|
38
38
|
minted 3 runs `latexminted`, which TeX Live permits in restricted shell escape).
|
|
39
39
|
Extend that expression if the new package needs `\write18`; the `latexmkrc` and the
|
|
40
40
|
`main.*.tex` editor hints read the flag.
|
package/generators/app/index.js
CHANGED
|
@@ -187,13 +187,15 @@ export default class extends Generator {
|
|
|
187
187
|
this.props.bibrunner =
|
|
188
188
|
this.props.bibtextool === "biblatex" ? "biber" : "bibtex";
|
|
189
189
|
|
|
190
|
-
//
|
|
190
|
+
// The PlantUML/Mermaid UML examples need shell-escape, as does gitver (the version
|
|
191
|
+
// stamp in the header of the ustutt thesis). minted 3 (TeX Live 2025 and later)
|
|
191
192
|
// runs latexminted, which TeX Live permits in restricted shell escape; minted 2
|
|
192
193
|
// (TeX Live 2024) still needs shell-escape.
|
|
193
194
|
this.props.requiresShellEscape =
|
|
194
195
|
(this.props.listings == "minted" && this.props.texlive < 2025) ||
|
|
195
196
|
this.props.uml == "plantuml" ||
|
|
196
|
-
this.props.uml == "mermaid"
|
|
197
|
+
this.props.uml == "mermaid" ||
|
|
198
|
+
this.props.documentclass == "ustutt";
|
|
197
199
|
|
|
198
200
|
// Two-column layouts (IEEE, and the ACM conference/journal formats) cannot use
|
|
199
201
|
// `longtable` ("longtable not in 1-column mode"), so the longtable example must
|
|
@@ -424,9 +426,47 @@ export default class extends Generator {
|
|
|
424
426
|
this.templatePath(`chapters.README.${language}.md`),
|
|
425
427
|
this.destinationPath(`chapters-${language}/README.md`),
|
|
426
428
|
);
|
|
429
|
+
// Each chapter compiles on its own (package subfiles): it names the main
|
|
430
|
+
// file whose preamble it loads. The template repositories rename the main
|
|
431
|
+
// file per variant (update-files.yml) and share the chapter files, so the
|
|
432
|
+
// chapters of a published template name the minted main file of their
|
|
433
|
+
// language and carry the other variants commented out.
|
|
434
|
+
const publishedMains = {
|
|
435
|
+
ustutt: {
|
|
436
|
+
en: ["thesis-example-en", "thesis-example-basic-listings-en"],
|
|
437
|
+
de: ["thesis-example", "thesis-example-basic-listings"],
|
|
438
|
+
},
|
|
439
|
+
"scientific-thesis": {
|
|
440
|
+
en: [
|
|
441
|
+
"main-english",
|
|
442
|
+
"main-basic-listings-english",
|
|
443
|
+
"main-english-thu",
|
|
444
|
+
"main-english-university-of-hamburg",
|
|
445
|
+
],
|
|
446
|
+
de: [
|
|
447
|
+
"main-german",
|
|
448
|
+
"main-basic-listings-german",
|
|
449
|
+
"main-german-thu",
|
|
450
|
+
"main-german-university-of-hamburg",
|
|
451
|
+
],
|
|
452
|
+
},
|
|
453
|
+
};
|
|
454
|
+
const mains = this.props.githubpublish
|
|
455
|
+
? publishedMains[this.props.documentclass][language]
|
|
456
|
+
: [this.props.filenames.main];
|
|
457
|
+
const chapterName = (index, chapter) =>
|
|
458
|
+
`${(index + 1) * 10} - ${chapter.name}`;
|
|
459
|
+
// The chapter the README names and check.yml compiles on its own
|
|
460
|
+
this.props.firstChapter = chapterName(0, chapters[0]);
|
|
461
|
+
this.fs.copyTpl(
|
|
462
|
+
this.templatePath("chapters.dot.latexmkrc"),
|
|
463
|
+
this.destinationPath(`chapters-${language}/.latexmkrc`),
|
|
464
|
+
{ example: this.props.firstChapter },
|
|
465
|
+
);
|
|
427
466
|
const includes = chapters.flatMap((chapter, index) => {
|
|
428
467
|
// Steps of 10 leave room to insert a chapter without renaming the others
|
|
429
|
-
const
|
|
468
|
+
const name = chapterName(index, chapter);
|
|
469
|
+
const base = `chapters-${language}/${name}`;
|
|
430
470
|
if (chapter.markdown) {
|
|
431
471
|
write(`${base}.md`, trim(chapter.lines));
|
|
432
472
|
return markdownInput(`${base}.md`);
|
|
@@ -439,8 +479,10 @@ export default class extends Generator {
|
|
|
439
479
|
if (match) {
|
|
440
480
|
sourceCode = { listings: match[1], lines: [] };
|
|
441
481
|
} else if (line === "%%LTG-SOURCECODE-END") {
|
|
442
|
-
const file = (listings) => `${
|
|
443
|
-
write(
|
|
482
|
+
const file = (listings) => `${name} - ${listings}`;
|
|
483
|
+
write(`${base} - ${sourceCode.listings}.tex`, trim(sourceCode.lines));
|
|
484
|
+
// The path is relative to this directory: subfiles reads the chapter
|
|
485
|
+
// through its import path, and a chapter compiled on its own runs here
|
|
444
486
|
chapterLines.push(
|
|
445
487
|
"% The main file loads either the minted or the listings package",
|
|
446
488
|
"\\ifdefined\\inputminted",
|
|
@@ -457,8 +499,17 @@ export default class extends Generator {
|
|
|
457
499
|
chapterLines.push(line);
|
|
458
500
|
}
|
|
459
501
|
}
|
|
460
|
-
write(`${base}.tex`,
|
|
461
|
-
|
|
502
|
+
write(`${base}.tex`, [
|
|
503
|
+
`% Compiles on its own: latexmk "${name}" (in this directory, see README.md).`,
|
|
504
|
+
"% The subfiles package loads the preamble of the main file named here.",
|
|
505
|
+
...mains.map(
|
|
506
|
+
(main, i) => `${i ? "%" : ""}\\documentclass[../${main}]{subfiles}`,
|
|
507
|
+
),
|
|
508
|
+
"\\begin{document}",
|
|
509
|
+
...trim(chapterLines),
|
|
510
|
+
"\\end{document}",
|
|
511
|
+
]);
|
|
512
|
+
return [`\\subfileinclude{${base}}`];
|
|
462
513
|
});
|
|
463
514
|
|
|
464
515
|
return [...lines.slice(0, start), ...includes, ...lines.slice(end + 1)];
|
|
@@ -640,7 +691,8 @@ export default class extends Generator {
|
|
|
640
691
|
const contentIndex = lines.indexOf("\\begin{document}");
|
|
641
692
|
const headingIndex = lines.findIndex(
|
|
642
693
|
(line, index) =>
|
|
643
|
-
index > contentIndex &&
|
|
694
|
+
index > contentIndex &&
|
|
695
|
+
/^\\(chapter|section|subfileinclude)\{/.test(line),
|
|
644
696
|
);
|
|
645
697
|
const heading = lines[headingIndex].replace(/\\label\{.*$/, "");
|
|
646
698
|
this.fs.write(
|
|
@@ -23,7 +23,7 @@ jobs:
|
|
|
23
23
|
submodules: recursive
|
|
24
24
|
<% } -%>
|
|
25
25
|
- name: Install TeX Live
|
|
26
|
-
uses: zauguin/install-texlive@
|
|
26
|
+
uses: zauguin/install-texlive@c9f3ea3d51b2e04d092c4f9d208a19542d5dabcf # v4.5.0
|
|
27
27
|
with:
|
|
28
28
|
package_file: '${{ github.workspace }}/Texlivefile'
|
|
29
29
|
texlive_version: <%= texlive %>
|
|
@@ -102,13 +102,40 @@ jobs:
|
|
|
102
102
|
<%= filenames.main %>.pdf
|
|
103
103
|
<%= filenames.main %>.log
|
|
104
104
|
<%= filenames.main %>.fls
|
|
105
|
+
<% if (isThesis) { -%>
|
|
106
|
+
chapter:
|
|
107
|
+
# One chapter compiled on its own (package subfiles, see chapters-<%= language %>/README.md)
|
|
108
|
+
name: chapter (latexmk "<%= firstChapter %>")
|
|
109
|
+
runs-on: ubuntu-latest
|
|
110
|
+
steps:
|
|
111
|
+
- name: Set up Git repository
|
|
112
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
113
|
+
- name: Install TeX Live
|
|
114
|
+
uses: zauguin/install-texlive@c9f3ea3d51b2e04d092c4f9d208a19542d5dabcf # v4.5.0
|
|
115
|
+
with:
|
|
116
|
+
package_file: '${{ github.workspace }}/Texlivefile'
|
|
117
|
+
texlive_version: <%= texlive %>
|
|
118
|
+
- name: Prepare latexmk
|
|
119
|
+
run: |
|
|
120
|
+
updmap -sys
|
|
121
|
+
texhash
|
|
122
|
+
tlmgr generate language --rebuild-sys
|
|
123
|
+
- run: latexmk "<%= firstChapter %>"
|
|
124
|
+
working-directory: chapters-<%= language %>
|
|
125
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
126
|
+
with:
|
|
127
|
+
name: chapter
|
|
128
|
+
path: |
|
|
129
|
+
chapters-<%= language %>/<%= firstChapter.replace(/\s+/g, '') %>.pdf
|
|
130
|
+
chapters-<%= language %>/<%= firstChapter.replace(/\s+/g, '') %>.log
|
|
131
|
+
<% } -%>
|
|
105
132
|
word-count:
|
|
106
133
|
runs-on: ubuntu-latest
|
|
107
134
|
steps:
|
|
108
135
|
- name: Set up Git repository
|
|
109
136
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
110
137
|
- name: Install TeX Live
|
|
111
|
-
uses: zauguin/install-texlive@
|
|
138
|
+
uses: zauguin/install-texlive@c9f3ea3d51b2e04d092c4f9d208a19542d5dabcf # v4.5.0
|
|
112
139
|
with:
|
|
113
140
|
package_file: '${{ github.workspace }}/Texlivefile'
|
|
114
141
|
texlive_version: <%= texlive %>
|
|
@@ -287,7 +314,7 @@ jobs:
|
|
|
287
314
|
version: 1.0
|
|
288
315
|
execute_install_scripts: true
|
|
289
316
|
- name: Install latexindent
|
|
290
|
-
uses: zauguin/install-texlive@
|
|
317
|
+
uses: zauguin/install-texlive@c9f3ea3d51b2e04d092c4f9d208a19542d5dabcf # v4.5.0
|
|
291
318
|
with:
|
|
292
319
|
packages: latexindent
|
|
293
320
|
texlive_version: <%= texlive %>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<% 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]; -%>
|
|
1
2
|
<% const snippetsHint = "The LaTeX snippets this template is assembled from can be inspected at <https://latextemplates.github.io/latex-snippets/>."; -%>
|
|
2
3
|
<% if (githubpublish) {
|
|
3
4
|
switch (documentclass) {
|
|
@@ -183,6 +184,22 @@ This might lead to undesired results such as hyperlinks not working any more or
|
|
|
183
184
|
In case you think, a package needs to be altered or added, feel free to open an issue.
|
|
184
185
|
<% } -%>
|
|
185
186
|
<% } -%>
|
|
187
|
+
<% if (githubpublish) { -%>
|
|
188
|
+
|
|
189
|
+
### Advanced quick start
|
|
190
|
+
|
|
191
|
+
Instead of downloading the ZIP, let git fetch the template; later template updates then merge into your text (see the [FAQ](#q-how-can-i-synchronize-updates-from-the-template-to-my-repository)).
|
|
192
|
+
In an empty folder:
|
|
193
|
+
|
|
194
|
+
```shell
|
|
195
|
+
git init -b main
|
|
196
|
+
git remote add template https://github.com/latextemplates/<%= templateRepo %>.git
|
|
197
|
+
git fetch template
|
|
198
|
+
git merge template/main
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Then edit and compile as above.
|
|
202
|
+
<% } -%>
|
|
186
203
|
<% if (isThesis) { -%>
|
|
187
204
|
|
|
188
205
|
## Writing your thesis
|
|
@@ -213,6 +230,15 @@ Following features are enabled in this template:
|
|
|
213
230
|
For the original output, use `\bibliographystyle{IEEEtranN}`.
|
|
214
231
|
- Citation ranges are written out: `[1], [2], [3]` instead of `[1]–[3]`.
|
|
215
232
|
For ranges, use the natbib option `sort&compress` instead of `sort`.
|
|
233
|
+
<% if (font == "default" || githubpublish) { -%>
|
|
234
|
+
- The fonts IEEEtran intends (Times, Helvetica, Courier) with both engines; with LuaLaTeX, fontspec would otherwise fall back to Latin Modern.
|
|
235
|
+
|
|
236
|
+
| Engine | Text | Sans | Code | Math |
|
|
237
|
+
| --- | --- | --- | --- | --- |
|
|
238
|
+
| pdfLaTeX | Nimbus Roman | Nimbus Sans | [newtxtt](https://tug.org/FontCatalogue/newtxtt/) | [Computer Modern](https://tug.org/FontCatalogue/computermodern/) |
|
|
239
|
+
| LuaLaTeX | [TeX Gyre Termes](https://tug.org/FontCatalogue/texgyretermes/) | [TeX Gyre Heros](https://tug.org/FontCatalogue/texgyreheros/) | [TeX Gyre Cursor](https://tug.org/FontCatalogue/texgyrecursor/) | [Latin Modern Math](https://tug.org/FontCatalogue/latinmodernroman/) |
|
|
240
|
+
|
|
241
|
+
<% } -%>
|
|
216
242
|
<% } -%>
|
|
217
243
|
<% if (documentclass == 'lncs') { -%>
|
|
218
244
|
- Provides a skeletal [<%= filenames.main %>.tex](<%= filenames.main %>.tex) file
|
|
@@ -234,6 +260,8 @@ Following features are enabled in this template:
|
|
|
234
260
|
`minted` provides better output than [listings], but requires [latexminted] to be installed.
|
|
235
261
|
<% } -%>
|
|
236
262
|
<% if (isThesis) { -%>
|
|
263
|
+
- Each chapter compiles on its own, which is much faster than the whole thesis while writing: `latexmk "10 - introduction"` in `chapters-<%= githubpublish ? 'en' : language %>/`.
|
|
264
|
+
This is enabled by the [subfiles](https://ctan.org/pkg/subfiles) package; see [chapters-<%= githubpublish ? 'en' : language %>/README.md](chapters-<%= githubpublish ? 'en' : language %>/README.md).
|
|
237
265
|
- Numbered research questions: `\defRQ` prints "Research Question 1 (RQ1)", `\refRQ` references it as "RQ1".
|
|
238
266
|
This is enabled by the [refenums](https://github.com/koppor/refenums) package; `refenums.sty` is part of this repository, because TeX Live contains an older version.
|
|
239
267
|
<% } -%>
|
|
@@ -792,20 +820,38 @@ replace the term `thesis-example` by e.g., `thesis-topic-name` in the following
|
|
|
792
820
|
| `.gitignore` | `thesis-example*.png` |
|
|
793
821
|
| `Makefile` | `MASTER_TEX = thesis-example.tex` |
|
|
794
822
|
|
|
823
|
+
### Q: The thesis is in English, but the title page and the Kurzfassung have to be in German. Which main file do I use?
|
|
824
|
+
|
|
825
|
+
`thesis-example-en.tex`: its title page is German anyway (the examination regulations prescribe it), the "Kurzfassung" is set in German with `\begin{otherlanguage}{ngerman}`, and everything else is English, including "Contents", "List of Figures", "Chapter", and "Figure".
|
|
826
|
+
To keep an existing German `thesis-example.tex` instead, put `\selectlanguage{english}` in front of `\tableofcontents`; all headings and captions from there on are English.
|
|
827
|
+
|
|
795
828
|
### Q: I get the error `Reload initiated (formats: otf,ttf,ttc); reason: Font "Inconsolatazi4" not found.`
|
|
796
829
|
|
|
797
830
|
Install package `inconsolata`
|
|
798
831
|
<% break; default: -%>
|
|
799
832
|
<% break; } -%>
|
|
833
|
+
<% if (isThesis) { -%>
|
|
834
|
+
|
|
835
|
+
### Q: How do I compile a single chapter?
|
|
836
|
+
|
|
837
|
+
In `chapters-<%= githubpublish ? 'en' : language %>/`, run `latexmk "10 - introduction"`; the result is `10-introduction.pdf`.
|
|
838
|
+
Each chapter file starts with `\documentclass[../<main file>]{subfiles}`, and the [subfiles](https://ctan.org/pkg/subfiles) package loads the preamble of that main file.
|
|
839
|
+
The `.latexmkrc` in the chapter directory takes the settings of the main directory and lets LaTeX find the packages, figures and the bibliography there.
|
|
840
|
+
References to other chapters show as `??` and the bibliography is not printed; the full document has them.
|
|
841
|
+
<% } -%>
|
|
800
842
|
<% if (githubpublish) { -%>
|
|
801
843
|
|
|
802
844
|
### Q: How can I synchronize updates from the template to my repository?
|
|
803
845
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
846
|
+
Set up the repository as described in the [advanced quick start](#advanced-quick-start): this template is the git remote `template`.
|
|
847
|
+
To get the latest template version, fetch and merge it:
|
|
848
|
+
|
|
849
|
+
```shell
|
|
850
|
+
git fetch template
|
|
851
|
+
git merge template/main
|
|
852
|
+
```
|
|
807
853
|
|
|
808
|
-
|
|
854
|
+
If you already have a repository, add the remote first: `git remote add template https://github.com/latextemplates/<%= templateRepo %>.git`.
|
|
809
855
|
Notes on syncing with the upstream repository [are available from GitHub](https://help.github.com/articles/syncing-a-fork/).
|
|
810
856
|
<% } -%>
|
|
811
857
|
|
|
@@ -976,6 +1022,11 @@ Just run pdflatex again.
|
|
|
976
1022
|
|
|
977
1023
|
Look for `% Code for my fancy chapters.` in your main `.tex` file and play around with parameters.
|
|
978
1024
|
|
|
1025
|
+
### Q: How do I let section headings stick out into the left margin?
|
|
1026
|
+
|
|
1027
|
+
Add `\RedeclareSectionCommand[indent=-1cm]{section}` to the preamble; `indent` is the KOMA-Script option for that, the same works for `subsection`, `paragraph`, etc.
|
|
1028
|
+
A negative `\hspace*` in `\addtokomafont{section}` achieves a similar effect, but belongs to the font setting and is not applied to all headings consistently.
|
|
1029
|
+
|
|
979
1030
|
### Q: Aren't there other templates?
|
|
980
1031
|
|
|
981
1032
|
Sure. The [Hagenberg Thesis Document Collection](https://github.com/Digital-Media/HagenbergThesis) seems to be the most promising.
|
|
@@ -988,6 +1039,7 @@ We are collecting alternatives at the issue [#25](https://github.com/latextempla
|
|
|
988
1039
|
- If you included some version control statements, please remove them. Currently, the template does not support any, but it used to support SVN.
|
|
989
1040
|
- By using `\largepage` and `\shortpage`, single lines at the bottom or at the top of the page can be manually fixed.
|
|
990
1041
|
- Search the PDF for "TODO" or similar things. Remove `\usepackage{todonotes}` in your main `.tex` file.
|
|
1042
|
+
- Uncomment `\phfDisableCommentingCommands` in your main `.tex` file to hide all edits and comments made with `\FA{...}`.
|
|
991
1043
|
- Ensure that you run `lualatex` at least three times and that there are no "undefined references".
|
|
992
1044
|
- The margins are intended for good screen reading. **Do not change them** (or do exactly know what you are doing).
|
|
993
1045
|
|
|
@@ -95,6 +95,7 @@ fewerfloatpages
|
|
|
95
95
|
fifo-stack<%# required by algpseudocodex%>
|
|
96
96
|
<% } -%>
|
|
97
97
|
filehook
|
|
98
|
+
filemod<%# required by graphicscache %>
|
|
98
99
|
fixmath
|
|
99
100
|
<% if (githubpublish || (documentclass == "acmart") || isThesis) { -%>
|
|
100
101
|
float
|
|
@@ -124,7 +125,9 @@ glossaries-extra
|
|
|
124
125
|
glossaries-german
|
|
125
126
|
<% } -%>
|
|
126
127
|
<% } -%>
|
|
128
|
+
gitver
|
|
127
129
|
graphics
|
|
130
|
+
graphicscache
|
|
128
131
|
<% if (githubpublish || isThesis) { -%>
|
|
129
132
|
helvetic
|
|
130
133
|
<% } -%>
|
|
@@ -152,6 +155,9 @@ iftex
|
|
|
152
155
|
<% if (githubpublish || (isPaper && reallatexcompiler.startsWith("lualatex"))) { -%>
|
|
153
156
|
impnattypo
|
|
154
157
|
<% } -%>
|
|
158
|
+
<% if (githubpublish || isThesis) { -%>
|
|
159
|
+
import<%# required by subfiles %>
|
|
160
|
+
<% } -%>
|
|
155
161
|
inconsolata<%# required by ustutt, scientific-thesis, acm%>
|
|
156
162
|
infwarerr
|
|
157
163
|
intcalc
|
|
@@ -184,8 +190,8 @@ llncs
|
|
|
184
190
|
<% if (githubpublish || isThesis) { -%>
|
|
185
191
|
lscapeenhanced
|
|
186
192
|
<% } -%>
|
|
187
|
-
<% if (githubpublish || (uml == "mermaid")) { -%>
|
|
188
|
-
ltmermaid
|
|
193
|
+
<% if ((githubpublish || (uml == "mermaid")) && (texlive >= 2026)) { -%>
|
|
194
|
+
ltmermaid<%# in TeX Live from 2026 on %>
|
|
189
195
|
<% } -%>
|
|
190
196
|
ltxcmds
|
|
191
197
|
<% if (githubpublish || (reallatexcompiler.startsWith("lualatex"))) { -%>
|
|
@@ -195,6 +201,8 @@ lualatex-math
|
|
|
195
201
|
luamplib
|
|
196
202
|
metapost<%# plain.mp, required by luamplib %>
|
|
197
203
|
<% } -%>
|
|
204
|
+
lua-ul<%# breakable text highlighting (\textcomment) with LuaLaTeX %>
|
|
205
|
+
luacolor<%# required by lua-ul for colored highlighting %>
|
|
198
206
|
lua-widow-control
|
|
199
207
|
luatex85
|
|
200
208
|
luatexbase
|
|
@@ -265,9 +273,11 @@ pdftexcmds
|
|
|
265
273
|
pgf
|
|
266
274
|
pgfplots<%# used by the pgfplots example; also provides pgfplotstable %>
|
|
267
275
|
<% } -%>
|
|
276
|
+
phfcc
|
|
268
277
|
<% if (githubpublish || (isThesis && examples)) { -%>
|
|
269
278
|
pgf-umlsd
|
|
270
279
|
<% } -%>
|
|
280
|
+
pgfopts<%# required by graphicscache %>
|
|
271
281
|
pict2e
|
|
272
282
|
<% if (githubpublish || (documentclass == "ustutt")) { -%>
|
|
273
283
|
placeins
|
|
@@ -312,10 +322,14 @@ soulpos
|
|
|
312
322
|
stringenc
|
|
313
323
|
sttools<%# this includes stfloats (at least required by acmart, ieee, lncs, ustutt, scientific-thesis) and flushend (ieee: balances the columns on the last page) %>
|
|
314
324
|
subfig
|
|
325
|
+
<% if (githubpublish || isThesis) { -%>
|
|
326
|
+
subfiles
|
|
327
|
+
<% } -%>
|
|
315
328
|
svn-prov<%# at least required by acmart, ustutt, scientific-thesis%>
|
|
316
329
|
<% if (githubpublish || isThesis) { -%>
|
|
317
330
|
tabto-ltx
|
|
318
331
|
<% } -%>
|
|
332
|
+
tablefootnote
|
|
319
333
|
tcolorbox
|
|
320
334
|
tex-gyre<%# at least required by acm, ieee, font config "times"; provides ts1-qtmr %>
|
|
321
335
|
texcount
|
|
@@ -355,8 +369,8 @@ xcharter
|
|
|
355
369
|
xcolor
|
|
356
370
|
<% if (githubpublish || isThesis) { -%>
|
|
357
371
|
xfor
|
|
358
|
-
xifthen
|
|
359
372
|
<% } -%>
|
|
373
|
+
xifthen<%# required by tablefootnote %>
|
|
360
374
|
xkeyval
|
|
361
375
|
<% if (githubpublish || (documentclass == "ieee") || (font == "times")) { -%>
|
|
362
376
|
xpatch
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
% Eintrag bricht den Build ab.
|
|
6
6
|
\newabbreviation{fr}{FR}{Fehlerrate}
|
|
7
7
|
\newabbreviation{er}{ER}{error rate}
|
|
8
|
-
\newabbreviation[shortplural={RDBMS},longplural={
|
|
8
|
+
\newabbreviation[shortplural={RDBMS},longplural={Relational Database Management Systems}]{rdbms}{RDBMS}{Relational Database Management System}
|
|
9
9
|
\newabbreviation[category=abbreviationdot]{dante}{DANTE e.V.}{Deutschsprachige Anwendervereinigung \TeX\ e.V.}
|
|
10
10
|
\newabbreviation{gp}{G.P.}{General Practitioner}
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
% every main file (English and German) loads -- an undefined entry breaks the build.
|
|
6
6
|
\newabbreviation{er}{ER}{error rate}
|
|
7
7
|
\newabbreviation{fr}{FR}{Fehlerrate}
|
|
8
|
-
\newabbreviation[shortplural={RDBMS},longplural={
|
|
8
|
+
\newabbreviation[shortplural={RDBMS},longplural={Relational Database Management Systems}]{rdbms}{RDBMS}{Relational Database Management System}
|
|
9
9
|
\newabbreviation[category=abbreviationdot]{dante}{DANTE e.V.}{Deutschsprachige Anwendervereinigung \TeX\ e.V.}
|
|
10
10
|
\newabbreviation{gp}{G.P.}{General Practitioner}
|
|
11
11
|
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
% Hint by https://tex.stackexchange.com/a/463188/9075
|
|
10
10
|
% \usepackage{glossary-longextra}
|
|
11
11
|
|
|
12
|
-
%
|
|
13
|
-
%
|
|
14
|
-
%
|
|
15
|
-
\
|
|
12
|
+
% The list is sorted by TeX itself (\printnoidxglossary): no external tool (makeglossaries) is needed, so the list
|
|
13
|
+
% also appears when compiling without latexmk. TeX sorting is fine for a list of abbreviations; it is slow for
|
|
14
|
+
% large glossaries and sorts accented characters by code point.
|
|
15
|
+
\makenoidxglossaries
|
|
16
16
|
|
|
17
17
|
\input{abbreviations}
|
|
@@ -10,5 +10,9 @@ In case one wants to name the author: \textcite{mwe} shows a minimal \LaTeX{} ex
|
|
|
10
10
|
|
|
11
11
|
Note that \texttt{\textbackslash textcite\{mwe\}} prints both the author and the reference to the bibliography entry.
|
|
12
12
|
|
|
13
|
+
A thesis is cited like any other work: a master's thesis~\cite{Shannon1940} or a doctoral thesis~\cite{Nash1950}.
|
|
14
|
+
The entry types \texttt{@MastersThesis} and \texttt{@PhdThesis} are labeled in the document language (<%- bquote %>MA thesis<%- equote %> or <%- bquote %>Masterarbeit<%- equote %>, <%- bquote %>PhD thesis<%- equote %> or <%- bquote %>Diss.<%- equote %>).
|
|
15
|
+
For a Bachelor's thesis, use \texttt{@Thesis} with \texttt{type = \{bathesis\}}; for a Diplomarbeit, \texttt{type = \{Diplomarbeit\}} is printed as is.
|
|
16
|
+
|
|
13
17
|
Remember that you have to call \texttt{biber <%= filenames.main %>} to generate the bibliography data for \texttt{<%= reallatexcompiler %>}.
|
|
14
18
|
You will need to run \texttt{<%= reallatexcompiler %>} twice so that the page numbers are up to date.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
backrefpage = {zitiert auf S\adddot},
|
|
5
5
|
backrefpages = {zitiert auf S\adddot},
|
|
6
6
|
andothers = {et\ \addabbrvspace al\adddot},
|
|
7
|
+
mathesis = {Masterarbeit}, % biblatex's default is "Magisterarbeit"
|
|
7
8
|
% Tipp von http://www.mrunix.de/forums/showthread.php?64665-biblatex-Kann-%DCberschrift-vom-Inhaltsverzeichnis-nicht-%E4ndern&p=293656&viewfull=1#post293656
|
|
8
9
|
bibliography = {Literaturverzeichnis}
|
|
9
10
|
}
|
|
@@ -58,4 +58,19 @@
|
|
|
58
58
|
urldate = {2026-09-23},
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
@MastersThesis{Shannon1940,
|
|
62
|
+
author = {Claude Elwood Shannon},
|
|
63
|
+
title = {A Symbolic Analysis of Relay and Switching Circuits},
|
|
64
|
+
school = {Massachusetts Institute of Technology},
|
|
65
|
+
year = {1940},
|
|
66
|
+
url = {https://hdl.handle.net/1721.1/11173},
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@PhdThesis{Nash1950,
|
|
70
|
+
author = {John Forbes Nash},
|
|
71
|
+
title = {Non-Cooperative Games},
|
|
72
|
+
school = {Princeton University},
|
|
73
|
+
year = {1950},
|
|
74
|
+
}
|
|
75
|
+
|
|
61
76
|
@Comment{jabref-meta: databaseType:<%= bibtextool %>;}
|
|
@@ -2,4 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Eine Datei pro Kapitel, eingebunden von der Hauptdatei in der Reihenfolge ihrer Nummern.
|
|
4
4
|
Die Nummern steigen in Zehnerschritten, damit ein neues Kapitel dazwischen passt, z. B. `25 - mein kapitel.tex`.
|
|
5
|
-
Es wird in der Hauptdatei mit `\
|
|
5
|
+
Es wird in der Hauptdatei mit `\subfileinclude{chapters-de/25 - mein kapitel}` eingebunden.
|
|
6
|
+
|
|
7
|
+
## Ein einzelnes Kapitel übersetzen
|
|
8
|
+
|
|
9
|
+
Jedes Kapitel lässt sich für sich übersetzen, was beim Schreiben deutlich schneller geht als die ganze Arbeit.
|
|
10
|
+
In diesem Verzeichnis: `latexmk "10 - einleitung"` (die `.latexmkrc` hier übernimmt die Einstellungen des Hauptverzeichnisses); das Ergebnis ist `10-einleitung.pdf`.
|
|
11
|
+
Die Kapiteldatei beginnt mit `\documentclass[../main-german]{subfiles}`: Das Paket [subfiles](https://ctan.org/pkg/subfiles) lädt die Präambel dieser Hauptdatei.
|
|
12
|
+
Verweise auf andere Kapitel erscheinen als `??`, und das Literaturverzeichnis fehlt; beides gibt es im Gesamtdokument.
|
|
@@ -2,4 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
One file per chapter, included by the main file in the order of their numbers.
|
|
4
4
|
The numbers go in steps of 10, so a new chapter fits in between, e.g., `25 - my chapter.tex`.
|
|
5
|
-
Add it to the main file with `\
|
|
5
|
+
Add it to the main file with `\subfileinclude{chapters-en/25 - my chapter}`.
|
|
6
|
+
|
|
7
|
+
## Compiling a single chapter
|
|
8
|
+
|
|
9
|
+
Each chapter compiles on its own, which is much faster than the whole thesis while writing it.
|
|
10
|
+
In this directory, run `latexmk "10 - introduction"` (the `.latexmkrc` here takes the settings of the main directory); the result is `10-introduction.pdf`.
|
|
11
|
+
The chapter file starts with `\documentclass[../main-english]{subfiles}`: the [subfiles](https://ctan.org/pkg/subfiles) package loads the preamble of that main file.
|
|
12
|
+
References to other chapters show as `??` and the bibliography is not printed; the full document has them.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Compile one chapter on its own, in this directory: latexmk "<%= example %>"
|
|
2
|
+
# The chapter loads the preamble of the main file (package subfiles). Packages, figures and the
|
|
3
|
+
# bibliography are in the parent directory, which is added to the search paths.
|
|
4
|
+
do '../.latexmkrc';
|
|
5
|
+
$ENV{'TEXINPUTS'} = '..' . $search_path_separator . ($ENV{'TEXINPUTS'} // '');
|
|
6
|
+
$ENV{'BIBINPUTS'} = '..' . $search_path_separator . ($ENV{'BIBINPUTS'} // '');
|
|
7
|
+
# Spaces in the job name break the ifplatform package, so the PDF is named without them: <%= example.replace(/\s+/g, '') %>.pdf
|
|
8
|
+
my ($chapter) = grep { !/^-/ } @ARGV;
|
|
9
|
+
if (defined $chapter) { ($jobname = $chapter) =~ s/\.tex$//; $jobname =~ s/\s+//g; }
|
|
@@ -42,6 +42,7 @@ add-tex-command savesymbol p
|
|
|
42
42
|
add-tex-command setmainfont ooooppppppppppp
|
|
43
43
|
add-tex-command setmathfont ooooppppppppppp
|
|
44
44
|
add-tex-command setminted ppppppp
|
|
45
|
+
add-tex-command setlocalecaption ppp
|
|
45
46
|
add-tex-command setmonofont ooooppppppppppp
|
|
46
47
|
add-tex-command setsansfont oooooooopppppppppppp
|
|
47
48
|
add-tex-command setupRefEnum opp
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
personal_ws-1.1 de
|
|
1
|
+
personal_ws-1.1 de 178 utf-8
|
|
2
2
|
ACM
|
|
3
3
|
Access
|
|
4
4
|
Atlantic
|
|
@@ -12,6 +12,7 @@ Database
|
|
|
12
12
|
Diag
|
|
13
13
|
FancyVerbLine
|
|
14
14
|
Firstname
|
|
15
|
+
FlateEncode
|
|
15
16
|
Fließtext
|
|
16
17
|
Geänderter
|
|
17
18
|
Hier
|
|
@@ -42,6 +43,7 @@ Projects
|
|
|
42
43
|
RDBMS
|
|
43
44
|
RGB
|
|
44
45
|
Rückverweise
|
|
46
|
+
Schrödinger
|
|
45
47
|
StepLineNo
|
|
46
48
|
TODO
|
|
47
49
|
TODOs
|
|
@@ -57,6 +59,7 @@ Zref
|
|
|
57
59
|
abbreviationdot
|
|
58
60
|
aboveskip
|
|
59
61
|
acmnumeric
|
|
62
|
+
addarg
|
|
60
63
|
angepasst
|
|
61
64
|
applica
|
|
62
65
|
args
|
|
@@ -98,8 +101,10 @@ funktioniert
|
|
|
98
101
|
für
|
|
99
102
|
geändert
|
|
100
103
|
gp
|
|
104
|
+
graphicscache
|
|
101
105
|
html
|
|
102
106
|
hypertext
|
|
107
|
+
impnattypo
|
|
103
108
|
inparaenum
|
|
104
109
|
ist
|
|
105
110
|
itemizations
|
|
@@ -134,6 +139,7 @@ nur
|
|
|
134
139
|
oldstyle
|
|
135
140
|
paralist
|
|
136
141
|
pdfcomment
|
|
142
|
+
phfcc
|
|
137
143
|
powerset
|
|
138
144
|
produziert
|
|
139
145
|
pygments
|
|
@@ -141,6 +147,7 @@ quickstart
|
|
|
141
147
|
rdbms
|
|
142
148
|
refstepcounter
|
|
143
149
|
renderers
|
|
150
|
+
rmstrikethrough
|
|
144
151
|
seit
|
|
145
152
|
shortplural
|
|
146
153
|
showstringspaces
|
|
@@ -153,7 +160,9 @@ subcaption
|
|
|
153
160
|
subfig
|
|
154
161
|
subfigure
|
|
155
162
|
subfigures
|
|
163
|
+
tablefootnote
|
|
156
164
|
tbl
|
|
165
|
+
threeparttable
|
|
157
166
|
tion
|
|
158
167
|
tl
|
|
159
168
|
tmpa
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
personal_ws-1.1 en
|
|
1
|
+
personal_ws-1.1 en 182 utf-8
|
|
2
2
|
ACM
|
|
3
3
|
Atlantic
|
|
4
4
|
BPEL
|
|
@@ -11,6 +11,7 @@ Database
|
|
|
11
11
|
Diag
|
|
12
12
|
FancyVerbLine
|
|
13
13
|
Firstname
|
|
14
|
+
FlateEncode
|
|
14
15
|
Geänderter
|
|
15
16
|
Hier
|
|
16
17
|
IEEEtran
|
|
@@ -38,6 +39,7 @@ PNG
|
|
|
38
39
|
Practitioner
|
|
39
40
|
RDBMS
|
|
40
41
|
RGB
|
|
42
|
+
Schrödinger
|
|
41
43
|
ScienceOS
|
|
42
44
|
StepLineNo
|
|
43
45
|
TODO
|
|
@@ -54,6 +56,7 @@ Zref
|
|
|
54
56
|
abbreviationdot
|
|
55
57
|
aboveskip
|
|
56
58
|
acmnumeric
|
|
59
|
+
addarg
|
|
57
60
|
angepasst
|
|
58
61
|
applica
|
|
59
62
|
args
|
|
@@ -98,8 +101,10 @@ für
|
|
|
98
101
|
geändert
|
|
99
102
|
gnuplot
|
|
100
103
|
gp
|
|
104
|
+
graphicscache
|
|
101
105
|
html
|
|
102
106
|
hypertext
|
|
107
|
+
impnattypo
|
|
103
108
|
inparaenum
|
|
104
109
|
ist
|
|
105
110
|
itemizations
|
|
@@ -136,6 +141,7 @@ oldstyle
|
|
|
136
141
|
paralist
|
|
137
142
|
pdfcomment
|
|
138
143
|
pgfplots
|
|
144
|
+
phfcc
|
|
139
145
|
powerset
|
|
140
146
|
produziert
|
|
141
147
|
programmatically
|
|
@@ -144,6 +150,7 @@ quickstart
|
|
|
144
150
|
rdbms
|
|
145
151
|
refstepcounter
|
|
146
152
|
renderers
|
|
153
|
+
rmstrikethrough
|
|
147
154
|
seit
|
|
148
155
|
shortplural
|
|
149
156
|
showstringspaces
|
|
@@ -156,7 +163,9 @@ subcaption
|
|
|
156
163
|
subfig
|
|
157
164
|
subfigure
|
|
158
165
|
subfigures
|
|
166
|
+
tablefootnote
|
|
159
167
|
tbl
|
|
168
|
+
threeparttable
|
|
160
169
|
tikz
|
|
161
170
|
tion
|
|
162
171
|
tl
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<%= filenames.main %>.pdf
|
|
2
2
|
<%= filenames.main %>-*.pdf
|
|
3
|
+
# single chapters compiled on their own (see chapters-*/README.md)
|
|
4
|
+
chapters-*/*.pdf
|
|
3
5
|
figures/*.pdf_tex
|
|
4
6
|
|
|
5
7
|
<% if (documentclass == 'ustutt') { -%>
|
|
@@ -29,6 +31,9 @@ mermaid/
|
|
|
29
31
|
textidote.html
|
|
30
32
|
*.textidote.html
|
|
31
33
|
|
|
34
|
+
# graphicscache package (re-encoded images)
|
|
35
|
+
graphicscache/
|
|
36
|
+
|
|
32
37
|
# markdown package (cache of converted Markdown)
|
|
33
38
|
_markdown_*/
|
|
34
39
|
*.markdown.in
|
|
@@ -46,6 +46,8 @@ extend-ignore-re = [
|
|
|
46
46
|
]
|
|
47
47
|
|
|
48
48
|
[default.extend-words]
|
|
49
|
+
# Ghostscript filter name FlateEncode (graphicscache preamble)
|
|
50
|
+
Flate = "Flate"
|
|
49
51
|
# German name of the algorithm float, mentioned in the CHANGELOG
|
|
50
52
|
Algorithmus = "Algorithmus"
|
|
51
53
|
# TeX Gyre Heros (font)
|