generator-latex-template 2026.10.19 → 2026.10.30

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 (45) hide show
  1. package/generators/app/CLAUDE.md +5 -0
  2. package/generators/app/index.js +7 -0
  3. package/generators/app/templates/.devcontainer/devcontainer.json +18 -0
  4. package/generators/app/templates/README.en.md +52 -6
  5. package/generators/app/templates/Texlivefile +15 -9
  6. package/generators/app/templates/abbreviations.de.tex +1 -1
  7. package/generators/app/templates/abbreviations.en.tex +1 -1
  8. package/generators/app/templates/abbreviations.preamble.en.tex +4 -4
  9. package/generators/app/templates/biblatex.example.en.tex +4 -0
  10. package/generators/app/templates/biblatex.preamble.de.tex +1 -0
  11. package/generators/app/templates/bibliography.bib +15 -0
  12. package/generators/app/templates/docs/latex-setup.md +79 -113
  13. package/generators/app/templates/dot.aspell.conf +1 -0
  14. package/generators/app/templates/dot.aspell.de.pws +10 -1
  15. package/generators/app/templates/dot.aspell.en.pws +10 -1
  16. package/generators/app/templates/dot.gitignore +3 -0
  17. package/generators/app/templates/dot.typos.toml +2 -0
  18. package/generators/app/templates/floats.preamble.en.tex +4 -0
  19. package/generators/app/templates/font.preamble.en.tex +6 -2
  20. package/generators/app/templates/footnotes.preamble.en.tex +10 -1
  21. package/generators/app/templates/graphicscache.preamble.en.tex +17 -0
  22. package/generators/app/templates/latexmkrc +8 -16
  23. package/generators/app/templates/linebreaker.preamble.en.tex +8 -0
  24. package/generators/app/templates/listings.preamble.de.tex +1 -1
  25. package/generators/app/templates/listings.preamble.en.tex +1 -1
  26. package/generators/app/templates/main.de.tex +39 -16
  27. package/generators/app/templates/main.en.tex +37 -14
  28. package/generators/app/templates/markdown.example.en.tex +3 -0
  29. package/generators/app/templates/mwe-main.de.tex +4 -2
  30. package/generators/app/templates/mwe-main.en.tex +4 -2
  31. package/generators/app/templates/natbib.preamble.en.tex +5 -0
  32. package/generators/app/templates/nowidow.preamble.en.tex +10 -3
  33. package/generators/app/templates/paragraphs.example.de.tex +5 -0
  34. package/generators/app/templates/paragraphs.example.en.tex +5 -0
  35. package/generators/app/templates/progress.preamble.en.tex +17 -0
  36. package/generators/app/templates/splncs04nat.bst +3 -1
  37. package/generators/app/templates/tables.example.en.tex +21 -0
  38. package/generators/app/templates/tables.preamble.en.tex +3 -0
  39. package/generators/app/templates/todos.example.de.tex +9 -0
  40. package/generators/app/templates/todos.example.en.tex +9 -0
  41. package/generators/app/templates/todos.preamble.en.tex +29 -1
  42. package/generators/app/templates/uml.mermaid.preamble.en.tex +2 -1
  43. package/generators/app/templates/url.preamble.de.tex +5 -4
  44. package/generators/app/templates/url.preamble.en.tex +4 -4
  45. package/package.json +2 -2
@@ -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
@@ -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
+ }
@@ -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
@@ -414,6 +431,8 @@ The image does not contain <%= (uml == "plantuml") ? "PlantUML" : "the Mermaid C
414
431
  ```
415
432
 
416
433
  1. Optional: Let VS Code compile in the container, see ["VS Code configuration"](#vs-code-configuration).
434
+
435
+ No Docker at hand? Open the repository in [GitHub Codespaces](https://github.com/features/codespaces) and compile in the browser.
417
436
  <% switch (docker) { case "reitzig": -%>
418
437
 
419
438
  Alternatively, use the generated `Dockerfile`, which is based on the [Dockerfile by reitzig](https://github.com/reitzig/texlive-docker).
@@ -489,7 +508,7 @@ Independent of the chosen setup:
489
508
  Please download [LanguageTool] (Windows: `choco install languagetool`) and [configure TeXstudio to use it](http://wiki.languagetool.org/checking-la-tex-with-languagetool#toc4).
490
509
  Note that it is enough to point to `languagetool.jar`.
491
510
  **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 (Windows: `choco install jabref`).
511
+ - 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
512
  <% } -%>
494
513
 
495
514
  ### Advanced usage
@@ -799,11 +818,15 @@ Install package `inconsolata`
799
818
 
800
819
  ### Q: How can I synchronize updates from the template to my repository?
801
820
 
802
- 1. Initialize your git repository as usual
803
- 2. Add this repository as git remote: `git remote add template https://github.com/latextemplates/{template}.git`
804
- 3. Merge the branch `template/main` into your `main` branch: `git merge template/main`.
821
+ Set up the repository as described in the [advanced quick start](#advanced-quick-start): this template is the git remote `template`.
822
+ To get the latest template version, fetch and merge it:
805
823
 
806
- After that you can use and push the `main` branch as usual.
824
+ ```shell
825
+ git fetch template
826
+ git merge template/main
827
+ ```
828
+
829
+ If you already have a repository, add the remote first: `git remote add template https://github.com/latextemplates/<%= templateRepo %>.git`.
807
830
  Notes on syncing with the upstream repository [are available from GitHub](https://help.github.com/articles/syncing-a-fork/).
808
831
  <% } -%>
809
832
 
@@ -849,6 +872,19 @@ Add the class option `authorversion` (see the comment at `\documentclass` in `<%
849
872
  Use the [`authorarchive` package](https://ctan.org/pkg/authorarchive); `<%= filenames.main %>.tex` contains a commented example.
850
873
  <% } -%>
851
874
 
875
+ ### Q: How do I prepare the sources for arXiv?
876
+
877
+ arXiv publishes the uploaded sources, including all comments (such as TODOs and commented-out text).
878
+ [arxiv-latex-cleaner](https://github.com/google-research/arxiv-latex-cleaner) removes comments and unused files and can shrink images:
879
+
880
+ ```bash
881
+ pip install arxiv-latex-cleaner
882
+ arxiv_latex_cleaner .
883
+ ```
884
+
885
+ Upload the content of the created directory `../<name of this directory>_arXiv`.
886
+ See also ["arXiv"](#arxiv) above.
887
+
852
888
  <% } -%>
853
889
  ### Q: Can I also write in German?
854
890
 
@@ -961,6 +997,11 @@ Just run pdflatex again.
961
997
 
962
998
  Look for `% Code for my fancy chapters.` in your main `.tex` file and play around with parameters.
963
999
 
1000
+ ### Q: How do I let section headings stick out into the left margin?
1001
+
1002
+ Add `\RedeclareSectionCommand[indent=-1cm]{section}` to the preamble; `indent` is the KOMA-Script option for that, the same works for `subsection`, `paragraph`, etc.
1003
+ A negative `\hspace*` in `\addtokomafont{section}` achieves a similar effect, but belongs to the font setting and is not applied to all headings consistently.
1004
+
964
1005
  ### Q: Aren't there other templates?
965
1006
 
966
1007
  Sure. The [Hagenberg Thesis Document Collection](https://github.com/Digital-Media/HagenbergThesis) seems to be the most promising.
@@ -973,6 +1014,7 @@ We are collecting alternatives at the issue [#25](https://github.com/latextempla
973
1014
  - If you included some version control statements, please remove them. Currently, the template does not support any, but it used to support SVN.
974
1015
  - By using `\largepage` and `\shortpage`, single lines at the bottom or at the top of the page can be manually fixed.
975
1016
  - Search the PDF for "TODO" or similar things. Remove `\usepackage{todonotes}` in your main `.tex` file.
1017
+ - Uncomment `\phfDisableCommentingCommands` in your main `.tex` file to hide all edits and comments made with `\FA{...}`.
976
1018
  - Ensure that you run `lualatex` at least three times and that there are no "undefined references".
977
1019
  - The margins are intended for good screen reading. **Do not change them** (or do exactly know what you are doing).
978
1020
 
@@ -1069,6 +1111,9 @@ Statement from IEEE:
1069
1111
  <% } -%>
1070
1112
  ## Further information
1071
1113
 
1114
+ <% if (!isThesis) { -%>
1115
+ - 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.
1116
+ <% } -%>
1072
1117
  <% if (documentclass == 'lncs') { -%>
1073
1118
  - tex.stackexchange.com questions regarding LNCS: <https://tex.stackexchange.com/questions/tagged/lncs>
1074
1119
  - 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 +1121,13 @@ Statement from IEEE:
1076
1121
  <% if (githubpublish) { -%>
1077
1122
  - Why the templates use which packages: [decision records of the template generator](https://github.com/latextemplates/generator-latex-template/tree/main/docs/decisions)
1078
1123
  <% } -%>
1079
- - Other templates: <https://latextemplates.github.io/>
1124
+ - 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
1125
  - For German users, go to <https://texfragen.de/>.
1081
1126
  - 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
1127
  - 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
1128
  - 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
1129
  - 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.
1130
+ - Other templates: <https://latextemplates.github.io/>
1085
1131
 
1086
1132
  ## License
1087
1133
 
@@ -91,9 +91,11 @@ 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
98
+ filemod<%# required by graphicscache %>
97
99
  fixmath
98
100
  <% if (githubpublish || (documentclass == "acmart") || isThesis) { -%>
99
101
  float
@@ -124,6 +126,7 @@ glossaries-german
124
126
  <% } -%>
125
127
  <% } -%>
126
128
  graphics
129
+ graphicscache
127
130
  <% if (githubpublish || isThesis) { -%>
128
131
  helvetic
129
132
  <% } -%>
@@ -170,6 +173,7 @@ letltxmacro
170
173
  libertine
171
174
  libertinus-fonts<%# required by libertine%>
172
175
  <% } -%>
176
+ linebreaker
173
177
  lineno
174
178
  lipsum
175
179
  listings
@@ -182,8 +186,8 @@ llncs
182
186
  <% if (githubpublish || isThesis) { -%>
183
187
  lscapeenhanced
184
188
  <% } -%>
185
- <% if (githubpublish || (uml == "mermaid")) { -%>
186
- ltmermaid
189
+ <% if ((githubpublish || (uml == "mermaid")) && (texlive >= 2026)) { -%>
190
+ ltmermaid<%# in TeX Live from 2026 on %>
187
191
  <% } -%>
188
192
  ltxcmds
189
193
  <% if (githubpublish || (reallatexcompiler.startsWith("lualatex"))) { -%>
@@ -193,11 +197,11 @@ lualatex-math
193
197
  luamplib
194
198
  metapost<%# plain.mp, required by luamplib %>
195
199
  <% } -%>
200
+ lua-ul<%# breakable text highlighting (\textcomment) with LuaLaTeX %>
201
+ luacolor<%# required by lua-ul for colored highlighting %>
202
+ lua-widow-control
196
203
  luatex85
197
204
  luatexbase
198
- <% if (githubpublish || (lang == "en") && (reallatexcompiler.startsWith("lualatex"))) { -%>
199
- luaxml<%# required by spelling %>
200
- <% } -%>
201
205
  <% } -%>
202
206
  <% if (githubpublish || isThesis) { -%>
203
207
  ly1<%# required by mathdesign-font %>
@@ -265,9 +269,11 @@ pdftexcmds
265
269
  pgf
266
270
  pgfplots<%# used by the pgfplots example; also provides pgfplotstable %>
267
271
  <% } -%>
272
+ phfcc
268
273
  <% if (githubpublish || (isThesis && examples)) { -%>
269
274
  pgf-umlsd
270
275
  <% } -%>
276
+ pgfopts<%# required by graphicscache %>
271
277
  pict2e
272
278
  <% if (githubpublish || (documentclass == "ustutt")) { -%>
273
279
  placeins
@@ -278,6 +284,7 @@ plantuml<%# plantuml.sty for the PlantUML UML example; the diagram also needs an
278
284
  <% if (documentclass == 'acmart') { -%>
279
285
  preprint<%# this includes balance, used by the acmart option "balance"%>
280
286
  <% } -%>
287
+ progressbar
281
288
  <% if (githubpublish || isThesis) { -%>
282
289
  psnfss<%# provides pifont%>
283
290
  <% } -%>
@@ -308,9 +315,6 @@ siunitx
308
315
  snapshot
309
316
  soul
310
317
  soulpos
311
- <% if (githubpublish || (lang == "en") && (reallatexcompiler.startsWith("lualatex"))) { -%>
312
- spelling
313
- <% } -%>
314
318
  stringenc
315
319
  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
320
  subfig
@@ -318,6 +322,7 @@ svn-prov<%# at least required by acmart, ustutt, scientific-thesis%>
318
322
  <% if (githubpublish || isThesis) { -%>
319
323
  tabto-ltx
320
324
  <% } -%>
325
+ tablefootnote
321
326
  tcolorbox
322
327
  tex-gyre<%# at least required by acm, ieee, font config "times"; provides ts1-qtmr %>
323
328
  texcount
@@ -357,13 +362,14 @@ xcharter
357
362
  xcolor
358
363
  <% if (githubpublish || isThesis) { -%>
359
364
  xfor
360
- xifthen
361
365
  <% } -%>
366
+ xifthen<%# required by tablefootnote %>
362
367
  xkeyval
363
368
  <% if (githubpublish || (documentclass == "ieee") || (font == "times")) { -%>
364
369
  xpatch
365
370
  <% } -%>
366
371
  xstring<%# this includes stfloats; required by textcomp %>
372
+ xurl
367
373
  zref
368
374
  <% if (githubpublish || (documentclass == "mwe") || (crossref == "zref-clever")) { -%>
369
375
  zref-clever
@@ -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={RDBMS}]{rdbms}{RDBMS}{Relational Database Management System}
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={RDBMS}]{rdbms}{RDBMS}{Relational Database Management System}
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
- % Following is required if the abbreviation list should be sorted automatically (\printglossary / \printglossaries)
13
- % Not required, if we printed the entries in-order (using \printunsrtglossaries)
14
- % Required to have the German chapter name % Source: https://tex.stackexchange.com/a/426392/9075
15
- \makeglossaries
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 %>;}
@@ -1,50 +1,18 @@
1
1
  # Recommended LaTeX environments
2
2
 
3
- ## TeXStudio as LaTeX Editor
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
- ![language-tool-configuration](texstudio-configuration-languagetool.png)
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
- ![allow --shell-escape for this document](texstudio-confirmation-1.png)
18
-
19
- At "Build & View", there will be a question to update to biber.
20
- Please answer `(a) allow for this document`:
21
-
22
- ![allow biber for this document](texstudio-confirmation-2.png)
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
- 1. To compile from [TeXstudio], open Options > Configure TeXstudio > Commands and set
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 texstudio sumatrapdf.install strawberryperl jre8 jabref languagetool` to install necessary tooling.
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
- ## Using VSCode to Edit, Compile, and Preview PDFs
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
- ***Note: The configuration of LaTeX Workshop on [Fast Guide on Writing LaTeX with LaTeX Workshop in VS Code](https://mathjiajia.github.io/vscode-and-latex/) may require some modifications to work with this template.***
105
+ Always working solution: the [Docker-based setup](#docker-based-recommended).
149
106
 
150
- ### Prerequisites
107
+ ## VS Code as LaTeX editor
151
108
 
152
- 1. Install [VSCode](https://code.visualstudio.com/).
153
- 2. Install [LaTeX Workshop](https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop).
154
- 3. Install a LaTeX distribution (see ["LaTeX distribution"](#latex-distribution)).
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
- ```json
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
- ### Recommended Setup of VSCode
163
-
164
- 1. Open VSCode.
165
- 2. Press <kbd>Shift</kbd>+<kbd>Ctrl</kbd>+<kbd>P</kbd> to open the command palette. Then type "JSON" and select "Preferences: Open Settings (JSON)" to open `settings.json`.
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
- 4. (optional) If you add the following line into your `settings.json`, the LaTeX Workshop extension will not automatically compile the code after any changes. You can manually trigger compilation by hitting the green button in the extension or using other methods provided by LaTeX Workshop.
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
- ```json
207
- "latex-workshop.latex.autoBuild.run": "never",
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
+ ![language-tool-configuration](texstudio-configuration-languagetool.png)
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
+ ![allow --shell-escape for this document](texstudio-confirmation-1.png)
152
+
153
+ At "Build & View", there will be a question to update to biber.
154
+ Please answer `(a) allow for this document`:
155
+
156
+ ![allow biber for this document](texstudio-confirmation-2.png)
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]: http://texstudio.sourceforge.net/
179
+ [TeXstudio]: https://www.texstudio.org/
@@ -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