generator-latex-template 2025.1.31 → 2025.2.12

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/README.md CHANGED
@@ -125,6 +125,13 @@ In the long run, the contents of the `paper.tex` (and similar) files in reposito
125
125
  - `gh run list -L 100 --json databaseId -s in_progress -R latextemplates/generator-latex-template | jq -r '.[] | .databaseId' | awk '{gsub(/\\r\\n/,RS)} 1' | while read -r run_id; do gh run cancel "$run_id" -R latextemplates/generator-latex-template || true; done`
126
126
  - Update submodule of "derived" templates (LNCS, ...): `[ -z "$(git status --porcelain)" ] && cd generator-latex-template/ && git pull && cd .. && git add . && git commit -m"Update LTG" && git pull --rebase && git push`
127
127
 
128
+ ### Testing
129
+
130
+ - All workflows test `overleaf=no` - and (nearly) all possible combinations.
131
+ - All `*-refined` repositories test with `overleaf=true` - and only the typical settings for the template.
132
+ - `refine-ltg` is the development branch for the template generator; only a small set of workflows enabled there due to load during testing.
133
+ - `update-ltg` is the development branch at each `*-refined` template.
134
+
128
135
  ### Test locally
129
136
 
130
137
  - Create empty directory ("target directory")
@@ -613,6 +613,15 @@ Moreover, ensure that python and [pygments](https://pygments.org/) are installed
613
613
  - `choco install python`
614
614
  - `pip install pygments`
615
615
 
616
+ ### Q: I have troubles with minted on Windows.
617
+
618
+ Try out following command to update `latexminted`.
619
+ See [minted#425](https://github.com/gpoore/minted/issues/425) for details.
620
+
621
+ ```shell
622
+ py -m pip install --force-reinstall latexminted
623
+ ```
624
+
616
625
  <% if (documentclass == 'lncs') { -%>
617
626
  ### Q: Is it possible to have a footer indicating that the paper is intended to be submitted/submitted/published?
618
627
 
@@ -128,7 +128,7 @@ hyphen-german
128
128
  ieeetran
129
129
  <% } -%>
130
130
  ifmtarg<%# required by acmart at least %>
131
- <% if (githubpublish || (reallatexcompiler == "lualatex") && (font == "arial")) { -%>
131
+ <% if (githubpublish || isThesis) { -%>
132
132
  ifplatform
133
133
  <% } -%>
134
134
  iftex
@@ -177,6 +177,9 @@ mfirstuc
177
177
  <% } -%>
178
178
  microtype
179
179
  mindflow
180
+ <% if (githubpublish || (!overleaf && (texlive >= 2024) && documentclass != "acmart")) { -%>
181
+ minim-math<%# Modern (?) alternative to unicode-math %>
182
+ <% } -%>
180
183
  <% if (githubpublish || (listings == 'minted')) { -%>
181
184
  minted
182
185
  <% } -%>
@@ -285,7 +288,9 @@ trimspaces
285
288
  <% if (githubpublish || (documentclass == "ieee") || (font == "times")) { -%>
286
289
  txfonts
287
290
  <% } -%>
291
+ <% if (githubpublish || overleaf || (texlive < 2024) || documentclass == "acmart") { -%>
288
292
  unicode-math
293
+ <% } -%>
289
294
  uniquecounter
290
295
  upquote
291
296
  url
@@ -52,12 +52,13 @@ lualatex
52
52
  ###########################################################################
53
53
  -%>
54
54
  <%= indent %>\usepackage[no-math]{fontspec}
55
- <%= indent %>\usepackage{unicode-math}
55
+ <% if (documentclass != "acmart") { -%>
56
+ <%= indent %><% if (overleaf || texlive < 2024) { %>\usepackage{unicode-math}<% } else { %>\usepackage{minim-math}<% } %>
57
+ <% } -%>
56
58
  <% switch (font) { case "arial": -%>
57
59
  <%# Arial and LuaLaTeX -%>
58
60
  <%# -%>
59
61
 
60
- <%= indent %>\usepackage{ifplatform}
61
62
  <%= indent %>\ifwindows
62
63
  <%= indent %> \setmainfont[Ligatures=TeX]{Arial}
63
64
  <%= indent %> \setsansfont[Ligatures=TeX]{Arial}
@@ -105,7 +106,6 @@ lualatex
105
106
  <% break; case "ustutt": -%>
106
107
  <%# see also https://github.com/programming-journal/programming/blob/main/programming.cls -%>
107
108
 
108
- <%= indent %>\usepackage{ifplatform}
109
109
  <%= indent %>\ifwindows
110
110
  <%= indent %> \setmainfont{XCharter}
111
111
  <%= indent %> \setsansfont[Ligatures=TeX]{Arial}
@@ -122,6 +122,8 @@
122
122
  <% if (latexcompiler == "both") { -%>
123
123
 
124
124
  \usepackage{iftex}
125
+ <% if (isThesis) { -%>\usepackage{ifplatform}
126
+ <% } -%>
125
127
 
126
128
  <% } -%>
127
129
  % backticks (`) werden als solches in verbatim-Umgebungen dargestellt
@@ -135,7 +137,7 @@
135
137
 
136
138
  <%- include('url.preamble.de.tex', this); -%>
137
139
 
138
- <%# acronyms and unicode-math load amsmath, which has to be loaded before cleveref; we need it to load early to avoid option clash -%>
140
+ <%# acronyms and unicode-math/minim-math load amsmath, which has to be loaded before cleveref; we need it to load early to avoid option clash -%>
139
141
  <% if (isThesis || feature.abbreviations) { %><%- include('math.preamble.en.tex', this); -%>
140
142
 
141
143
  <% } -%>
@@ -1193,10 +1195,10 @@ Hier bitte einen kurzen Durchgang durch die Arbeit.
1193
1195
  ...und anschließend einen Ausblick.
1194
1196
  <% } -%>
1195
1197
 
1196
- <% switch (documentclass) { case "lncs": -%>
1198
+ <% indent = ''; switch (documentclass) { case "lncs": -%>
1197
1199
  \subsubsection*{Danksagungen}
1198
1200
 
1199
- <% break; case "acmart": -%>
1201
+ <% break; case "acmart": indent = ' ' -%>
1200
1202
  \begin{acks}
1201
1203
  <% break; case "ieee": -%>
1202
1204
  % regular IEEE prefers the singular form
@@ -1205,14 +1207,14 @@ Hier bitte einen kurzen Durchgang durch die Arbeit.
1205
1207
  <% break; default: -%>
1206
1208
  <% break; } -%>
1207
1209
  <% if (isPaper) { -%>
1208
- Identification of funding sources and other support, and thanks to individuals and groups that assisted in the research and the preparation of the work should be included in an acknowledgment section, which is placed just before the reference section in your document \cite{acmart}.
1210
+ <%= indent %>Identification of funding sources and other support, and thanks to individuals and groups that assisted in the research and the preparation of the work should be included in an acknowledgment section, which is placed just before the reference section in your document \cite{acmart}.
1209
1211
  <% if (howtotext) { -%>
1210
1212
 
1211
- The hints on writing a paper/thesis are taken from Dirk Fahland's \href{https://github.com/dfahland/Master-or-Bachelor-thesis-Template-Eindhoven-University-of-Technology}{LaTeX template for Bachelor and Master theses at Eindhoven University of Technology}.
1213
+ <%= indent %>The hints on writing a paper/thesis are taken from Dirk Fahland's \href{https://github.com/dfahland/Master-or-Bachelor-thesis-Template-Eindhoven-University-of-Technology}{LaTeX template for Bachelor and Master theses at Eindhoven University of Technology}.
1212
1214
  <% } -%>
1213
1215
  <% if (documentclass == 'acmart') { -%>
1214
1216
 
1215
- For more \LaTeX{} hints for ACM read on at \url{https://www.acm.org/publications/taps/latex-best-practices}.
1217
+ <%= indent %>For more \LaTeX{} hints for ACM read on at \url{https://www.acm.org/publications/taps/latex-best-practices}.
1216
1218
  \end{acks}
1217
1219
  <% } -%>
1218
1220
  <% } -%>
@@ -108,6 +108,8 @@
108
108
  <% if (latexcompiler == "both") { -%>
109
109
 
110
110
  \usepackage{iftex}
111
+ <% if (isThesis) { -%>\usepackage{ifplatform}
112
+ <% } -%>
111
113
 
112
114
  <% } -%>
113
115
  % backticks (`) are rendered as such in verbatim environments.
@@ -121,7 +123,7 @@
121
123
 
122
124
  <%- include('url.preamble.en.tex', this); -%>
123
125
 
124
- <%# acronyms and unicode-math load amsmath, which has to be loaded before cleveref; we need it to load early to avoid option clash -%>
126
+ <%# acronyms and unicode-math/minim-math load amsmath, which has to be loaded before cleveref; we need it to load early to avoid option clash -%>
125
127
  <% if (feature.abbreviations) { %><%- include('math.preamble.en.tex', this); -%>
126
128
 
127
129
  <% } -%>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-latex-template",
3
- "version": "2025.1.31",
3
+ "version": "2025.2.12",
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": {