generator-latex-template 2026.10.19 → 2026.10.26
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 +5 -0
- package/generators/app/index.js +7 -0
- package/generators/app/templates/.devcontainer/devcontainer.json +18 -0
- package/generators/app/templates/README.en.md +21 -2
- package/generators/app/templates/Texlivefile +5 -6
- package/generators/app/templates/docs/latex-setup.md +79 -113
- package/generators/app/templates/floats.preamble.en.tex +4 -0
- package/generators/app/templates/font.preamble.en.tex +6 -2
- package/generators/app/templates/latexmkrc +8 -0
- package/generators/app/templates/linebreaker.preamble.en.tex +8 -0
- package/generators/app/templates/main.de.tex +32 -11
- package/generators/app/templates/main.en.tex +32 -11
- package/generators/app/templates/nowidow.preamble.en.tex +10 -3
- package/generators/app/templates/progress.preamble.en.tex +17 -0
- package/generators/app/templates/url.preamble.de.tex +5 -4
- package/generators/app/templates/url.preamble.en.tex +4 -4
- package/package.json +1 -1
package/generators/app/CLAUDE.md
CHANGED
|
@@ -26,6 +26,11 @@ the feature vanishes for some switch combination without any error.
|
|
|
26
26
|
`<% if (examples) %>`); package loads go in the preamble area. Guard each with the
|
|
27
27
|
right condition (`isThesis`, a switch value, …) — and gate an example to where the
|
|
28
28
|
config that makes it compile is present.
|
|
29
|
+
2a. **Package choice → ADR.** When you pick one package over alternatives (e.g.
|
|
30
|
+
`progressbar` over `progress`), record it as a new ADR in `docs/decisions/` (MADR,
|
|
31
|
+
add it to `index.md`) and add or update the matching GADR in the sibling
|
|
32
|
+
`gadr-latex-packages` repo (see the root `CLAUDE.md`, "Repo roles"); the ADR links the GADR.
|
|
33
|
+
Example: ADR-0015 and `gadr-latex-packages/progress-bars.md`.
|
|
29
34
|
3. **`Texlivefile`** — add the TeX Live package name, guarded (usually
|
|
30
35
|
`githubpublish || <condition>`; `githubpublish` deliberately bundles everything).
|
|
31
36
|
4. **Shell-escape is derived, never hardcoded.** It is the boolean
|
package/generators/app/index.js
CHANGED
|
@@ -770,6 +770,13 @@ export default class extends Generator {
|
|
|
770
770
|
break;
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
+
// GitHub Codespaces (and VS Code Dev Containers): work inside the image, no local LaTeX installation
|
|
774
|
+
this.fs.copyTpl(
|
|
775
|
+
this.templatePath(".devcontainer/devcontainer.json"),
|
|
776
|
+
this.destinationPath(".devcontainer/devcontainer.json"),
|
|
777
|
+
this.props,
|
|
778
|
+
);
|
|
779
|
+
|
|
773
780
|
if (this.props.isThesis) {
|
|
774
781
|
this.fs.copy(this.templatePath("docs/*"), this.destinationPath("docs/"));
|
|
775
782
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "LaTeX",
|
|
3
|
+
"image": "<%= ((uml == "plantuml") || (uml == "mermaid")) ? danteImage : dockerImage %>",
|
|
4
|
+
"customizations": {
|
|
5
|
+
"vscode": {
|
|
6
|
+
"extensions": [
|
|
7
|
+
"james-yu.latex-workshop",
|
|
8
|
+
"tecosaur.latex-utilities",
|
|
9
|
+
"ltex-plus.vscode-ltex-plus",
|
|
10
|
+
"jabref.jabref-4-vscode",
|
|
11
|
+
"davidanson.vscode-markdownlint"
|
|
12
|
+
],
|
|
13
|
+
"settings": {
|
|
14
|
+
"latex-workshop.docker.enabled": false
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -414,6 +414,8 @@ The image does not contain <%= (uml == "plantuml") ? "PlantUML" : "the Mermaid C
|
|
|
414
414
|
```
|
|
415
415
|
|
|
416
416
|
1. Optional: Let VS Code compile in the container, see ["VS Code configuration"](#vs-code-configuration).
|
|
417
|
+
|
|
418
|
+
No Docker at hand? Open the repository in [GitHub Codespaces](https://github.com/features/codespaces) and compile in the browser.
|
|
417
419
|
<% switch (docker) { case "reitzig": -%>
|
|
418
420
|
|
|
419
421
|
Alternatively, use the generated `Dockerfile`, which is based on the [Dockerfile by reitzig](https://github.com/reitzig/texlive-docker).
|
|
@@ -489,7 +491,7 @@ Independent of the chosen setup:
|
|
|
489
491
|
Please download [LanguageTool] (Windows: `choco install languagetool`) and [configure TeXstudio to use it](http://wiki.languagetool.org/checking-la-tex-with-languagetool#toc4).
|
|
490
492
|
Note that it is enough to point to `languagetool.jar`.
|
|
491
493
|
**If TeXstudio doesn't fit your need, check [the list of all available LaTeX Editors](http://tex.stackexchange.com/questions/339/latex-editors-ides).**
|
|
492
|
-
- Use [JabRef] to manage your bibliography (
|
|
494
|
+
- Use [JabRef] to manage your bibliography (in 2026, install the latest [beta version](https://github.com/JabRef/jabref/releases): the stable version 5.15 is too old).
|
|
493
495
|
<% } -%>
|
|
494
496
|
|
|
495
497
|
### Advanced usage
|
|
@@ -849,6 +851,19 @@ Add the class option `authorversion` (see the comment at `\documentclass` in `<%
|
|
|
849
851
|
Use the [`authorarchive` package](https://ctan.org/pkg/authorarchive); `<%= filenames.main %>.tex` contains a commented example.
|
|
850
852
|
<% } -%>
|
|
851
853
|
|
|
854
|
+
### Q: How do I prepare the sources for arXiv?
|
|
855
|
+
|
|
856
|
+
arXiv publishes the uploaded sources, including all comments (such as TODOs and commented-out text).
|
|
857
|
+
[arxiv-latex-cleaner](https://github.com/google-research/arxiv-latex-cleaner) removes comments and unused files and can shrink images:
|
|
858
|
+
|
|
859
|
+
```bash
|
|
860
|
+
pip install arxiv-latex-cleaner
|
|
861
|
+
arxiv_latex_cleaner .
|
|
862
|
+
```
|
|
863
|
+
|
|
864
|
+
Upload the content of the created directory `../<name of this directory>_arXiv`.
|
|
865
|
+
See also ["arXiv"](#arxiv) above.
|
|
866
|
+
|
|
852
867
|
<% } -%>
|
|
853
868
|
### Q: Can I also write in German?
|
|
854
869
|
|
|
@@ -1069,6 +1084,9 @@ Statement from IEEE:
|
|
|
1069
1084
|
<% } -%>
|
|
1070
1085
|
## Further information
|
|
1071
1086
|
|
|
1087
|
+
<% if (!isThesis) { -%>
|
|
1088
|
+
- New to LaTeX? See the [LaTeX setup guide](https://github.com/latextemplates/scientific-thesis-template/blob/main/docs/latex-setup.md) for installing LaTeX and an editor.
|
|
1089
|
+
<% } -%>
|
|
1072
1090
|
<% if (documentclass == 'lncs') { -%>
|
|
1073
1091
|
- tex.stackexchange.com questions regarding LNCS: <https://tex.stackexchange.com/questions/tagged/lncs>
|
|
1074
1092
|
- Original LNCS documentation (without the improvements): [llncsdoc.pdf](https://mirrors.ctan.org/macros/latex/contrib/llncs/llncsdoc.pdf) from the [llncs CTAN package](https://ctan.org/pkg/llncs). The old `llncs.dem` demonstration is no longer part of that package; the official sample paper (`samplepaper.tex`) is contained in Springer's [LaTeX2e Proceedings Templates (zip)](https://www.springer.com/gp/computer-science/lncs/conference-proceedings-guidelines).
|
|
@@ -1076,12 +1094,13 @@ Statement from IEEE:
|
|
|
1076
1094
|
<% if (githubpublish) { -%>
|
|
1077
1095
|
- Why the templates use which packages: [decision records of the template generator](https://github.com/latextemplates/generator-latex-template/tree/main/docs/decisions)
|
|
1078
1096
|
<% } -%>
|
|
1079
|
-
-
|
|
1097
|
+
- Common questions of LaTeX beginners: the list of [often referenced questions on TeX.SE](https://tex.meta.stackexchange.com/q/2419/9075) and Barbara Beeton: [What every LaTeX newbie should know](https://tug.org/tug2023/files/fr-04-beeton-newbie/beeton-newbie-preprint.pdf) (TUG 2023).
|
|
1080
1098
|
- For German users, go to <https://texfragen.de/>.
|
|
1081
1099
|
- Frank Mittelbach with Ulrike Fischer: [The LaTeX Companion](https://www.latex-project.org/news/2023/03/17/TLC3/) is the ultimate guide for LaTeX: The authors went through all packages offered by [CTAN](https://ctan.org/), selected the most promising ones, described them, and provide minimal working example for each of it.
|
|
1082
1100
|
- Lutz Hering, Heike Hering: [How to Write Technical Reports](https://doi.org/10.1007/978-3-540-69929-3), Springer, 2010; also available in German [Technische Berichte - verständlich gliedern, gut gestalten, überzeugend vortragen](https://doi.org/10.1007/978-3-8348-8317-9). - Highly recommended, because it guides through all aspects of a report (such as a Master Thesis).
|
|
1083
1101
|
- Marcus Deininger et al.: [Studienarbeiten - Ein Leitfaden zur Erstellung, Durchführung und Präsentation wissenschaftlicher Abschlussarbeiten am Beispiel Informatik](https://vdf.ch/studienarbeiten.html?author_id=2877), vdf. - Recommended as guideline for planning and working on the whole thesis.
|
|
1084
1102
|
- Charles Lipson, [Cite Right, Second Edition: A Quick Guide to Citation Styles--MLA, APA, Chicago, the Sciences, Professions, and More](http://www.press.uchicago.edu/ucp/books/book/chicago/C/bo10702043.html), Chicago Guides to Writing, Editing, and Publishing, 2011. - Recommended in case you are unsure about how to correctly cite something.
|
|
1103
|
+
- Other templates: <https://latextemplates.github.io/>
|
|
1085
1104
|
|
|
1086
1105
|
## License
|
|
1087
1106
|
|
|
@@ -91,6 +91,7 @@ everyshi
|
|
|
91
91
|
fgruler<%# required for cover.tex%>
|
|
92
92
|
<% } -%>
|
|
93
93
|
<% if (githubpublish || isThesis) { -%>
|
|
94
|
+
fewerfloatpages
|
|
94
95
|
fifo-stack<%# required by algpseudocodex%>
|
|
95
96
|
<% } -%>
|
|
96
97
|
filehook
|
|
@@ -170,6 +171,7 @@ letltxmacro
|
|
|
170
171
|
libertine
|
|
171
172
|
libertinus-fonts<%# required by libertine%>
|
|
172
173
|
<% } -%>
|
|
174
|
+
linebreaker
|
|
173
175
|
lineno
|
|
174
176
|
lipsum
|
|
175
177
|
listings
|
|
@@ -193,11 +195,9 @@ lualatex-math
|
|
|
193
195
|
luamplib
|
|
194
196
|
metapost<%# plain.mp, required by luamplib %>
|
|
195
197
|
<% } -%>
|
|
198
|
+
lua-widow-control
|
|
196
199
|
luatex85
|
|
197
200
|
luatexbase
|
|
198
|
-
<% if (githubpublish || (lang == "en") && (reallatexcompiler.startsWith("lualatex"))) { -%>
|
|
199
|
-
luaxml<%# required by spelling %>
|
|
200
|
-
<% } -%>
|
|
201
201
|
<% } -%>
|
|
202
202
|
<% if (githubpublish || isThesis) { -%>
|
|
203
203
|
ly1<%# required by mathdesign-font %>
|
|
@@ -278,6 +278,7 @@ plantuml<%# plantuml.sty for the PlantUML UML example; the diagram also needs an
|
|
|
278
278
|
<% if (documentclass == 'acmart') { -%>
|
|
279
279
|
preprint<%# this includes balance, used by the acmart option "balance"%>
|
|
280
280
|
<% } -%>
|
|
281
|
+
progressbar
|
|
281
282
|
<% if (githubpublish || isThesis) { -%>
|
|
282
283
|
psnfss<%# provides pifont%>
|
|
283
284
|
<% } -%>
|
|
@@ -308,9 +309,6 @@ siunitx
|
|
|
308
309
|
snapshot
|
|
309
310
|
soul
|
|
310
311
|
soulpos
|
|
311
|
-
<% if (githubpublish || (lang == "en") && (reallatexcompiler.startsWith("lualatex"))) { -%>
|
|
312
|
-
spelling
|
|
313
|
-
<% } -%>
|
|
314
312
|
stringenc
|
|
315
313
|
sttools<%# this includes stfloats (at least required by acmart, ieee, lncs, ustutt, scientific-thesis) and flushend (ieee: balances the columns on the last page) %>
|
|
316
314
|
subfig
|
|
@@ -364,6 +362,7 @@ xkeyval
|
|
|
364
362
|
xpatch
|
|
365
363
|
<% } -%>
|
|
366
364
|
xstring<%# this includes stfloats; required by textcomp %>
|
|
365
|
+
xurl
|
|
367
366
|
zref
|
|
368
367
|
<% if (githubpublish || (documentclass == "mwe") || (crossref == "zref-clever")) { -%>
|
|
369
368
|
zref-clever
|
|
@@ -1,50 +1,18 @@
|
|
|
1
1
|
# Recommended LaTeX environments
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Grammar and spell checking is available at [TeXstudio].
|
|
6
|
-
Please download [LanguageTool] and [configure TeXstudio to use it](http://wiki.languagetool.org/checking-la-tex-with-languagetool#toc4).
|
|
7
|
-
Note that it is enough to point to `languagetool-server.jar`.
|
|
8
|
-

|
|
9
|
-
|
|
10
|
-
The template is compiled using normal compilation commands.
|
|
11
|
-
Your LaTeX environment (such as [TeXStudio]) should take care about the compilation transparently.
|
|
12
|
-
|
|
13
|
-
If the document needs `--shell-escape` (for PlantUML or Mermaid diagrams, or for minted with TeX Live 2024), its first lines tell TeXstudio to compile with `--shell-escape`.
|
|
14
|
-
Then, TeXstudio warns that the compilation command will be overridden.
|
|
15
|
-
Please answer `(a) allow for this document`:
|
|
16
|
-
|
|
17
|
-

|
|
18
|
-
|
|
19
|
-
At "Build & View", there will be a question to update to biber.
|
|
20
|
-
Please answer `(a) allow for this document`:
|
|
21
|
-
|
|
22
|
-

|
|
23
|
-
|
|
24
|
-
When the "Package Installation" dialog pops up at TeXStudio, choose your username at "The package will be installed for:" and uncheck "Always show this dialog before installing packages."
|
|
25
|
-
If you want to include .svg graphics, [inkscape] has to be in your path.
|
|
26
|
-
|
|
27
|
-
**Attention!** The first compilation will take **at least 30 seconds**, because there will be some LaTeX packages installed.
|
|
28
|
-
|
|
29
|
-
**If TeXstudio doesn't fit your need, check [the list of all available LaTeX Editors](http://tex.stackexchange.com/questions/339/latex-editors-ides).**
|
|
30
|
-
|
|
31
|
-
## JabRef for managing literature
|
|
32
|
-
|
|
33
|
-
Use [JabRef] to manage your bibliography.
|
|
34
|
-
Quick installation using [Chocolatey]: `choco install texstudio languagetool jabref`.
|
|
35
|
-
|
|
36
|
-
A comparison to other literature management software is available at <https://ultimate-comparisons.github.io/ultimate-reference-management-software-comparison/>.
|
|
37
|
-
See [LaTeX Editors/IDEs question on TeX.SX](http://tex.stackexchange.com/questions/339/latex-editors-ides) for a complete list of LaTeX editors.
|
|
3
|
+
The recommended setup is **Docker** for compiling and **VS Code** for editing.
|
|
4
|
+
Both are described in the main README; this page adds the details, platform-specific installation hints, and the TeXstudio alternative.
|
|
38
5
|
|
|
39
6
|
## LaTeX distribution
|
|
40
7
|
|
|
41
|
-
Choose one of the two setups: Docker-based or traditional.
|
|
8
|
+
Choose one of the two setups: Docker-based (recommended) or traditional.
|
|
42
9
|
|
|
43
10
|
### Docker-based (recommended)
|
|
44
11
|
|
|
45
12
|
The [TeX Live docker image by the Island of TeX](https://gitlab.com/islandoftex/images/texlive#tex-live-docker-image) provides a perfectly configured LaTeX distribution with all required tools.
|
|
46
13
|
It works the same on Windows, macOS, and Linux and ships `latexmk`, `biber`, `latexindent`, Python, and `latexminted`.
|
|
47
14
|
Thus, `minted` works without further setup - also on Windows.
|
|
15
|
+
The generated `Dockerfile` is based on that image; see [Usage with docker](../README.md#usage-with-docker) in the main README.
|
|
48
16
|
|
|
49
17
|
1. Install Docker: [Docker Desktop](https://docs.docker.com/desktop/) on Windows and macOS, [Docker Engine](https://docs.docker.com/engine/install/) on Linux.
|
|
50
18
|
On Linux, follow the [post-installation steps](https://docs.docker.com/engine/install/linux-postinstall/) to run `docker` without `sudo`.
|
|
@@ -71,30 +39,12 @@ Thus, `minted` works without further setup - also on Windows.
|
|
|
71
39
|
docker run --rm -v "$PWD:/workdir" registry.gitlab.com/islandoftex/images/texlive:latest latexmk main-english
|
|
72
40
|
```
|
|
73
41
|
|
|
74
|
-
|
|
75
|
-
- "PdfLaTeX" to `docker run --rm -v "DIROFTEXDOCUMENT:/workdir" registry.gitlab.com/islandoftex/images/texlive:latest pdflatex --shell-escape -synctex=1 -interaction=nonstopmode %.tex`,
|
|
76
|
-
- "LuaLaTeX" to `docker run --rm -v "DIROFTEXDOCUMENT:/workdir" registry.gitlab.com/islandoftex/images/texlive:latest lualatex --shell-escape -synctex=1 -interaction=nonstopmode %.tex`, and
|
|
77
|
-
- "Biber" to `docker run --rm -v "DIROFTEXDOCUMENT:/workdir" registry.gitlab.com/islandoftex/images/texlive:latest biber %`.
|
|
78
|
-
|
|
79
|
-
On Linux and macOS, you can mount the directory at the same path instead (`-v DIROFTEXDOCUMENT:DIROFTEXDOCUMENT --workdir=DIROFTEXDOCUMENT`).
|
|
80
|
-
Then, the paths in the generated SyncTeX file match your machine, and jumping between source and PDF keeps working.
|
|
81
|
-
1. Press "Compile" (<kbd>F6</kbd>) in TeXstudio.
|
|
82
|
-
|
|
83
|
-
For VS Code, see ["Using VSCode to Edit, Compile, and Preview PDFs"](#using-vscode-to-edit-compile-and-preview-pdfs).
|
|
42
|
+
To compile from an editor, see [VS Code](#vs-code-as-latex-editor) (recommended) or [TeXstudio](#using-texstudio-with-the-docker-image).
|
|
84
43
|
|
|
85
44
|
### Traditional
|
|
86
45
|
|
|
87
46
|
Install a LaTeX distribution on your machine: [MiKTeX](https://miktex.org/download) on Windows, [TeX Live](https://www.tug.org/texlive/) on macOS and Linux.
|
|
88
47
|
|
|
89
|
-
#### Installation hints for Ubuntu
|
|
90
|
-
|
|
91
|
-
- From Ubuntu 18.10 onwards, the basic version of the template works without issues.
|
|
92
|
-
Advanced usages such as cool syntax highlighting with [minted](https://www.ctan.org/pkg/minted) needs more configuration.
|
|
93
|
-
- Ubuntu 16.04 [ships biber 2.4](https://bugs.launchpad.net/ubuntu/+source/biber/+bug/1589644), so you have to upgrade your texlive distribution.
|
|
94
|
-
The easiest way is to uninstall the ubuntu package and use [install-tl-ubuntu](https://github.com/scottkosty/install-tl-ubuntu).
|
|
95
|
-
Then, you can follow the instructions given at <http://tex.stackexchange.com/a/55459/9075> to update your texlive distribution.
|
|
96
|
-
If you do not want to have an updated installation, but fiddle around with dirty patching your installation, please follow <http://tex.stackexchange.com/questions/84624/how-to-upgrade-biblatex-properly>.
|
|
97
|
-
|
|
98
48
|
#### Installation hints for Windows
|
|
99
49
|
|
|
100
50
|
Note: The default installation of MiKTeX might ship with incompatible biblatex and biber packages.
|
|
@@ -108,7 +58,8 @@ If you installed MiKTeX other ways, you have to run "Update MiKTeX (Admin)" and
|
|
|
108
58
|
1. Open `cmd.exe` as Administrator
|
|
109
59
|
2. Paste and hit <kbd>Enter</kbd> `@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"`
|
|
110
60
|
1. Execute `choco feature enable -n=allowGlobalConfirmation` to get rid off additional installation confirmations.
|
|
111
|
-
1. Execute `choco install
|
|
61
|
+
1. Execute `choco install vscode sumatrapdf.install strawberryperl jre8 jabref languagetool` to install necessary tooling.
|
|
62
|
+
Replace `vscode` by `texstudio` if you prefer TeXstudio.
|
|
112
63
|
1. In case [PlantUML](http://plantuml.com/) should be used, follow the installation instructions at <https://koppor.github.io/plantuml/> listed at the "pre-conditions" section.
|
|
113
64
|
1. For more recommended tooling see <https://github.com/koppor/koppors-chocolatey-scripts>.
|
|
114
65
|
|
|
@@ -143,71 +94,86 @@ If you installed MiKTeX other ways, you have to run "Update MiKTeX (Admin)" and
|
|
|
143
94
|
8. Execute `initexmf --update-fndb` (ensure that no other MiKTeX tooling such as the [MiKTeX Console](https://miktex.org/howto/miktex-console) is run in parallel - see <https://github.com/MiKTeX/miktex/issues/98#issuecomment-375952270>)
|
|
144
95
|
9. Execute `initexmf --mklinks --force`
|
|
145
96
|
|
|
146
|
-
|
|
97
|
+
#### Installation hints for Ubuntu
|
|
98
|
+
|
|
99
|
+
- From Ubuntu 18.10 onwards, the basic version of the template works without issues.
|
|
100
|
+
Advanced usages such as cool syntax highlighting with [minted](https://www.ctan.org/pkg/minted) needs more configuration.
|
|
101
|
+
The easiest way is to uninstall the ubuntu package and use [install-tl-ubuntu](https://github.com/scottkosty/install-tl-ubuntu).
|
|
102
|
+
Then, you can follow the instructions given at <http://tex.stackexchange.com/a/55459/9075> to update your texlive distribution.
|
|
103
|
+
If you do not want to have an updated installation, but fiddle around with dirty patching your installation, please follow <http://tex.stackexchange.com/questions/84624/how-to-upgrade-biblatex-properly>.
|
|
147
104
|
|
|
148
|
-
|
|
105
|
+
Always working solution: the [Docker-based setup](#docker-based-recommended).
|
|
149
106
|
|
|
150
|
-
|
|
107
|
+
## VS Code as LaTeX editor
|
|
151
108
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
With the Docker-based setup, LaTeX Workshop can run the tools in the container (an experimental feature of LaTeX Workshop); add the following to `settings.json`:
|
|
109
|
+
Use [VS Code](https://code.visualstudio.com/) with the [LaTeX Workshop](https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop) extension.
|
|
110
|
+
The recommended extensions and the required `settings.json` entries are given at [VS Code configuration](../README.md#vs-code-configuration) in the main README.
|
|
111
|
+
You can also copy the contents of [vscode.settings.json](../vscode.settings.json) to your VS Code settings file.
|
|
156
112
|
|
|
157
|
-
|
|
158
|
-
"latex-workshop.docker.enabled": true,
|
|
159
|
-
"latex-workshop.docker.image.latex": "registry.gitlab.com/islandoftex/images/texlive:latest",
|
|
160
|
-
```
|
|
113
|
+
With the Docker-based setup, LaTeX Workshop can run the tools in the container (an experimental feature of LaTeX Workshop); add the following to `settings.json`:
|
|
161
114
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
3. Now copy and paste the following snippet into your `settings.json` file (inside the brackets `{}` of your file).
|
|
167
|
-
|
|
168
|
-
```json
|
|
169
|
-
"latex-workshop.latex.tools": [
|
|
170
|
-
{
|
|
171
|
-
"name": "pdflatex",
|
|
172
|
-
"command": "pdflatex",
|
|
173
|
-
"args": [
|
|
174
|
-
"-synctex=1",
|
|
175
|
-
"-interaction=nonstopmode",
|
|
176
|
-
"-file-line-error",
|
|
177
|
-
"%DOC%"
|
|
178
|
-
],
|
|
179
|
-
"env": {}
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"name": "biber",
|
|
183
|
-
"command": "biber",
|
|
184
|
-
"args": [
|
|
185
|
-
"%DOCFILE%"
|
|
186
|
-
],
|
|
187
|
-
"env": {}
|
|
188
|
-
}
|
|
189
|
-
],
|
|
190
|
-
|
|
191
|
-
"latex-workshop.latex.recipes": [
|
|
192
|
-
{
|
|
193
|
-
"name": "pdflatex ➞ biber ➞ pdflatexX2",
|
|
194
|
-
"tools": [
|
|
195
|
-
"pdflatex",
|
|
196
|
-
"biber",
|
|
197
|
-
"pdflatex",
|
|
198
|
-
"pdflatex"
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
```
|
|
115
|
+
```json
|
|
116
|
+
"latex-workshop.docker.enabled": true,
|
|
117
|
+
"latex-workshop.docker.image.latex": "registry.gitlab.com/islandoftex/images/texlive:latest",
|
|
118
|
+
```
|
|
203
119
|
|
|
204
|
-
|
|
120
|
+
If you do not want LaTeX Workshop to compile automatically after each change, add the following line and trigger the compilation manually:
|
|
205
121
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
122
|
+
```json
|
|
123
|
+
"latex-workshop.latex.autoBuild.run": "never",
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## JabRef for managing literature
|
|
127
|
+
|
|
128
|
+
Use [JabRef] to manage your bibliography.
|
|
129
|
+
In 2026, install the latest beta version from <https://github.com/JabRef/jabref/releases>: the stable version 5.15 is too old.
|
|
130
|
+
|
|
131
|
+
A comparison to other literature management software is available at <https://ultimate-comparisons.github.io/ultimate-reference-management-software-comparison/>.
|
|
132
|
+
|
|
133
|
+
## TeXstudio as LaTeX editor (alternative)
|
|
134
|
+
|
|
135
|
+
If VS Code does not fit your needs, [TeXstudio] is a good alternative.
|
|
136
|
+
Windows: `choco install texstudio languagetool`.
|
|
137
|
+
For a complete list of LaTeX editors, see [the LaTeX Editors/IDEs question on TeX.SX](http://tex.stackexchange.com/questions/339/latex-editors-ides).
|
|
138
|
+
|
|
139
|
+
Grammar and spell checking is available at [TeXstudio].
|
|
140
|
+
Please download [LanguageTool] and [configure TeXstudio to use it](http://wiki.languagetool.org/checking-la-tex-with-languagetool#toc4).
|
|
141
|
+
Note that it is enough to point to `languagetool-server.jar`.
|
|
142
|
+

|
|
143
|
+
|
|
144
|
+
The template is compiled using normal compilation commands.
|
|
145
|
+
Your LaTeX environment (such as [TeXstudio]) should take care about the compilation transparently.
|
|
146
|
+
|
|
147
|
+
If the document needs `--shell-escape` (for PlantUML or Mermaid diagrams, or for minted with TeX Live 2024), its first lines tell TeXstudio to compile with `--shell-escape`.
|
|
148
|
+
Then, TeXstudio warns that the compilation command will be overridden.
|
|
149
|
+
Please answer `(a) allow for this document`:
|
|
150
|
+
|
|
151
|
+

|
|
152
|
+
|
|
153
|
+
At "Build & View", there will be a question to update to biber.
|
|
154
|
+
Please answer `(a) allow for this document`:
|
|
155
|
+
|
|
156
|
+

|
|
157
|
+
|
|
158
|
+
When the "Package Installation" dialog pops up at TeXstudio, choose your username at "The package will be installed for:" and uncheck "Always show this dialog before installing packages."
|
|
159
|
+
If you want to include .svg graphics, [inkscape] has to be in your path.
|
|
160
|
+
|
|
161
|
+
**Attention!** The first compilation will take **at least 30 seconds**, because there will be some LaTeX packages installed.
|
|
162
|
+
|
|
163
|
+
### Using TeXstudio with the Docker image
|
|
164
|
+
|
|
165
|
+
1. Open Options > Configure TeXstudio > Commands and set
|
|
166
|
+
- "PdfLaTeX" to `docker run --rm -v "DIROFTEXDOCUMENT:/workdir" registry.gitlab.com/islandoftex/images/texlive:latest pdflatex --shell-escape -synctex=1 -interaction=nonstopmode %.tex`,
|
|
167
|
+
- "LuaLaTeX" to `docker run --rm -v "DIROFTEXDOCUMENT:/workdir" registry.gitlab.com/islandoftex/images/texlive:latest lualatex --shell-escape -synctex=1 -interaction=nonstopmode %.tex`, and
|
|
168
|
+
- "Biber" to `docker run --rm -v "DIROFTEXDOCUMENT:/workdir" registry.gitlab.com/islandoftex/images/texlive:latest biber %`.
|
|
169
|
+
|
|
170
|
+
Replace `DIROFTEXDOCUMENT` by the directory of your LaTeX document. Example: `/home/user/thesis`.
|
|
171
|
+
On Linux and macOS, you can mount the directory at the same path instead (`-v DIROFTEXDOCUMENT:DIROFTEXDOCUMENT --workdir=DIROFTEXDOCUMENT`).
|
|
172
|
+
Then, the paths in the generated SyncTeX file match your machine, and jumping between source and PDF keeps working.
|
|
173
|
+
1. Press "Compile" (<kbd>F6</kbd>) in TeXstudio.
|
|
209
174
|
|
|
210
175
|
[chocolatey]: https://chocolatey.org/
|
|
176
|
+
[inkscape]: https://inkscape.org/
|
|
211
177
|
[JabRef]: https://www.jabref.org
|
|
212
178
|
[LanguageTool]: https://languagetool.org/
|
|
213
|
-
[TeXstudio]:
|
|
179
|
+
[TeXstudio]: https://www.texstudio.org/
|
|
@@ -68,6 +68,10 @@
|
|
|
68
68
|
% The lscape package does not rotate the page either
|
|
69
69
|
\usepackage{pdflscape}
|
|
70
70
|
|
|
71
|
+
% Avoid float pages that are only partially filled: such floats are put back into the text flow.
|
|
72
|
+
% Source: https://ctan.org/pkg/fewerfloatpages
|
|
73
|
+
\usepackage{fewerfloatpages}
|
|
74
|
+
|
|
71
75
|
% Align floats to the top on float-only pages instead of vertically centering them.
|
|
72
76
|
% See http://tex.stackexchange.com/a/28565/9075
|
|
73
77
|
\makeatletter
|
|
@@ -295,12 +295,16 @@ In addition, we make the code appear more nice -%>
|
|
|
295
295
|
|
|
296
296
|
<% } -%>
|
|
297
297
|
<% if (documentclass == 'scientific-thesis') { -%>
|
|
298
|
+
% Headings are sans-serif (KOMA-Script default) in all languages.
|
|
299
|
+
% For serif headings (classic English book style), uncomment the following line.
|
|
300
|
+
% \setkomafont{disposition}{\normalfont\bfseries}
|
|
301
|
+
|
|
298
302
|
% Header: the chapter on the left, the current section on the right.
|
|
299
303
|
% autooneside=false keeps the section mark in a single-sided document.
|
|
300
304
|
\KOMAoptions{autooneside=false}
|
|
301
305
|
\automark[section]{chapter}
|
|
302
|
-
\setkomafont{pageheadfoot}{\normalfont\sffamily}
|
|
303
|
-
\setkomafont{pagenumber}{\normalfont\sffamily}
|
|
306
|
+
\setkomafont{pageheadfoot}{\normalfont\small\sffamily}
|
|
307
|
+
\setkomafont{pagenumber}{\normalfont\small\sffamily}
|
|
304
308
|
|
|
305
309
|
\ihead[]{\leftmark}
|
|
306
310
|
\chead[]{}
|
|
@@ -13,6 +13,14 @@ $ENV{'TEXINPUTS'} = './tikz-uml//:' . ($ENV{'TEXINPUTS'} // '');
|
|
|
13
13
|
# automatically call lualatex/pdflatex (instead of latex)
|
|
14
14
|
$pdf_mode = 1;
|
|
15
15
|
|
|
16
|
+
# The "realmainfile" option of currfile (loaded for the examples) reads the recorder
|
|
17
|
+
# file (.fls), so latexmk takes it for a source file. Its content differs between
|
|
18
|
+
# runs (e.g., the font cache LuaLaTeX creates on the first run), which causes
|
|
19
|
+
# needless reruns and, after five of them, exit code 12 without any error in the
|
|
20
|
+
# log. Ignore the recorder file when checking whether a rerun is needed; this is
|
|
21
|
+
# a no-op when nothing reads it.
|
|
22
|
+
$hash_calc_ignore_pattern{'fls'} = '^';
|
|
23
|
+
|
|
16
24
|
# replaces main.pdf by jobname.pdf
|
|
17
25
|
# Note: -pvc may then not find the PDF.
|
|
18
26
|
#$jobname = 'thesis';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
% LuaLaTeX: avoid lines running into the margin. linebreaker sets an overfull
|
|
2
|
+
% paragraph again with increasing \tolerance and \emergencystretch until it fits.
|
|
3
|
+
% Loaded at the end of the preamble, after all packages that change line breaking.
|
|
4
|
+
% See https://ctan.org/pkg/linebreaker.
|
|
5
|
+
\ifdefined\directlua
|
|
6
|
+
\usepackage{linebreaker}
|
|
7
|
+
\fi
|
|
8
|
+
|
|
@@ -195,17 +195,6 @@
|
|
|
195
195
|
<% } -%>
|
|
196
196
|
<%- include('diagbox.preamble.en.tex', this); -%>
|
|
197
197
|
|
|
198
|
-
<% if ((reallatexcompiler.startsWith("lualatex")) || (latexcompiler == "both")) { indent = '' -%>
|
|
199
|
-
<% if (latexcompiler == "both") { indent = ' ' -%>
|
|
200
|
-
\ifluatex
|
|
201
|
-
<% } -%>
|
|
202
|
-
<%= indent %>\usepackage{spelling}
|
|
203
|
-
<%= indent %>\spellingoutput{off}
|
|
204
|
-
<% if (latexcompiler == "both") { -%>
|
|
205
|
-
\fi
|
|
206
|
-
<% } -%>
|
|
207
|
-
|
|
208
|
-
<% } -%>
|
|
209
198
|
<% if (documentclass == 'ustutt') { -%>
|
|
210
199
|
%% Index
|
|
211
200
|
\usepackage{makeidx} % Index
|
|
@@ -309,6 +298,7 @@
|
|
|
309
298
|
<%- include('hyperref.preamble.de.tex', this); -%>
|
|
310
299
|
|
|
311
300
|
<%- include('floats.preamble.en.tex', this); -%>
|
|
301
|
+
<%- include('progress.preamble.en.tex', this); -%>
|
|
312
302
|
<%- include('subfig.preamble.en.tex', this); -%>
|
|
313
303
|
|
|
314
304
|
<% if (texlive >= 2021) { %><%- include('mindflow.preamble.en.tex', this); %>
|
|
@@ -499,6 +489,7 @@
|
|
|
499
489
|
<% if (isThesis) { %><%- include('thesis-additions.en.tex', this); %>
|
|
500
490
|
|
|
501
491
|
<% } -%>
|
|
492
|
+
<%- include('linebreaker.preamble.en.tex', this); -%>
|
|
502
493
|
\begin{document}
|
|
503
494
|
<% if (documentclass === "ustutt") { -%>
|
|
504
495
|
\setstretch{1.2}
|
|
@@ -889,6 +880,9 @@ The following is typeset for both ustutt and scientific-thesis.
|
|
|
889
880
|
%%% ===============================================================================
|
|
890
881
|
<%= heading1 %>{Introduction}\label{sec:introduction}
|
|
891
882
|
%%% ===============================================================================
|
|
883
|
+
<% if (isThesis) { -%>
|
|
884
|
+
\progress{10}
|
|
885
|
+
<% } -%>
|
|
892
886
|
|
|
893
887
|
\emph{Purpose and scope of your entire report}.
|
|
894
888
|
The purpose of your entire report is to make a \emph{scientific argument using the scientific method}.
|
|
@@ -1031,6 +1025,9 @@ Close by stating how much closer society and science have come in answering the
|
|
|
1031
1025
|
%%% ===============================================================================
|
|
1032
1026
|
<%= heading1 %>{Background (SM1)}\label{sec:background}
|
|
1033
1027
|
%%% ===============================================================================
|
|
1028
|
+
<% if (isThesis) { -%>
|
|
1029
|
+
\progress{15}
|
|
1030
|
+
<% } -%>
|
|
1034
1031
|
|
|
1035
1032
|
\emph{Purpose and scope}.
|
|
1036
1033
|
The background chapter has multiple roles.
|
|
@@ -1054,6 +1051,9 @@ The background chapter has multiple roles.
|
|
|
1054
1051
|
%%% ===============================================================================
|
|
1055
1052
|
<%= heading1 %>{Problem Exposition (optional)}\label{sec:problem-exposition}
|
|
1056
1053
|
%%% ===============================================================================
|
|
1054
|
+
<% if (isThesis) { -%>
|
|
1055
|
+
\progress{10}
|
|
1056
|
+
<% } -%>
|
|
1057
1057
|
|
|
1058
1058
|
\emph{Purpose and scope}.
|
|
1059
1059
|
Introduce the problem context in more detail if <%- cref %>{sec:introduction:topic} does not provide all necessary information about the problem to follow the rest of the report.
|
|
@@ -1090,6 +1090,9 @@ provide details based on <%- cref %>{sec:problem-exposition:context-understandin
|
|
|
1090
1090
|
%%% ===============================================================================
|
|
1091
1091
|
<%= heading1 %>{First Real Chapter addressing first Research Problem}\label{sec:problem1}
|
|
1092
1092
|
%%% ===============================================================================
|
|
1093
|
+
<% if (isThesis) { -%>
|
|
1094
|
+
\progress{0}
|
|
1095
|
+
<% } -%>
|
|
1093
1096
|
|
|
1094
1097
|
\emph{Purpose and scope}.
|
|
1095
1098
|
After you stated research context (SM1), research problem (SM2), and research method (SM3) in <%- cref %>{sec:introduction} and possibly <%- cref %>{sec:problem-exposition}, the remainder of your entire report addresses execution (SM4), results (SM5), and interpretation (SM6).
|
|
@@ -1107,6 +1110,9 @@ Explain that you will address the first sub-problem in <%- cref %>{sec:problem1:
|
|
|
1107
1110
|
% ---------------------------------------------------------------------------------
|
|
1108
1111
|
<%= heading2 %>{First Sub-Problem}\label{sec:problem1:subproblem1}
|
|
1109
1112
|
% ---------------------------------------------------------------------------------
|
|
1113
|
+
<% if (isThesis) { -%>
|
|
1114
|
+
\progress{10}
|
|
1115
|
+
<% } -%>
|
|
1110
1116
|
|
|
1111
1117
|
\emph{The first paragraph describes the first sub-problem and develops the requirements a solution has to satisfy (SM2 for this section).}
|
|
1112
1118
|
The requirements have to be based on the knowledge and reasoning developing in the preceding chapters and sections.
|
|
@@ -1149,6 +1155,9 @@ Ideally, your interpretation leads to the next sub-problem in <%- cref %>{sec:pr
|
|
|
1149
1155
|
% ---------------------------------------------------------------------------------
|
|
1150
1156
|
<%= heading2 %>{Second Sub-Problem}\label{sec:problem1:subproblem2}
|
|
1151
1157
|
% ---------------------------------------------------------------------------------
|
|
1158
|
+
<% if (isThesis) { -%>
|
|
1159
|
+
\progress{0}
|
|
1160
|
+
<% } -%>
|
|
1152
1161
|
|
|
1153
1162
|
You now build on the solution to the first sub-problem of <%- cref %>{sec:problem1:subproblem1} (SM1) and recall second sub-problem (SM2, you detailed in the introduction of this chapter) and follow the same pattern as before (SM3-SM6).
|
|
1154
1163
|
|
|
@@ -1170,6 +1179,9 @@ What is important for you when you are writing a scientific argument is not to s
|
|
|
1170
1179
|
%%% ===============================================================================
|
|
1171
1180
|
<%= heading1 %>{Second Real Chapter}\label{sec:sub-problem2}
|
|
1172
1181
|
%%% ===============================================================================
|
|
1182
|
+
<% if (isThesis) { -%>
|
|
1183
|
+
\progress{0}
|
|
1184
|
+
<% } -%>
|
|
1173
1185
|
|
|
1174
1186
|
Have a short chapter introduction that recalls what you already achieved in <%- cref %>{sec:problem1} and explain the second research problem of your thesis.
|
|
1175
1187
|
The problem has to show up in the introduction in <%- cref %>{sec:introduction:research-question} or in <%- cref %>{sec:problem-exposition:research-problems} already.
|
|
@@ -1179,6 +1191,9 @@ Continue likewise for further research problems.
|
|
|
1179
1191
|
%%% ===============================================================================
|
|
1180
1192
|
<%= heading1 %>{Evaluation}\label{sec:evaluation}
|
|
1181
1193
|
%%% ===============================================================================
|
|
1194
|
+
<% if (isThesis) { -%>
|
|
1195
|
+
\progress{0}
|
|
1196
|
+
<% } -%>
|
|
1182
1197
|
|
|
1183
1198
|
\emph{Purpose and scope}.
|
|
1184
1199
|
The evaluation chapter should be the most formal and rigorously structured chapter of your thesis as the validity of your evaluation argument depends on it.
|
|
@@ -1245,6 +1260,9 @@ Typical questions are:
|
|
|
1245
1260
|
<% } else { -%>
|
|
1246
1261
|
%%LTG-CHAPTER einleitung
|
|
1247
1262
|
<%= heading1 %>{Einleitung}
|
|
1263
|
+
<% if (!isThesis) { -%>
|
|
1264
|
+
% \progress{50} % Fortschrittsbalken, siehe Präambel
|
|
1265
|
+
<% } -%>
|
|
1248
1266
|
\label{sec:introduction}
|
|
1249
1267
|
Hier steht die Einleitung zu dieser Ausarbeitung.
|
|
1250
1268
|
Sie soll nur als Beispiel dienen.
|
|
@@ -1379,6 +1397,9 @@ See \url{https://help.jabref.org/en/CleanupEntries} for an overview of the clean
|
|
|
1379
1397
|
%%% ===============================================================================
|
|
1380
1398
|
<%= heading1 %>{Zusammenfassung und Ausblick}\label{sec:conclusion}
|
|
1381
1399
|
%%% ===============================================================================
|
|
1400
|
+
<% if (isThesis) { -%>
|
|
1401
|
+
\progress{0}
|
|
1402
|
+
<% } -%>
|
|
1382
1403
|
|
|
1383
1404
|
Your conclusions are more than a factual summary of your work: they position, interpret, and defend your findings against the state of the art that you discussed in <%- cref %>{sec:introduction:state-of-art}.
|
|
1384
1405
|
You specifically outline which concrete findings or methodological contributions advance our knowledge towards the general objective you introduced in <%- cref %>{sec:introduction:topic}.
|
|
@@ -184,17 +184,6 @@
|
|
|
184
184
|
<% } -%>
|
|
185
185
|
<%- include('diagbox.preamble.en.tex', this); -%>
|
|
186
186
|
|
|
187
|
-
<% if ((reallatexcompiler.startsWith("lualatex")) || (latexcompiler == "both")) { indent = '' -%>
|
|
188
|
-
<% if (latexcompiler == "both") { indent = ' ' -%>
|
|
189
|
-
\ifluatex
|
|
190
|
-
<% } -%>
|
|
191
|
-
<%= indent %>\usepackage{spelling}
|
|
192
|
-
<%= indent %>\spellingoutput{off}
|
|
193
|
-
<% if (latexcompiler == "both") { -%>
|
|
194
|
-
\fi
|
|
195
|
-
<% } -%>
|
|
196
|
-
|
|
197
|
-
<% } -%>
|
|
198
187
|
<% if (documentclass == 'ustutt') { -%>
|
|
199
188
|
%% Index
|
|
200
189
|
\usepackage{makeidx} % Index
|
|
@@ -297,6 +286,7 @@
|
|
|
297
286
|
<%- include('hyperref.preamble.en.tex', this); -%>
|
|
298
287
|
|
|
299
288
|
<%- include('floats.preamble.en.tex', this); -%>
|
|
289
|
+
<%- include('progress.preamble.en.tex', this); -%>
|
|
300
290
|
<%- include('subfig.preamble.en.tex', this); -%>
|
|
301
291
|
|
|
302
292
|
<% if (texlive >= 2021) { %><%- include('mindflow.preamble.en.tex', this); %>
|
|
@@ -477,6 +467,7 @@
|
|
|
477
467
|
<% if (isThesis) { %><%- include('thesis-additions.en.tex', this); %>
|
|
478
468
|
|
|
479
469
|
<% } -%>
|
|
470
|
+
<%- include('linebreaker.preamble.en.tex', this); -%>
|
|
480
471
|
\begin{document}
|
|
481
472
|
<% if (documentclass === "ustutt") { -%>
|
|
482
473
|
\setstretch{1.2}
|
|
@@ -859,6 +850,9 @@ The following is typeset for both ustutt and scientific-thesis.
|
|
|
859
850
|
%%% ===============================================================================
|
|
860
851
|
<%= heading1 %>{Introduction}\label{sec:introduction}
|
|
861
852
|
%%% ===============================================================================
|
|
853
|
+
<% if (isThesis) { -%>
|
|
854
|
+
\progress{10}
|
|
855
|
+
<% } -%>
|
|
862
856
|
|
|
863
857
|
\emph{Purpose and scope of your entire report}.
|
|
864
858
|
The purpose of your entire report is to make a \emph{scientific argument using the scientific method}.
|
|
@@ -1001,6 +995,9 @@ Close by stating how much closer society and science have come in answering the
|
|
|
1001
995
|
%%% ===============================================================================
|
|
1002
996
|
<%= heading1 %>{Background (SM1)}\label{sec:background}
|
|
1003
997
|
%%% ===============================================================================
|
|
998
|
+
<% if (isThesis) { -%>
|
|
999
|
+
\progress{15}
|
|
1000
|
+
<% } -%>
|
|
1004
1001
|
|
|
1005
1002
|
\emph{Purpose and scope}.
|
|
1006
1003
|
The background chapter has multiple roles.
|
|
@@ -1024,6 +1021,9 @@ The background chapter has multiple roles.
|
|
|
1024
1021
|
%%% ===============================================================================
|
|
1025
1022
|
<%= heading1 %>{Problem Exposition (optional)}\label{sec:problem-exposition}
|
|
1026
1023
|
%%% ===============================================================================
|
|
1024
|
+
<% if (isThesis) { -%>
|
|
1025
|
+
\progress{10}
|
|
1026
|
+
<% } -%>
|
|
1027
1027
|
|
|
1028
1028
|
\emph{Purpose and scope}.
|
|
1029
1029
|
Introduce the problem context in more detail if <%- cref %>{sec:introduction:topic} does not provide all necessary information about the problem to follow the rest of the report.
|
|
@@ -1060,6 +1060,9 @@ provide details based on <%- cref %>{sec:problem-exposition:context-understandin
|
|
|
1060
1060
|
%%% ===============================================================================
|
|
1061
1061
|
<%= heading1 %>{First Real Chapter addressing first Research Problem}\label{sec:problem1}
|
|
1062
1062
|
%%% ===============================================================================
|
|
1063
|
+
<% if (isThesis) { -%>
|
|
1064
|
+
\progress{0}
|
|
1065
|
+
<% } -%>
|
|
1063
1066
|
|
|
1064
1067
|
\emph{Purpose and scope}.
|
|
1065
1068
|
After you stated research context (SM1), research problem (SM2), and research method (SM3) in <%- cref %>{sec:introduction} and possibly <%- cref %>{sec:problem-exposition}, the remainder of your entire report addresses execution (SM4), results (SM5), and interpretation (SM6).
|
|
@@ -1077,6 +1080,9 @@ Explain that you will address the first sub-problem in <%- cref %>{sec:problem1:
|
|
|
1077
1080
|
% ---------------------------------------------------------------------------------
|
|
1078
1081
|
<%= heading2 %>{First Sub-Problem}\label{sec:problem1:subproblem1}
|
|
1079
1082
|
% ---------------------------------------------------------------------------------
|
|
1083
|
+
<% if (isThesis) { -%>
|
|
1084
|
+
\progress{10}
|
|
1085
|
+
<% } -%>
|
|
1080
1086
|
|
|
1081
1087
|
\emph{The first paragraph describes the first sub-problem and develops the requirements a solution has to satisfy (SM2 for this section).}
|
|
1082
1088
|
The requirements have to be based on the knowledge and reasoning developing in the preceding chapters and sections.
|
|
@@ -1119,6 +1125,9 @@ Ideally, your interpretation leads to the next sub-problem in <%- cref %>{sec:pr
|
|
|
1119
1125
|
% ---------------------------------------------------------------------------------
|
|
1120
1126
|
<%= heading2 %>{Second Sub-Problem}\label{sec:problem1:subproblem2}
|
|
1121
1127
|
% ---------------------------------------------------------------------------------
|
|
1128
|
+
<% if (isThesis) { -%>
|
|
1129
|
+
\progress{0}
|
|
1130
|
+
<% } -%>
|
|
1122
1131
|
|
|
1123
1132
|
You now build on the solution to the first sub-problem of <%- cref %>{sec:problem1:subproblem1} (SM1) and recall second sub-problem (SM2, you detailed in the introduction of this chapter) and follow the same pattern as before (SM3-SM6).
|
|
1124
1133
|
|
|
@@ -1140,6 +1149,9 @@ What is important for you when you are writing a scientific argument is not to s
|
|
|
1140
1149
|
%%% ===============================================================================
|
|
1141
1150
|
<%= heading1 %>{Second Real Chapter}\label{sec:sub-problem2}
|
|
1142
1151
|
%%% ===============================================================================
|
|
1152
|
+
<% if (isThesis) { -%>
|
|
1153
|
+
\progress{0}
|
|
1154
|
+
<% } -%>
|
|
1143
1155
|
|
|
1144
1156
|
Have a short chapter introduction that recalls what you already achieved in <%- cref %>{sec:problem1} and explain the second research problem of your thesis.
|
|
1145
1157
|
The problem has to show up in the introduction in <%- cref %>{sec:introduction:research-question} or in <%- cref %>{sec:problem-exposition:research-problems} already.
|
|
@@ -1149,6 +1161,9 @@ Continue likewise for further research problems.
|
|
|
1149
1161
|
%%% ===============================================================================
|
|
1150
1162
|
<%= heading1 %>{Evaluation}\label{sec:evaluation}
|
|
1151
1163
|
%%% ===============================================================================
|
|
1164
|
+
<% if (isThesis) { -%>
|
|
1165
|
+
\progress{0}
|
|
1166
|
+
<% } -%>
|
|
1152
1167
|
|
|
1153
1168
|
\emph{Purpose and scope}.
|
|
1154
1169
|
The evaluation chapter should be the most formal and rigorously structured chapter of your thesis as the validity of your evaluation argument depends on it.
|
|
@@ -1215,6 +1230,9 @@ Typical questions are:
|
|
|
1215
1230
|
<% } else { -%>
|
|
1216
1231
|
%%LTG-CHAPTER introduction
|
|
1217
1232
|
<%= heading1 %>{Introduction}
|
|
1233
|
+
<% if (!isThesis) { -%>
|
|
1234
|
+
% \progress{50} % progress bar, see the preamble
|
|
1235
|
+
<% } -%>
|
|
1218
1236
|
\label{sec:introduction}
|
|
1219
1237
|
\lipsum[1-3]\todo{Refine me}
|
|
1220
1238
|
|
|
@@ -1345,6 +1363,9 @@ See \url{https://help.jabref.org/en/CleanupEntries} for an overview of the clean
|
|
|
1345
1363
|
%%% ===============================================================================
|
|
1346
1364
|
<%= heading1 %>{Conclusion and Outlook}\label{sec:conclusion}
|
|
1347
1365
|
%%% ===============================================================================
|
|
1366
|
+
<% if (isThesis) { -%>
|
|
1367
|
+
\progress{0}
|
|
1368
|
+
<% } -%>
|
|
1348
1369
|
|
|
1349
1370
|
Your conclusions are more than a factual summary of your work: they position, interpret, and defend your findings against the state of the art that you discussed in <%- cref %>{sec:introduction:state-of-art}.
|
|
1350
1371
|
You specifically outline which concrete findings or methodological contributions advance our knowledge towards the general objective you introduced in <%- cref %>{sec:introduction:topic}.
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
% Avoid orphans and widows (a single line of a paragraph left at the bottom or top
|
|
2
|
-
% of a page).
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
% of a page).
|
|
3
|
+
\ifdefined\directlua
|
|
4
|
+
% LuaLaTeX: lua-widow-control removes them by lengthening or shortening a paragraph
|
|
5
|
+
% by one line, instead of leaving an empty line at the bottom of the page.
|
|
6
|
+
\usepackage{lua-widow-control}
|
|
7
|
+
\else
|
|
8
|
+
% pdfLaTeX: nowidow sets \clubpenalty and \widowpenalty; using a package feels less
|
|
9
|
+
% hacky than tuning them manually.
|
|
10
|
+
\usepackage[all,defaultlines=3]{nowidow}
|
|
11
|
+
\fi
|
|
5
12
|
|
|
6
13
|
% Avoid a widow line being split off a displayed equation.
|
|
7
14
|
\displaywidowpenalty=10000
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<% const c = isThesis ? '' : '% ' -%>
|
|
2
|
+
% Show how far each chapter or section is written:
|
|
3
|
+
% \progress{60} below a heading draws a bar filled to 60 %.
|
|
4
|
+
% Set \showprogressfalse to hide all bars, e.g., for the submitted version.
|
|
5
|
+
<% if (!isThesis) { -%>
|
|
6
|
+
% To use it, uncomment the following lines.
|
|
7
|
+
<% } -%>
|
|
8
|
+
<%= c %>\usepackage{progressbar}
|
|
9
|
+
<%= c %>\newif\ifshowprogress
|
|
10
|
+
<%= c %>\showprogresstrue
|
|
11
|
+
<%= c %>\newcommand{\progress}[1]{%
|
|
12
|
+
<%= c %> \ifshowprogress
|
|
13
|
+
<%= c %> \par\vspace{-.5\baselineskip}%
|
|
14
|
+
<%= c %> {\parfillskip=0pt\noindent\progressbar[width=\linewidth,heighta=4pt,borderwidth=0.4pt,subdivisions=4,filledcolor=black!50]{\fpeval{#1/100}}\par}%
|
|
15
|
+
<%= c %> \fi
|
|
16
|
+
<%= c %>}
|
|
17
|
+
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
<% } -%>
|
|
7
7
|
% \urlstyle{same}
|
|
8
8
|
%
|
|
9
|
-
%
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
%
|
|
10
|
+
% URLs nach jedem Zeichen umbrechen erlauben, damit lange URLs nicht in den Rand ragen.
|
|
11
|
+
% Vor biblatex geladen, damit die biblatex-Einstellungen der URL-Strafen bleiben.
|
|
12
|
+
% Siehe https://ctan.org/pkg/xurl.
|
|
13
|
+
\usepackage{xurl}
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
% For all options see https://tex.stackexchange.com/a/261435/9075.
|
|
10
10
|
% \urlstyle{same}
|
|
11
11
|
|
|
12
|
-
%
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
\
|
|
12
|
+
% Allow URL breaks after any character, so that long URLs do not run into the margin.
|
|
13
|
+
% Loaded before biblatex, so that the biblatex settings of the URL penalties stay.
|
|
14
|
+
% See https://ctan.org/pkg/xurl.
|
|
15
|
+
\usepackage{xurl}
|
|
16
16
|
|
|
17
17
|
% nicer // - solution by http://tex.stackexchange.com/a/98470/9075
|
|
18
18
|
% DO NOT ACTIVATE -> prevents line breaks
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-latex-template",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.26",
|
|
4
4
|
"description": "Generates a latex template to be used as start for writing scientific works (papers, articles, theses)",
|
|
5
5
|
"homepage": "https://github.com/latextemplates/generator-latex-template",
|
|
6
6
|
"author": {
|