generator-latex-template 2026.10.26 → 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.
- package/generators/app/templates/README.en.md +31 -4
- package/generators/app/templates/Texlivefile +10 -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/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 +3 -0
- package/generators/app/templates/dot.typos.toml +2 -0
- package/generators/app/templates/footnotes.preamble.en.tex +10 -1
- 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 +7 -5
- package/generators/app/templates/main.en.tex +5 -3
- package/generators/app/templates/markdown.example.en.tex +3 -0
- package/generators/app/templates/mwe-main.de.tex +4 -2
- package/generators/app/templates/mwe-main.en.tex +4 -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/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/package.json +2 -2
|
@@ -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
|
|
@@ -801,11 +818,15 @@ Install package `inconsolata`
|
|
|
801
818
|
|
|
802
819
|
### Q: How can I synchronize updates from the template to my repository?
|
|
803
820
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
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:
|
|
823
|
+
|
|
824
|
+
```shell
|
|
825
|
+
git fetch template
|
|
826
|
+
git merge template/main
|
|
827
|
+
```
|
|
807
828
|
|
|
808
|
-
|
|
829
|
+
If you already have a repository, add the remote first: `git remote add template https://github.com/latextemplates/<%= templateRepo %>.git`.
|
|
809
830
|
Notes on syncing with the upstream repository [are available from GitHub](https://help.github.com/articles/syncing-a-fork/).
|
|
810
831
|
<% } -%>
|
|
811
832
|
|
|
@@ -976,6 +997,11 @@ Just run pdflatex again.
|
|
|
976
997
|
|
|
977
998
|
Look for `% Code for my fancy chapters.` in your main `.tex` file and play around with parameters.
|
|
978
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
|
+
|
|
979
1005
|
### Q: Aren't there other templates?
|
|
980
1006
|
|
|
981
1007
|
Sure. The [Hagenberg Thesis Document Collection](https://github.com/Digital-Media/HagenbergThesis) seems to be the most promising.
|
|
@@ -988,6 +1014,7 @@ We are collecting alternatives at the issue [#25](https://github.com/latextempla
|
|
|
988
1014
|
- If you included some version control statements, please remove them. Currently, the template does not support any, but it used to support SVN.
|
|
989
1015
|
- By using `\largepage` and `\shortpage`, single lines at the bottom or at the top of the page can be manually fixed.
|
|
990
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{...}`.
|
|
991
1018
|
- Ensure that you run `lualatex` at least three times and that there are no "undefined references".
|
|
992
1019
|
- The margins are intended for good screen reading. **Do not change them** (or do exactly know what you are doing).
|
|
993
1020
|
|
|
@@ -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
|
|
@@ -125,6 +126,7 @@ glossaries-german
|
|
|
125
126
|
<% } -%>
|
|
126
127
|
<% } -%>
|
|
127
128
|
graphics
|
|
129
|
+
graphicscache
|
|
128
130
|
<% if (githubpublish || isThesis) { -%>
|
|
129
131
|
helvetic
|
|
130
132
|
<% } -%>
|
|
@@ -184,8 +186,8 @@ llncs
|
|
|
184
186
|
<% if (githubpublish || isThesis) { -%>
|
|
185
187
|
lscapeenhanced
|
|
186
188
|
<% } -%>
|
|
187
|
-
<% if (githubpublish || (uml == "mermaid")) { -%>
|
|
188
|
-
ltmermaid
|
|
189
|
+
<% if ((githubpublish || (uml == "mermaid")) && (texlive >= 2026)) { -%>
|
|
190
|
+
ltmermaid<%# in TeX Live from 2026 on %>
|
|
189
191
|
<% } -%>
|
|
190
192
|
ltxcmds
|
|
191
193
|
<% if (githubpublish || (reallatexcompiler.startsWith("lualatex"))) { -%>
|
|
@@ -195,6 +197,8 @@ lualatex-math
|
|
|
195
197
|
luamplib
|
|
196
198
|
metapost<%# plain.mp, required by luamplib %>
|
|
197
199
|
<% } -%>
|
|
200
|
+
lua-ul<%# breakable text highlighting (\textcomment) with LuaLaTeX %>
|
|
201
|
+
luacolor<%# required by lua-ul for colored highlighting %>
|
|
198
202
|
lua-widow-control
|
|
199
203
|
luatex85
|
|
200
204
|
luatexbase
|
|
@@ -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
|
|
@@ -316,6 +322,7 @@ svn-prov<%# at least required by acmart, ustutt, scientific-thesis%>
|
|
|
316
322
|
<% if (githubpublish || isThesis) { -%>
|
|
317
323
|
tabto-ltx
|
|
318
324
|
<% } -%>
|
|
325
|
+
tablefootnote
|
|
319
326
|
tcolorbox
|
|
320
327
|
tex-gyre<%# at least required by acm, ieee, font config "times"; provides ts1-qtmr %>
|
|
321
328
|
texcount
|
|
@@ -355,8 +362,8 @@ xcharter
|
|
|
355
362
|
xcolor
|
|
356
363
|
<% if (githubpublish || isThesis) { -%>
|
|
357
364
|
xfor
|
|
358
|
-
xifthen
|
|
359
365
|
<% } -%>
|
|
366
|
+
xifthen<%# required by tablefootnote %>
|
|
360
367
|
xkeyval
|
|
361
368
|
<% if (githubpublish || (documentclass == "ieee") || (font == "times")) { -%>
|
|
362
369
|
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 %>;}
|
|
@@ -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
|
|
@@ -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)
|
|
@@ -7,18 +7,27 @@
|
|
|
7
7
|
bottom, % Footnotes appear always on bottom. This is necessary specially when floats are used
|
|
8
8
|
stable, % Make footnotes stable in section titles
|
|
9
9
|
% perpage, % Reset on each page
|
|
10
|
-
% para, % Place footnotes side by side
|
|
10
|
+
% para, % Place footnotes side by side in one paragraph. LuaLaTeX: also uncomment \mathpenaltiesmode below.
|
|
11
11
|
% side, % Place footnotes in the margin
|
|
12
12
|
ragged, % Use RaggedRight
|
|
13
13
|
% norule, % Suppress rule above footnotes
|
|
14
14
|
multiple, % Rearrange multiple footnotes intelligent in the text.
|
|
15
15
|
% symbol, % Use symbols instead of numbers
|
|
16
16
|
]{footmisc}
|
|
17
|
+
% Needed for "para" with LuaLaTeX: otherwise, URLs cannot break inside the footnote paragraph
|
|
18
|
+
%\mathpenaltiesmode=1
|
|
17
19
|
|
|
18
20
|
\counterwithout{footnote}{chapter} % Continuous numbering of footnotes across chapters
|
|
19
21
|
|
|
20
22
|
\interfootnotelinepenalty=10000 % Prevents footnotes from continuing onto the facing page
|
|
21
23
|
|
|
24
|
+
<% } else if (documentclass == "lncs") { -%>
|
|
25
|
+
% Save space: set all footnotes of a page side by side in one paragraph (LuaLaTeX only).
|
|
26
|
+
% pdfLaTeX cannot break URLs inside such footnotes: footmisc collects each footnote in a box, and TeX adds no break points
|
|
27
|
+
% to math (which \url uses) inside a box. LuaTeX's \mathpenaltiesmode does.
|
|
28
|
+
%\usepackage[para]{footmisc}
|
|
29
|
+
%\mathpenaltiesmode=1
|
|
30
|
+
|
|
22
31
|
<% } -%>
|
|
23
32
|
% Put footnotes below floats
|
|
24
33
|
% Source: https://tex.stackexchange.com/a/32993/9075
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
% Smaller PDF: graphicscache re-encodes every included image once with Ghostscript (lossless, at most 300 dpi) and
|
|
2
|
+
% caches the result in graphicscache/. It needs shell escape and an external pdflatex, so it is loaded only when the
|
|
3
|
+
% document is compiled with --shell-escape; without, images are embedded as they are.
|
|
4
|
+
% Doc: https://ctan.org/pkg/graphicscache
|
|
5
|
+
\ExplSyntaxOn
|
|
6
|
+
\sys_if_shell_unrestricted:T { \RequirePackage [ compress = flat ] { graphicscache } }
|
|
7
|
+
\ExplSyntaxOff
|
|
8
|
+
\makeatletter
|
|
9
|
+
% graphicscache spells the Ghostscript filter "FlatEncode"; Ghostscript knows it as FlateEncode and rejects the typo.
|
|
10
|
+
% Remove when https://github.com/xqms/graphicscache/issues/30 is fixed.
|
|
11
|
+
\@ifpackageloaded{graphicscache}{%
|
|
12
|
+
\def\graphicscache@compress@mode{FlateEncode}%
|
|
13
|
+
% graphicscache parses the \includegraphics options itself and does not know graphicx's alt text (the markdown package sets it).
|
|
14
|
+
% Remove when https://github.com/xqms/graphicscache/issues/29 is fixed.
|
|
15
|
+
\pgfkeys{/graphicscache/alt/.code={\graphicscache@addarg{alt={\unexpanded{#1}}}}}%
|
|
16
|
+
}{}
|
|
17
|
+
\makeatother
|
|
@@ -47,22 +47,6 @@ if ($^O eq 'MSWin32') {
|
|
|
47
47
|
# enable deletion of *.bbl when calling "latexmk -c"
|
|
48
48
|
$bibtex_use = 2;
|
|
49
49
|
|
|
50
|
-
# Glossaries inclusion inspired by https://tex.stackexchange.com/a/44316/9075
|
|
51
|
-
add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
|
|
52
|
-
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
|
|
53
|
-
# glossaries-extra's "abbreviations" option writes to .glo-abr instead
|
|
54
|
-
add_cus_dep('glo-abr', 'gls-abr', 0, 'run_makeglossaries');
|
|
55
|
-
|
|
56
|
-
sub run_makeglossaries {
|
|
57
|
-
if ( $silent ) {
|
|
58
|
-
# we use -lite to avoid an installation of perl
|
|
59
|
-
system "makeglossaries-lite", "-q", $_[0];
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
system "makeglossaries-lite", $_[0];
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
50
|
<% if (uml == "mermaid") { -%>
|
|
67
51
|
#------------------------------------------------------------------------------#
|
|
68
52
|
# Mermaid (ltmermaid)
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
open=any, % ein Kapitel beginnt auf der nächsten Seite, nicht unbedingt auf einer rechten
|
|
103
103
|
% Für beidseitigen Druck die beiden Zeilen darüber durch "twoside, open=right," ersetzen
|
|
104
104
|
bibliography=totoc,
|
|
105
|
+
captions=tableheading, % table captions are set above the table: put the space between caption and table, not above the caption
|
|
105
106
|
% idxtotoc, % Index ins Inhaltsverzeichnis
|
|
106
107
|
% liststotoc, % List of * ins Inhaltsverzeichnis, mit liststotocnumbered werden die Abbildungsverzeichnisse nummeriert
|
|
107
108
|
headsepline,
|
|
@@ -122,6 +123,7 @@
|
|
|
122
123
|
DIV=calc,
|
|
123
124
|
headings=small,
|
|
124
125
|
bibliography=totoc,
|
|
126
|
+
captions=tableheading, % table captions are set above the table: put the space between caption and table, not above the caption
|
|
125
127
|
% idxtotoc, % Index ins Inhaltsverzeichnis
|
|
126
128
|
% liststotoc, % List of * ins Inhaltsverzeichnis, mit liststotocnumbered werden die Abbildungsverzeichnisse nummeriert
|
|
127
129
|
listof=totoc,
|
|
@@ -185,6 +187,8 @@
|
|
|
185
187
|
<% } -%>
|
|
186
188
|
\usepackage{graphicx}
|
|
187
189
|
|
|
190
|
+
<%- include('graphicscache.preamble.en.tex', this); -%>
|
|
191
|
+
|
|
188
192
|
<% if (isThesis) { -%>
|
|
189
193
|
% Base folder, so there is no need to repeat this over and over again.
|
|
190
194
|
\graphicspath{ {figures/} }
|
|
@@ -224,13 +228,13 @@
|
|
|
224
228
|
<%- include('natbib.preamble.en.tex', this); -%>
|
|
225
229
|
<% break; case "lncs": -%>
|
|
226
230
|
<% if (bibtextool == 'biblatex') { -%>
|
|
227
|
-
<%- include('biblatex.preamble.
|
|
231
|
+
<%- include('biblatex.preamble.de.tex', this); -%>
|
|
228
232
|
<% } else { -%>
|
|
229
233
|
|
|
230
234
|
<%- include('natbib.preamble.en.tex', this); -%>
|
|
231
235
|
<% } -%>
|
|
232
236
|
<% break; case "scientific-thesis": case "ustutt": -%>
|
|
233
|
-
<%- include('biblatex.preamble.
|
|
237
|
+
<%- include('biblatex.preamble.de.tex', this); -%>
|
|
234
238
|
<% break; } -%>
|
|
235
239
|
|
|
236
240
|
<%- include('embedfile.preamble.en.tex', this); -%>
|
|
@@ -857,9 +861,7 @@ The following is typeset for both ustutt and scientific-thesis.
|
|
|
857
861
|
|
|
858
862
|
<% } -%>
|
|
859
863
|
% Abkürzungsverzeichnis / Acronyms / Abbreviations
|
|
860
|
-
\
|
|
861
|
-
% \printglossaries
|
|
862
|
-
% \printnoidxglossaries
|
|
864
|
+
\printnoidxglossary[type=\acronymtype,sort=word,title={Abkürzungsverzeichnis}]
|
|
863
865
|
% \printunsrtglossaries cannot be used, because then no indexing happens; source: https://tex.stackexchange.com/a/287128/9075
|
|
864
866
|
|
|
865
867
|
\microtypesetup{protrusion=true}
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
open=any, % a chapter starts on the next page, not necessarily on a right-hand one
|
|
95
95
|
% For two-sided printing, replace the two lines above by "twoside, open=right,"
|
|
96
96
|
bibliography=totoc,
|
|
97
|
+
captions=tableheading, % table captions are set above the table: put the space between caption and table, not above the caption
|
|
97
98
|
% idxtotoc, % Index ins Inhaltsverzeichnis
|
|
98
99
|
% liststotoc, % List of * ins Inhaltsverzeichnis, mit liststotocnumbered werden die Abbildungsverzeichnisse nummeriert
|
|
99
100
|
headsepline,
|
|
@@ -114,6 +115,7 @@
|
|
|
114
115
|
DIV=calc,
|
|
115
116
|
headings=small,
|
|
116
117
|
bibliography=totoc,
|
|
118
|
+
captions=tableheading, % table captions are set above the table: put the space between caption and table, not above the caption
|
|
117
119
|
% idxtotoc, % Index ins Inhaltsverzeichnis
|
|
118
120
|
% liststotoc, % List of * ins Inhaltsverzeichnis, mit liststotocnumbered werden die Abbildungsverzeichnisse nummeriert
|
|
119
121
|
listof=totoc,
|
|
@@ -174,6 +176,8 @@
|
|
|
174
176
|
<% } -%>
|
|
175
177
|
\usepackage{graphicx}
|
|
176
178
|
|
|
179
|
+
<%- include('graphicscache.preamble.en.tex', this); -%>
|
|
180
|
+
|
|
177
181
|
<% if (isThesis) { -%>
|
|
178
182
|
% Base folder, so there is no need to repeat this over and over again.
|
|
179
183
|
\graphicspath{ {figures/} }
|
|
@@ -827,9 +831,7 @@ The following is typeset for both ustutt and scientific-thesis.
|
|
|
827
831
|
|
|
828
832
|
<% } -%>
|
|
829
833
|
% Abbreviations / Acronyms
|
|
830
|
-
\
|
|
831
|
-
% \printglossaries
|
|
832
|
-
% \printnoidxglossaries
|
|
834
|
+
\printnoidxglossary[type=\acronymtype,sort=word,title={Abbreviations}]
|
|
833
835
|
% \printunsrtglossaries cannot be used, because then no indexing happens; source: https://tex.stackexchange.com/a/287128/9075
|
|
834
836
|
|
|
835
837
|
\microtypesetup{protrusion=true}
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
<%= mdIndent %>\begin{markdown}
|
|
17
17
|
Text can be *emphasized* or **bold**, and `code` is set in a monospaced font.
|
|
18
18
|
A citation looks like this [@mwe], and here is a footnote.^[This is an inline footnote.]
|
|
19
|
+
Referenced footnotes work as well[^detail].
|
|
20
|
+
|
|
21
|
+
[^detail]: This is a footnote defined at a different place in the text.
|
|
19
22
|
|
|
20
23
|
- first point
|
|
21
24
|
- second point
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
% Für beidseitigen Druck die beiden Zeilen darüber durch "twoside, open=right," ersetzen
|
|
17
17
|
parskip=half,
|
|
18
18
|
numbers=noenddot,
|
|
19
|
+
captions=tableheading, % table captions are set above the table: put the space between caption and table, not above the caption
|
|
19
20
|
]{scrbook}
|
|
20
21
|
|
|
21
22
|
% --- LuaLaTeX-Schrift-/Typografie-Setup ---
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
|
|
58
59
|
% --- Abbildungen + intelligente Querverweise ---
|
|
59
60
|
\usepackage{graphicx}
|
|
61
|
+
<%- include('graphicscache.preamble.en.tex', this); -%>
|
|
60
62
|
\usepackage{zref-clever}
|
|
61
63
|
\zcsetup{cap = true} % Typnamen groß schreiben: "Kapitel", "Abbildung", "Tabelle"
|
|
62
64
|
|
|
@@ -77,7 +79,7 @@
|
|
|
77
79
|
% glossaries ist die klassische Ausnahme von "hyperref zuletzt": NACH hyperref
|
|
78
80
|
% laden, damit Akronym-Verwendungen und das Abkürzungsverzeichnis verlinkt sind.
|
|
79
81
|
\usepackage[acronym, nopostdot]{glossaries}
|
|
80
|
-
\makeglossaries
|
|
82
|
+
\makenoidxglossaries % the list is sorted by TeX itself: no makeglossaries run needed
|
|
81
83
|
\setacronymstyle{long-short} % wie \gls Einträge setzt; das markdown-Theme selbst druckt immer die Kurzform
|
|
82
84
|
\newacronym{html}{HTML}{HyperText Markup Language}
|
|
83
85
|
\newacronym{yaml}{YAML}{YAML Ain't Markup Language}
|
|
@@ -112,7 +114,7 @@
|
|
|
112
114
|
|
|
113
115
|
\backmatter
|
|
114
116
|
|
|
115
|
-
\
|
|
117
|
+
\printnoidxglossary[type=\acronymtype,sort=word]
|
|
116
118
|
|
|
117
119
|
\printbibliography
|
|
118
120
|
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
% For two-sided printing, replace the two lines above by "twoside, open=right,"
|
|
17
17
|
parskip=half,
|
|
18
18
|
numbers=noenddot,
|
|
19
|
+
captions=tableheading, % table captions are set above the table: put the space between caption and table, not above the caption
|
|
19
20
|
]{scrbook}
|
|
20
21
|
|
|
21
22
|
% --- LuaLaTeX font/typography setup ---
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
|
|
58
59
|
% --- Figures + smart cross-references ---
|
|
59
60
|
\usepackage{graphicx}
|
|
61
|
+
<%- include('graphicscache.preamble.en.tex', this); -%>
|
|
60
62
|
\usepackage{zref-clever}
|
|
61
63
|
\zcsetup{cap = true} % capitalise type names: "Chapter", "Figure", "Table"
|
|
62
64
|
|
|
@@ -77,7 +79,7 @@
|
|
|
77
79
|
% glossaries is the classic exception to "hyperref last": load it AFTER
|
|
78
80
|
% hyperref so acronym uses and the acronym list are hyperlinked.
|
|
79
81
|
\usepackage[acronym, nopostdot]{glossaries}
|
|
80
|
-
\makeglossaries
|
|
82
|
+
\makenoidxglossaries % the list is sorted by TeX itself: no makeglossaries run needed
|
|
81
83
|
\setacronymstyle{long-short} % how \gls renders entries; the markdown theme itself always prints the short form
|
|
82
84
|
\newacronym{html}{HTML}{HyperText Markup Language}
|
|
83
85
|
\newacronym{yaml}{YAML}{YAML Ain't Markup Language}
|
|
@@ -111,7 +113,7 @@
|
|
|
111
113
|
|
|
112
114
|
\backmatter
|
|
113
115
|
|
|
114
|
-
\
|
|
116
|
+
\printnoidxglossary[type=\acronymtype,sort=word]
|
|
115
117
|
|
|
116
118
|
\printbibliography
|
|
117
119
|
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
|
|
26
26
|
% In the bibliography, references have to be formatted as 1., 2., ... not [1], [2], ...
|
|
27
27
|
\renewcommand{\bibnumfmt}[1]{#1.}
|
|
28
|
+
|
|
29
|
+
% "A and B" (two authors, \citet) follows the document language: splncs04nat.bst writes \andname{} instead of "and".
|
|
30
|
+
% babel has no caption for "and", so register one; \andname then switches with the language like \figurename.
|
|
31
|
+
\setlocalecaption{english}{and}{and}
|
|
32
|
+
\setlocalecaption{ngerman}{and}{und}
|
|
28
33
|
<% break; case "ieee": -%>
|
|
29
34
|
|
|
30
35
|
% Same fontsize as without natbib
|
|
@@ -20,6 +20,11 @@ Beispielsweise begann der letzte Satz in einem neuen Absatz.
|
|
|
20
20
|
Andrew Stacey begründet dies ausführlich im Abschnitt <%- bquote %>Line Wrapping<%- equote %> seines \href{https://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/#section.3}{\emph{Document Revision System}}\footnote{\url{https://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/}}.
|
|
21
21
|
<%- eexample %>
|
|
22
22
|
|
|
23
|
+
Ist der Text fertig, können einzelne Absätze nachgebessert werden.
|
|
24
|
+
Besteht die letzte Zeile eines Absatzes nur aus ein oder zwei Wörtern oder ist sie fast voll, lässt man TeX den Absatz eine Zeile kürzer oder länger setzen: \texttt{\textbackslash looseness=-1} (bzw. \texttt{=1}) als Erstes in diesen Absatz schreiben.
|
|
25
|
+
TeX setzt \texttt{\textbackslash looseness} am Ende jedes Absatzes zurück, sodass nur dieser eine Absatz betroffen ist.
|
|
26
|
+
Mit LuaLaTeX wird ein einzelnes kurzes Wort als letzte Zeile bereits automatisch vermieden (Paket impnattypo).
|
|
27
|
+
|
|
23
28
|
<% if (documentclass == 'scientific-thesis') { -%>
|
|
24
29
|
Möchte man die Art des Absatzes ändern, so kann man die Dokumentklassenoption \texttt{parskip} verwenden.
|
|
25
30
|
Beispielsweise kann man mit \texttt{parskip=off} erreichen, dass statt eines freien Bereichs die erste Zeile des Absatzes eingezogen wird.
|
|
@@ -20,3 +20,8 @@ Please do \textit{not} use two backslashes for new paragraphs.
|
|
|
20
20
|
For instance, this sentence belongs to the same paragraph, whereas the last one started a new one.
|
|
21
21
|
Andrew Stacey gives a long motivation for that in the section <%- bquote %>Line Wrapping<%- equote %> of his \href{https://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/#section.3}{\emph{Document Revision System}}\footnote{\url{https://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/}}.
|
|
22
22
|
<%- eexample %>
|
|
23
|
+
|
|
24
|
+
Once the text is final, single paragraphs can be polished.
|
|
25
|
+
If the last line of a paragraph holds only a word or two, or is nearly full, let TeX set the paragraph one line shorter or longer: write \texttt{\textbackslash looseness=-1} (or \texttt{=1}) as the first thing in that paragraph.
|
|
26
|
+
TeX resets \texttt{\textbackslash looseness} at the end of every paragraph, so only that one paragraph is affected.
|
|
27
|
+
With LuaLaTeX, a lone short word as the last line is avoided automatically (package impnattypo).
|
|
@@ -237,7 +237,7 @@ FUNCTION {space.word}
|
|
|
237
237
|
% Each function has a name bbl.xxx where xxx is the English word.
|
|
238
238
|
% The language selected here is ENGLISH
|
|
239
239
|
FUNCTION {bbl.and}
|
|
240
|
-
{ "
|
|
240
|
+
{ "\andname{}"}
|
|
241
241
|
|
|
242
242
|
FUNCTION {bbl.etal}
|
|
243
243
|
{ "et~al." }
|
|
@@ -1522,6 +1522,8 @@ FUNCTION {begin.bib}
|
|
|
1522
1522
|
write$ newline$
|
|
1523
1523
|
"\providecommand{\natexlab}[1]{#1}"
|
|
1524
1524
|
write$ newline$
|
|
1525
|
+
"\providecommand{\andname}{and}"
|
|
1526
|
+
write$ newline$
|
|
1525
1527
|
"\providecommand{\url}[1]{\texttt{#1}}"
|
|
1526
1528
|
write$ newline$
|
|
1527
1529
|
"\providecommand{\urlprefix}{URL }"
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
\end{table}
|
|
17
17
|
<%- eexample %>
|
|
18
18
|
|
|
19
|
+
A table caption goes above the table (\verb|\caption| before the \verb|tabular|), a figure caption below the figure.
|
|
20
|
+
|
|
19
21
|
Rows and cells can be colored with \verb|\rowcolor| and \verb|\cellcolor| from the \href{https://ctan.org/pkg/colortbl}{colortbl} package, which \href{https://ctan.org/pkg/xcolor}{xcolor} loads with its option \verb|table|.
|
|
20
22
|
|
|
21
23
|
<%- bexample %>
|
|
@@ -35,4 +37,23 @@ Rows and cells can be colored with \verb|\rowcolor| and \verb|\cellcolor| from t
|
|
|
35
37
|
\end{table}
|
|
36
38
|
<%- eexample %>
|
|
37
39
|
|
|
40
|
+
A \verb|\footnote| inside a floating table is lost.
|
|
41
|
+
Use \verb|\tablefootnote| from the \href{https://ctan.org/pkg/tablefootnote}{tablefootnote} package instead: it is set as a normal footnote at the bottom of the page.
|
|
42
|
+
If the notes should appear directly below the table instead (common in journals), use the \href{https://ctan.org/pkg/threeparttable}{threeparttable} package.
|
|
43
|
+
|
|
44
|
+
<%- bexample %>
|
|
45
|
+
\begin{table}
|
|
46
|
+
\caption{Table with a footnote}
|
|
47
|
+
\label{tab:footnote}
|
|
48
|
+
\centering
|
|
49
|
+
\begin{tabular}{ll}
|
|
50
|
+
\toprule
|
|
51
|
+
Heading1 & Heading2\tablefootnote{A footnote inside a table.} \\
|
|
52
|
+
\midrule
|
|
53
|
+
One & Two \\
|
|
54
|
+
\bottomrule
|
|
55
|
+
\end{tabular}
|
|
56
|
+
\end{table}
|
|
57
|
+
<%- eexample %>
|
|
58
|
+
|
|
38
59
|
<%- include('diagbox.example.en.tex', this); %>
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
%
|
|
10
10
|
%%% Doc: Documentation inside dtx Package
|
|
11
11
|
\usepackage{dcolumn} % alignment at the decimal separator
|
|
12
|
+
%
|
|
13
|
+
%%% Doc: https://texdoc.org/serve/tablefootnote/0
|
|
14
|
+
\usepackage{tablefootnote} % \tablefootnote: a footnote inside a floating table (plain \footnote is lost there)
|
|
12
15
|
|
|
13
16
|
% A bit more space between the rows of a table (\extrarowheight is provided by array, which dcolumn loads)
|
|
14
17
|
\setlength{\extrarowheight}{1pt}
|
|
@@ -33,3 +33,12 @@ Hier nur ein Kommentar\sidecomment{Kommentar}.
|
|
|
33
33
|
<%- bexample %>
|
|
34
34
|
\todo{Hier muss noch kräftig Text produziert werden}
|
|
35
35
|
<%- eexample %>
|
|
36
|
+
|
|
37
|
+
Mehrere Autoren können ihre Änderungen und Kommentare mit dem Paket \href{https://ctan.org/pkg/phfcc}{phfcc} markieren; die Initialen erscheinen einmal pro Seite am Rand.
|
|
38
|
+
Pro Autor wird in der Präambel ein Befehl definiert (\verb|\phfMakeCommentingCommand|); \verb|\phfDisableCommentingCommands| blendet für die finale Version alles aus.
|
|
39
|
+
|
|
40
|
+
<%- bexample %>
|
|
41
|
+
Die Quantenmechanik entwickelte sich dank der Arbeiten von Schrödinger, Heisenberg und Dirac rasch,
|
|
42
|
+
die sich von früheren Ideen von Planck \FA{und Einstein} \FA[Einstein darf hier nicht fehlen.] inspirieren ließen.
|
|
43
|
+
\FA*{Dieser Satz soll entfernt werden.} \FA!{Das ist wichtig.}
|
|
44
|
+
<%- eexample %>
|
|
@@ -33,3 +33,12 @@ Here is a comment\sidecomment{Comment}.
|
|
|
33
33
|
<%- bexample %>
|
|
34
34
|
\todo{A lot of text still needs to be produced here}
|
|
35
35
|
<%- eexample %>
|
|
36
|
+
|
|
37
|
+
Several authors can mark their edits and comments with the \href{https://ctan.org/pkg/phfcc}{phfcc} package; the initials of the author appear once per page in the margin.
|
|
38
|
+
Define one command per author in the preamble (\verb|\phfMakeCommentingCommand|); \verb|\phfDisableCommentingCommands| hides everything for the final version.
|
|
39
|
+
|
|
40
|
+
<%- bexample %>
|
|
41
|
+
Quantum mechanics developed quickly thanks to the works of Schrödinger, Heisenberg, and Dirac,
|
|
42
|
+
who drew inspiration from earlier ideas by Planck \FA{and Einstein} \FA[Einstein must not be missing here.]
|
|
43
|
+
\FA*{This sentence is to be removed.} \FA!{This is important.}
|
|
44
|
+
<%- eexample %>
|
|
@@ -17,7 +17,13 @@
|
|
|
17
17
|
% Enable nice comments
|
|
18
18
|
\usepackage{pdfcomment}
|
|
19
19
|
|
|
20
|
-
\
|
|
20
|
+
\ifdefined\directlua
|
|
21
|
+
% Highlighting that breaks across lines (\colorbox does not): lua-ul's \highLight; the color needs luacolor
|
|
22
|
+
\usepackage{luacolor,lua-ul}
|
|
23
|
+
\newcommand{\textcomment}[2]{\highLight[yellow!60]{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}}
|
|
24
|
+
\else
|
|
25
|
+
\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}}
|
|
26
|
+
\fi
|
|
21
27
|
|
|
22
28
|
% Small PDF comment
|
|
23
29
|
% 1st parameter: comment
|
|
@@ -38,7 +44,14 @@
|
|
|
38
44
|
<% break; case "todonotes": -%>
|
|
39
45
|
\usepackage[color=gray!17]{todonotes}
|
|
40
46
|
\let\xtodo\todo
|
|
47
|
+
<% if (isThesis) { -%>
|
|
48
|
+
% Inline TODOs as a titled box, which stands out in a long text
|
|
49
|
+
\usepackage{tcolorbox}
|
|
50
|
+
\newtcolorbox{todobox}{colback=yellow!8,colframe=brown!60!black,fonttitle=\bfseries,title=TODO}
|
|
51
|
+
\renewcommand{\todo}[1]{\begin{todobox}#1\end{todobox}}
|
|
52
|
+
<% } else { -%>
|
|
41
53
|
\renewcommand{\todo}[1]{\xtodo[inline,color=black!5]{#1}}
|
|
54
|
+
<% } -%>
|
|
42
55
|
\newcommand{\todofix}[1]{\xtodo[color=red!40]{#1}}
|
|
43
56
|
|
|
44
57
|
<% break; default: -%>
|
|
@@ -61,3 +74,18 @@
|
|
|
61
74
|
|
|
62
75
|
% Modified (Text blau)
|
|
63
76
|
\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace}
|
|
77
|
+
|
|
78
|
+
% Edits and comments by several authors, each with their own color and initials (phfcc)
|
|
79
|
+
% Doc: https://ctan.org/pkg/phfcc
|
|
80
|
+
\usepackage{phfcc}
|
|
81
|
+
\ifdefined\directlua
|
|
82
|
+
\phfSetDefaultCommentingStyle{style=rmstrikethrough} % strike through removed text across lines (LuaLaTeX only)
|
|
83
|
+
\fi
|
|
84
|
+
% Comments as footnotes keep the layout intact, e.g., to check page limits
|
|
85
|
+
%\phfSetDefaultCommentingStyle{style=footcomments}
|
|
86
|
+
% One command per author: \FA{added text}, \FA*{text to remove}, \FA[a comment], \FA!{important};
|
|
87
|
+
% the initials appear once per page in the margin; the forms do not combine (\FA*[...]{...} is only a comment), so
|
|
88
|
+
% write \FA*{removed}\FA[comment]. Add one line per further author with their initials.
|
|
89
|
+
\phfMakeCommentingCommand[initials={FA}]{FA} % first author
|
|
90
|
+
% Final version: hide all edits and comments (there is no class option for it: "final" is the default of every class)
|
|
91
|
+
%\phfDisableCommentingCommands
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
end
|
|
18
18
|
return false
|
|
19
19
|
end
|
|
20
|
-
|
|
20
|
+
-- ltmermaid is in TeX Live from 2026 on; without it, the example is skipped as well
|
|
21
|
+
ltg_uml_available = status.shell_escape == 1 and ltg_on_path({"mmdc", "mmdc.cmd"}) and kpse.find_file("ltmermaid.sty") ~= nil
|
|
21
22
|
\end{luacode*}
|
|
22
23
|
\ifnum\directlua{tex.sprint(ltg_uml_available and 1 or 0)}=1
|
|
23
24
|
% puppeteer.json lets the headless Chromium of the Mermaid CLI run without sandbox (needed, e.g., in Docker)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-latex-template",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.30",
|
|
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": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"minimist": "^1.2.8",
|
|
41
41
|
"patch-package": "^8.0.1",
|
|
42
42
|
"yeoman-environment": "^8.2.0",
|
|
43
|
-
"yeoman-generator": "~10.
|
|
43
|
+
"yeoman-generator": "~10.2.1",
|
|
44
44
|
"yeoman-option-or-prompt": "^2.0.1",
|
|
45
45
|
"yosay": "^3.0.0"
|
|
46
46
|
},
|