generator-latex-template 2026.11.3 → 2026.11.4
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 +15 -0
- package/generators/app/index.js +9 -2
- package/generators/app/templates/.github/workflows/check.yml +16 -0
- package/generators/app/templates/IEEEtranN-doi.bst +18 -3
- package/generators/app/templates/IEEEtranN-doi.bst.patch +52 -25
- package/generators/app/templates/dot.aspell.de.pws +4 -1
- package/generators/app/templates/dot.aspell.en.pws +4 -1
- package/generators/app/templates/font.preamble.en.tex +4 -1
- package/generators/app/templates/ieee-nfss-fonts.preamble.en.tex +21 -0
- package/generators/app/templates/main.de.tex +1 -0
- package/generators/app/templates/main.en.tex +1 -0
- package/generators/app/templates/minted.preamble.en.tex +3 -1
- package/generators/app/templates/tables.example.en.tex +3 -3
- package/package.json +1 -1
package/generators/app/CLAUDE.md
CHANGED
|
@@ -120,3 +120,18 @@ formats) catch things a single local `yo` + compile does not. Two that have bitt
|
|
|
120
120
|
`\gls` entries language-exclusive breaks the other language's variant with
|
|
121
121
|
``Glossary entry `…' has not been defined``. The same single-shared-file logic applies to
|
|
122
122
|
other `this.fs.copy`'d siblings (`commands.tex`, …).
|
|
123
|
+
|
|
124
|
+
## `IEEEtranN-doi.bst` is a versioned modification of IEEEtranN.bst
|
|
125
|
+
|
|
126
|
+
`generators/app/templates/IEEEtranN-doi.bst` is TeX Live's `IEEEtranN.bst` (1.14, 2015/08/26) plus
|
|
127
|
+
`IEEEtranN-doi.bst.patch`; the patch is the record, the `.bst` is what the templates ship. The file
|
|
128
|
+
carries its **own** version (`doi.bst.version`/`doi.bst.date` next to Michael Shell's unchanged
|
|
129
|
+
`bst.file.version`), which the BibTeX terminal banner and the first `.bbl` line print, so a `.bbl`
|
|
130
|
+
never claims to come from an unmodified IEEEtranN.bst. When you change the `.bst`:
|
|
131
|
+
|
|
132
|
+
1. Bump `doi.bst.version` and `doi.bst.date`, and add the change to the version list in the file header.
|
|
133
|
+
2. Regenerate the patch from TeX Live's original (labels must stay `IEEEtranN.bst`/`IEEEtranN-doi.bst`):
|
|
134
|
+
`cp "$(kpsewhich IEEEtranN.bst)" /tmp && diff -u --label IEEEtranN.bst --label IEEEtranN-doi.bst /tmp/IEEEtranN.bst generators/app/templates/IEEEtranN-doi.bst > generators/app/templates/IEEEtranN-doi.bst.patch`
|
|
135
|
+
(in the TeX Live docker image when the host has no TeX Live).
|
|
136
|
+
3. Keep every `write$` line of `begin.bib` under 79 characters, or BibTeX wraps it and the rest of
|
|
137
|
+
the banner is typeset before the first reference (`req~ieee-bst-banner~1`).
|
package/generators/app/index.js
CHANGED
|
@@ -605,9 +605,16 @@ export default class extends Generator {
|
|
|
605
605
|
|
|
606
606
|
// The word lists of aspell (.aspell.<lang>.pws), LTeX+ (.vscode/ltex.dictionary.<language>.txt), and
|
|
607
607
|
// TeXtidote (.textidote.dict) contain the same words. "make dictionaries" merges them in the generated
|
|
608
|
-
// repository the same way (sorted like "LC_ALL=C sort -u"
|
|
608
|
+
// repository the same way (sorted like "LC_ALL=C sort -u | LC_ALL=C sort -f": ASCII case folded, ties in
|
|
609
|
+
// byte order), so its first run changes nothing. A different order makes the "Update files" bot and the
|
|
610
|
+
// "Dictionaries" workflow rewrite the files in turns.
|
|
609
611
|
// LTeX+ (VS Code extension, see .vscode/extensions.json) reads its file automatically; "Add to dictionary" writes there.
|
|
610
|
-
const
|
|
612
|
+
const fold = (word) => word.replace(/[a-z]/g, (c) => c.toUpperCase());
|
|
613
|
+
const byteOrder = (a, b) => (a < b ? -1 : a > b ? 1 : 0);
|
|
614
|
+
const sortedUnique = (words) =>
|
|
615
|
+
[...new Set(words)].sort(
|
|
616
|
+
(a, b) => byteOrder(fold(a), fold(b)) || byteOrder(a, b),
|
|
617
|
+
);
|
|
611
618
|
const aspellWords = (lang) =>
|
|
612
619
|
this.fs
|
|
613
620
|
.read(this.templatePath(`dot.aspell.${lang}.pws`))
|
|
@@ -94,6 +94,22 @@ jobs:
|
|
|
94
94
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
|
95
95
|
texlogsieve <%= filenames.main %>.log | tee -a "$GITHUB_STEP_SUMMARY" || true
|
|
96
96
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
|
97
|
+
<% if (examples) { -%>
|
|
98
|
+
- name: Install pdftotext
|
|
99
|
+
uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
|
|
100
|
+
with:
|
|
101
|
+
packages: poppler-utils
|
|
102
|
+
version: 1.0
|
|
103
|
+
<%# [impl->req~ligatures-copyable~1] -%>
|
|
104
|
+
- name: Check that words with ligatures can be copied from the PDF
|
|
105
|
+
# The example "Other features" typesets "workflow" and "dwarflike". A wrong font setup
|
|
106
|
+
# gives "work?ow" or the ligature characters U+FB00 to U+FB06 when the text is copied.
|
|
107
|
+
run: |
|
|
108
|
+
pdftotext <%= filenames.main %>.pdf <%= filenames.main %>.txt
|
|
109
|
+
grep -q workflow <%= filenames.main %>.txt
|
|
110
|
+
grep -q dwarflike <%= filenames.main %>.txt
|
|
111
|
+
! LC_ALL=C grep -qP '\xef\xac[\x80-\x86]' <%= filenames.main %>.txt
|
|
112
|
+
<% } -%>
|
|
97
113
|
<% } -%>
|
|
98
114
|
<% if (githubpublish) { 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]; -%>
|
|
99
115
|
- name: Install pdftoppm and ImageMagick
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
%%
|
|
2
|
-
%% IEEEtranN-doi.bst
|
|
2
|
+
%% IEEEtranN-doi.bst, version 3 (2026/11/03)
|
|
3
3
|
%% IEEEtranN.bst (version 1.14) modified to output the DOI as
|
|
4
4
|
%% ", doi: 10.xxx" before the URL (also after a note) and to repeat the names
|
|
5
5
|
%% of the previous entry instead of a dash, as the IEEE Reference Guide
|
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
%% https://github.com/latextemplates/generator-latex-template;
|
|
8
8
|
%% report problems there, not to the original author.
|
|
9
9
|
%%
|
|
10
|
+
%% Versions of the modification (the IEEEtranN.bst version stays 1.14):
|
|
11
|
+
%% 3 (2026/11/03): banners name this file and its version, not only IEEEtranN.bst
|
|
12
|
+
%% 2 (2026/11/03): repeated names written out instead of a dash
|
|
13
|
+
%% 1 (2026/10/19): DOI output
|
|
14
|
+
%%
|
|
10
15
|
%% Original header of IEEEtranN.bst:
|
|
11
16
|
%%
|
|
12
17
|
%% BibTeX Bibliography Style file
|
|
@@ -172,10 +177,18 @@ FUNCTION {is.print.banners.to.terminal} { #1 }
|
|
|
172
177
|
FUNCTION{bst.file.version} { "1.14" }
|
|
173
178
|
FUNCTION{bst.file.date} { "2015/08/26" }
|
|
174
179
|
FUNCTION{bst.file.website} { "http://www.michaelshell.org/tex/ieeetran/bibtex/" }
|
|
180
|
+
FUNCTION{doi.bst.version} { "3" }
|
|
181
|
+
FUNCTION{doi.bst.date} { "2026/11/03" }
|
|
182
|
+
FUNCTION{doi.bst.website} { "https://github.com/latextemplates/generator-latex-template" }
|
|
175
183
|
|
|
176
184
|
FUNCTION {banner.message}
|
|
177
185
|
{ is.print.banners.to.terminal
|
|
178
|
-
{ "-- IEEEtranN.bst version" " " * bst.
|
|
186
|
+
{ "-- IEEEtranN-doi.bst version" " " * doi.bst.version *
|
|
187
|
+
" (" * doi.bst.date * ") " * "by the latextemplates project," *
|
|
188
|
+
top$
|
|
189
|
+
"-- " doi.bst.website *
|
|
190
|
+
top$
|
|
191
|
+
"-- based on IEEEtranN.bst version" " " * bst.file.version *
|
|
179
192
|
" (" * bst.file.date * ") " * "by Michael Shell." *
|
|
180
193
|
top$
|
|
181
194
|
"-- " bst.file.website *
|
|
@@ -1136,7 +1149,9 @@ FUNCTION {start.entry}
|
|
|
1136
1149
|
% the other gurus on comp.text.tex for their help and advice on the topic of
|
|
1137
1150
|
% \selectlanguage, Babel and BibTeX.
|
|
1138
1151
|
FUNCTION {begin.bib}
|
|
1139
|
-
{ "% Generated by IEEEtranN-doi.bst,
|
|
1152
|
+
{ "% Generated by IEEEtranN-doi.bst, version: " doi.bst.version * " (" * doi.bst.date * ")" *
|
|
1153
|
+
write$ newline$
|
|
1154
|
+
"% based on IEEEtranN.bst, version: " bst.file.version * " (" * bst.file.date * ")" *
|
|
1140
1155
|
write$ newline$
|
|
1141
1156
|
preamble$ empty$ 'skip$
|
|
1142
1157
|
{ preamble$ write$ newline$ }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
--- IEEEtranN.bst
|
|
2
2
|
+++ IEEEtranN-doi.bst
|
|
3
|
-
@@ -1,5 +1,
|
|
3
|
+
@@ -1,5 +1,19 @@
|
|
4
4
|
%%
|
|
5
5
|
-%% IEEEtranN.bst
|
|
6
|
-
+%% IEEEtranN-doi.bst
|
|
6
|
+
+%% IEEEtranN-doi.bst, version 3 (2026/11/03)
|
|
7
7
|
+%% IEEEtranN.bst (version 1.14) modified to output the DOI as
|
|
8
8
|
+%% ", doi: 10.xxx" before the URL (also after a note) and to repeat the names
|
|
9
9
|
+%% of the previous entry instead of a dash, as the IEEE Reference Guide
|
|
@@ -11,12 +11,17 @@
|
|
|
11
11
|
+%% https://github.com/latextemplates/generator-latex-template;
|
|
12
12
|
+%% report problems there, not to the original author.
|
|
13
13
|
+%%
|
|
14
|
+
+%% Versions of the modification (the IEEEtranN.bst version stays 1.14):
|
|
15
|
+
+%% 3 (2026/11/03): banners name this file and its version, not only IEEEtranN.bst
|
|
16
|
+
+%% 2 (2026/11/03): repeated names written out instead of a dash
|
|
17
|
+
+%% 1 (2026/10/19): DOI output
|
|
18
|
+
+%%
|
|
14
19
|
+%% Original header of IEEEtranN.bst:
|
|
15
20
|
+%%
|
|
16
21
|
%% BibTeX Bibliography Style file
|
|
17
22
|
%% Natbib version of IEEEtran.bst
|
|
18
23
|
%% *** Not for normal IEEE work ***
|
|
19
|
-
@@ -130,7 +
|
|
24
|
+
@@ -130,7 +144,8 @@
|
|
20
25
|
% #0 turns off the "dashification" of repeated (i.e., identical to those
|
|
21
26
|
% of the previous entry) names. The IEEE normally does this.
|
|
22
27
|
% #1 enables
|
|
@@ -26,7 +31,27 @@
|
|
|
26
31
|
|
|
27
32
|
|
|
28
33
|
% The default name format control string.
|
|
29
|
-
@@ -
|
|
34
|
+
@@ -162,10 +177,18 @@
|
|
35
|
+
FUNCTION{bst.file.version} { "1.14" }
|
|
36
|
+
FUNCTION{bst.file.date} { "2015/08/26" }
|
|
37
|
+
FUNCTION{bst.file.website} { "http://www.michaelshell.org/tex/ieeetran/bibtex/" }
|
|
38
|
+
+FUNCTION{doi.bst.version} { "3" }
|
|
39
|
+
+FUNCTION{doi.bst.date} { "2026/11/03" }
|
|
40
|
+
+FUNCTION{doi.bst.website} { "https://github.com/latextemplates/generator-latex-template" }
|
|
41
|
+
|
|
42
|
+
FUNCTION {banner.message}
|
|
43
|
+
{ is.print.banners.to.terminal
|
|
44
|
+
- { "-- IEEEtranN.bst version" " " * bst.file.version *
|
|
45
|
+
+ { "-- IEEEtranN-doi.bst version" " " * doi.bst.version *
|
|
46
|
+
+ " (" * doi.bst.date * ") " * "by the latextemplates project," *
|
|
47
|
+
+ top$
|
|
48
|
+
+ "-- " doi.bst.website *
|
|
49
|
+
+ top$
|
|
50
|
+
+ "-- based on IEEEtranN.bst version" " " * bst.file.version *
|
|
51
|
+
" (" * bst.file.date * ") " * "by Michael Shell." *
|
|
52
|
+
top$
|
|
53
|
+
"-- " bst.file.website *
|
|
54
|
+
@@ -296,6 +319,7 @@
|
|
30
55
|
volume
|
|
31
56
|
year
|
|
32
57
|
yearfiled
|
|
@@ -34,16 +59,18 @@
|
|
|
34
59
|
CTLuse_article_number
|
|
35
60
|
CTLuse_paper
|
|
36
61
|
CTLuse_url
|
|
37
|
-
@@ -1125,7 +
|
|
62
|
+
@@ -1125,7 +1149,9 @@
|
|
38
63
|
% the other gurus on comp.text.tex for their help and advice on the topic of
|
|
39
64
|
% \selectlanguage, Babel and BibTeX.
|
|
40
65
|
FUNCTION {begin.bib}
|
|
41
66
|
-{ "% Generated by IEEEtranN.bst, version: " bst.file.version * " (" * bst.file.date * ")" *
|
|
42
|
-
+{ "% Generated by IEEEtranN-doi.bst,
|
|
67
|
+
+{ "% Generated by IEEEtranN-doi.bst, version: " doi.bst.version * " (" * doi.bst.date * ")" *
|
|
68
|
+
+ write$ newline$
|
|
69
|
+
+ "% based on IEEEtranN.bst, version: " bst.file.version * " (" * bst.file.date * ")" *
|
|
43
70
|
write$ newline$
|
|
44
71
|
preamble$ empty$ 'skip$
|
|
45
72
|
{ preamble$ write$ newline$ }
|
|
46
|
-
@@ -1140,6 +
|
|
73
|
+
@@ -1140,6 +1166,8 @@
|
|
47
74
|
write$ newline$
|
|
48
75
|
"\providecommand{\newblock}{\relax}"
|
|
49
76
|
write$ newline$
|
|
@@ -52,7 +79,7 @@
|
|
|
52
79
|
"\providecommand{\bibinfo}[2]{#2}"
|
|
53
80
|
write$ newline$
|
|
54
81
|
"\providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax}"
|
|
55
|
-
@@ -1965,6 +
|
|
82
|
+
@@ -1965,6 +1993,21 @@
|
|
56
83
|
|
|
57
84
|
|
|
58
85
|
|
|
@@ -74,7 +101,7 @@
|
|
|
74
101
|
%% URL
|
|
75
102
|
|
|
76
103
|
FUNCTION {format.url}
|
|
77
|
-
@@ -2012,6 +
|
|
104
|
+
@@ -2012,6 +2055,7 @@
|
|
78
105
|
format.pages output
|
|
79
106
|
format.date "year" output.warn
|
|
80
107
|
format.note output
|
|
@@ -82,7 +109,7 @@
|
|
|
82
109
|
format.url output
|
|
83
110
|
fin.entry
|
|
84
111
|
if.url.std.interword.spacing
|
|
85
|
-
@@ -2036,6 +
|
|
112
|
+
@@ -2036,6 +2080,7 @@
|
|
86
113
|
format.volume output
|
|
87
114
|
format.number output
|
|
88
115
|
format.note output
|
|
@@ -90,7 +117,7 @@
|
|
|
90
117
|
format.url output
|
|
91
118
|
fin.entry
|
|
92
119
|
if.url.std.interword.spacing
|
|
93
|
-
@@ -2053,6 +
|
|
120
|
+
@@ -2053,6 +2098,7 @@
|
|
94
121
|
format.address "address" bibinfo.check output
|
|
95
122
|
format.date output
|
|
96
123
|
format.note output
|
|
@@ -98,7 +125,7 @@
|
|
|
98
125
|
format.url output
|
|
99
126
|
fin.entry
|
|
100
127
|
if.url.std.interword.spacing
|
|
101
|
-
@@ -2070,6 +
|
|
128
|
+
@@ -2070,6 +2116,7 @@
|
|
102
129
|
format.organization "organization" bibinfo.check output
|
|
103
130
|
format.address "address" bibinfo.check output
|
|
104
131
|
format.note output
|
|
@@ -106,7 +133,7 @@
|
|
|
106
133
|
format.url output
|
|
107
134
|
fin.entry
|
|
108
135
|
empty.entry.warn
|
|
109
|
-
@@ -2093,6 +
|
|
136
|
+
@@ -2093,6 +2140,7 @@
|
|
110
137
|
format.chapter output
|
|
111
138
|
format.pages output
|
|
112
139
|
format.note output
|
|
@@ -114,7 +141,7 @@
|
|
|
114
141
|
format.url output
|
|
115
142
|
fin.entry
|
|
116
143
|
if.url.std.interword.spacing
|
|
117
|
-
@@ -2114,6 +
|
|
144
|
+
@@ -2114,6 +2162,7 @@
|
|
118
145
|
format.chapter output
|
|
119
146
|
format.pages output
|
|
120
147
|
format.note output
|
|
@@ -122,7 +149,7 @@
|
|
|
122
149
|
format.url output
|
|
123
150
|
fin.entry
|
|
124
151
|
if.url.std.interword.spacing
|
|
125
|
-
@@ -2140,6 +
|
|
152
|
+
@@ -2140,6 +2189,7 @@
|
|
126
153
|
format.paper output
|
|
127
154
|
format.pages output
|
|
128
155
|
format.note output
|
|
@@ -130,7 +157,7 @@
|
|
|
130
157
|
format.url output
|
|
131
158
|
fin.entry
|
|
132
159
|
if.url.std.interword.spacing
|
|
133
|
-
@@ -2157,6 +
|
|
160
|
+
@@ -2157,6 +2207,7 @@
|
|
134
161
|
format.address "address" bibinfo.check output
|
|
135
162
|
format.date output
|
|
136
163
|
format.note output
|
|
@@ -138,7 +165,7 @@
|
|
|
138
165
|
format.url output
|
|
139
166
|
fin.entry
|
|
140
167
|
if.url.std.interword.spacing
|
|
141
|
-
@@ -2174,6 +
|
|
168
|
+
@@ -2174,6 +2225,7 @@
|
|
142
169
|
format.address "address" bibinfo.check output
|
|
143
170
|
format.date "year" output.warn
|
|
144
171
|
format.note output
|
|
@@ -146,7 +173,7 @@
|
|
|
146
173
|
format.url output
|
|
147
174
|
fin.entry
|
|
148
175
|
if.url.std.interword.spacing
|
|
149
|
-
@@ -2192,6 +
|
|
176
|
+
@@ -2192,6 +2244,7 @@
|
|
150
177
|
format.pages output
|
|
151
178
|
format.date output
|
|
152
179
|
format.note output
|
|
@@ -154,7 +181,7 @@
|
|
|
154
181
|
format.url output
|
|
155
182
|
fin.entry
|
|
156
183
|
empty.entry.warn
|
|
157
|
-
@@ -2208,6 +
|
|
184
|
+
@@ -2208,6 +2261,7 @@
|
|
158
185
|
format.patent.nationality.type.number output
|
|
159
186
|
format.patent.date output
|
|
160
187
|
format.note output
|
|
@@ -162,7 +189,7 @@
|
|
|
162
189
|
format.url output
|
|
163
190
|
fin.entry
|
|
164
191
|
empty.entry.warn
|
|
165
|
-
@@ -2227,6 +
|
|
192
|
+
@@ -2227,6 +2281,7 @@
|
|
166
193
|
format.organization "organization" bibinfo.check output
|
|
167
194
|
format.date "year" output.warn
|
|
168
195
|
format.note output
|
|
@@ -170,7 +197,7 @@
|
|
|
170
197
|
format.url output
|
|
171
198
|
fin.entry
|
|
172
199
|
if.url.std.interword.spacing
|
|
173
|
-
@@ -2244,6 +
|
|
200
|
+
@@ -2244,6 +2299,7 @@
|
|
174
201
|
format.address "address" bibinfo.check output
|
|
175
202
|
format.date "year" output.warn
|
|
176
203
|
format.note output
|
|
@@ -178,7 +205,7 @@
|
|
|
178
205
|
format.url output
|
|
179
206
|
fin.entry
|
|
180
207
|
if.url.std.interword.spacing
|
|
181
|
-
@@ -2266,6 +
|
|
208
|
+
@@ -2266,6 +2322,7 @@
|
|
182
209
|
}
|
|
183
210
|
if$
|
|
184
211
|
format.note output
|
|
@@ -186,7 +213,7 @@
|
|
|
186
213
|
format.url output
|
|
187
214
|
fin.entry
|
|
188
215
|
if.url.std.interword.spacing
|
|
189
|
-
@@ -2283,6 +
|
|
216
|
+
@@ -2283,6 +2340,7 @@
|
|
190
217
|
format.revision output
|
|
191
218
|
format.date output
|
|
192
219
|
format.note output
|
|
@@ -194,7 +221,7 @@
|
|
|
194
221
|
format.url output
|
|
195
222
|
fin.entry
|
|
196
223
|
if.url.std.interword.spacing
|
|
197
|
-
@@ -2301,6 +
|
|
224
|
+
@@ -2301,6 +2359,7 @@
|
|
198
225
|
format.tech.report.number output.nonnull
|
|
199
226
|
format.date "year" output.warn
|
|
200
227
|
format.note output
|
|
@@ -202,7 +229,7 @@
|
|
|
202
229
|
format.url output
|
|
203
230
|
fin.entry
|
|
204
231
|
if.url.std.interword.spacing
|
|
205
|
-
@@ -2315,6 +
|
|
232
|
+
@@ -2315,6 +2374,7 @@
|
|
206
233
|
format.article.title "title" output.warn
|
|
207
234
|
format.date output
|
|
208
235
|
format.note "note" output.warn
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
personal_ws-1.1 de
|
|
1
|
+
personal_ws-1.1 de 199 utf-8
|
|
2
2
|
abbreviationdot
|
|
3
3
|
aboveskip
|
|
4
4
|
Access
|
|
@@ -59,6 +59,7 @@ FlateEncode
|
|
|
59
59
|
Fließtext
|
|
60
60
|
flXML
|
|
61
61
|
fontsize
|
|
62
|
+
fontspec
|
|
62
63
|
fquote
|
|
63
64
|
fr
|
|
64
65
|
funktioniert
|
|
@@ -112,6 +113,7 @@ monospaced
|
|
|
112
113
|
morecomment
|
|
113
114
|
nato
|
|
114
115
|
nd
|
|
116
|
+
newtxtext
|
|
115
117
|
nm
|
|
116
118
|
nn
|
|
117
119
|
nnn
|
|
@@ -166,6 +168,7 @@ subfigures
|
|
|
166
168
|
tablefootnote
|
|
167
169
|
tabularx
|
|
168
170
|
tbl
|
|
171
|
+
tex
|
|
169
172
|
Textfarbe
|
|
170
173
|
Thesis
|
|
171
174
|
threeparttable
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
personal_ws-1.1 en
|
|
1
|
+
personal_ws-1.1 en 197 utf-8
|
|
2
2
|
abbreviationdot
|
|
3
3
|
aboveskip
|
|
4
4
|
ACM
|
|
@@ -57,6 +57,7 @@ firstnumber
|
|
|
57
57
|
FlateEncode
|
|
58
58
|
flXML
|
|
59
59
|
fontsize
|
|
60
|
+
fontspec
|
|
60
61
|
fquote
|
|
61
62
|
fr
|
|
62
63
|
funktioniert
|
|
@@ -110,6 +111,7 @@ monospaced
|
|
|
110
111
|
morecomment
|
|
111
112
|
nato
|
|
112
113
|
nd
|
|
114
|
+
newtxtext
|
|
113
115
|
nm
|
|
114
116
|
nn
|
|
115
117
|
nnn
|
|
@@ -164,6 +166,7 @@ subfigures
|
|
|
164
166
|
tablefootnote
|
|
165
167
|
tabularx
|
|
166
168
|
tbl
|
|
169
|
+
tex
|
|
167
170
|
Textfarbe
|
|
168
171
|
threeparttable
|
|
169
172
|
tikz
|
|
@@ -55,6 +55,10 @@ lualatex
|
|
|
55
55
|
<% if (documentclass != "acmart") { -%>
|
|
56
56
|
<%= indent %><% if (overleaf || texlive < 2024 || true) { %>\usepackage{unicode-math}<% } else { %>\usepackage{minim-math}<% } %>
|
|
57
57
|
<% } -%>
|
|
58
|
+
<%= indent %>% newtxtext is for pdflatex. Under LuaLaTeX, it replaces the fonts set below by TeX Gyre Termes X without TeX ligatures: `` and '' appear as two single quotes (e.g., in the bibliography)
|
|
59
|
+
<%= indent %>\newcommand{\ltgNewtxtextError}{\GenericError{}{newtxtext loaded under LuaLaTeX}{}{Remove \string\usepackage{newtxtext}: the fonts are set with fontspec in <%= filenames.main %>.tex (search for \string\setmainfont).}}
|
|
60
|
+
<%= indent %>\IfPackageLoadedTF{newtxtext}{\ltgNewtxtextError}{}
|
|
61
|
+
<%= indent %>\AddToHook{package/newtxtext/before}{\ltgNewtxtextError}
|
|
58
62
|
<% switch (font) { case "arial": -%>
|
|
59
63
|
<%# Arial and LuaLaTeX -%>
|
|
60
64
|
<%# -%>
|
|
@@ -192,7 +196,6 @@ fontspec replaces them with Latin Modern, so the OpenType equivalents are set he
|
|
|
192
196
|
<%# [impl->req~ligatures-copyable~1] -%>
|
|
193
197
|
<%= indent %>\usepackage{selnolig}
|
|
194
198
|
<% } -%>
|
|
195
|
-
|
|
196
199
|
<% } -%>
|
|
197
200
|
<% if ((!reallatexcompiler.startsWith("lualatex")) || (latexcompiler == "both")) { -%>
|
|
198
201
|
<% if (latexcompiler == "both") { -%>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<% if ((reallatexcompiler.startsWith("lualatex")) || (latexcompiler == "both")) { -%>
|
|
2
|
+
<%# IEEEtran selects the Type 1 families ptm/ppl while loading, before fontspec runs. LuaLaTeX has no TU/ptm shapes,
|
|
3
|
+
warns four times "Font shape `TU/ptm/m/n' undefined", and substitutes Latin Modern until \setmainfont below.
|
|
4
|
+
These declarations map the families to the OpenType fonts the preamble uses anyway. Must come before \documentclass. -%>
|
|
5
|
+
<%# [impl->req~ieee-fonts-lualatex~1] -%>
|
|
6
|
+
% IEEEtran selects Times (ptm; Palatino, ppl, for compsoc journals) while loading, before fontspec can.
|
|
7
|
+
% Without these shapes, LuaLaTeX warns "Font shape `TU/ptm/m/n' undefined" and substitutes Latin Modern.
|
|
8
|
+
\ifdefined\directlua
|
|
9
|
+
\DeclareFontFamily{TU}{ptm}{}
|
|
10
|
+
\DeclareFontShape{TU}{ptm}{m}{n}{<-> "[texgyretermes-regular.otf]:mode=node;script=latn;+tlig;"}{} % chktex 18
|
|
11
|
+
\DeclareFontShape{TU}{ptm}{m}{it}{<-> "[texgyretermes-italic.otf]:mode=node;script=latn;+tlig;"}{} % chktex 18
|
|
12
|
+
\DeclareFontShape{TU}{ptm}{bx}{n}{<-> "[texgyretermes-bold.otf]:mode=node;script=latn;+tlig;"}{} % chktex 18
|
|
13
|
+
\DeclareFontShape{TU}{ptm}{bx}{it}{<-> "[texgyretermes-bolditalic.otf]:mode=node;script=latn;+tlig;"}{} % chktex 18
|
|
14
|
+
\DeclareFontFamily{TU}{ppl}{}
|
|
15
|
+
\DeclareFontShape{TU}{ppl}{m}{n}{<-> "[texgyrepagella-regular.otf]:mode=node;script=latn;+tlig;"}{} % chktex 18
|
|
16
|
+
\DeclareFontShape{TU}{ppl}{m}{it}{<-> "[texgyrepagella-italic.otf]:mode=node;script=latn;+tlig;"}{} % chktex 18
|
|
17
|
+
\DeclareFontShape{TU}{ppl}{bx}{n}{<-> "[texgyrepagella-bold.otf]:mode=node;script=latn;+tlig;"}{} % chktex 18
|
|
18
|
+
\DeclareFontShape{TU}{ppl}{bx}{it}{<-> "[texgyrepagella-bolditalic.otf]:mode=node;script=latn;+tlig;"}{} % chktex 18
|
|
19
|
+
\fi
|
|
20
|
+
|
|
21
|
+
<% } -%>
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
\documentclass[<%= acmformat %>,<%= papersize %>paper,<% if (acmreview) { %>review,<% } %>balance]{acmart}
|
|
65
65
|
<% break; case "ieee": -%>
|
|
66
66
|
|
|
67
|
+
<%- include('ieee-nfss-fonts.preamble.en.tex', this); -%>
|
|
67
68
|
% DO NOT DOWNLOAD IEEEtran.cls - Use the one of your LaTeX distribution
|
|
68
69
|
% For the final version, replace "draftcls" by "final"
|
|
69
70
|
\documentclass[<%= ieeevariant %>,<%= papersize %>paper,ngerman]{IEEEtran}[2015/08/26]
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
\documentclass[<%= acmformat %>,<% if (acmreview) { %>review,<% } %>balance]{acmart}
|
|
65
65
|
<% break; case "ieee": -%>
|
|
66
66
|
|
|
67
|
+
<%- include('ieee-nfss-fonts.preamble.en.tex', this); -%>
|
|
67
68
|
% DO NOT DOWNLOAD IEEEtran.cls - Use the one of your LaTeX distribution
|
|
68
69
|
\documentclass[<%= ieeevariant %>,<%= papersize %>paper,english]{IEEEtran}[2015/08/26]
|
|
69
70
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
\usepackage[newfloat]{minted}
|
|
3
3
|
|
|
4
4
|
\setminted{
|
|
5
|
+
% Same size as the listings package uses (basicstyle)
|
|
6
|
+
fontsize=\footnotesize,
|
|
5
7
|
% Line numbers not flowing out of the margin
|
|
6
8
|
numbersep=5pt,
|
|
7
9
|
xleftmargin=12pt,
|
|
@@ -61,5 +63,5 @@
|
|
|
61
63
|
<% if (documentclass == "ustutt") { -%>
|
|
62
64
|
|
|
63
65
|
% Zeilennummern innerhalb vom Rand:
|
|
64
|
-
\setminted{numbersep=5pt, xleftmargin=12pt}
|
|
66
|
+
\setminted{numbersep=5pt, xleftmargin=12pt, fontsize=\small}
|
|
65
67
|
<% } -%>
|
|
@@ -57,16 +57,16 @@ If the notes should appear directly below the table instead (common in journals)
|
|
|
57
57
|
<%- eexample %>
|
|
58
58
|
|
|
59
59
|
A table wider than the text runs into the margin.
|
|
60
|
-
\verb|\begin{adjustbox}{max width=\
|
|
60
|
+
\verb|\begin{adjustbox}{max width=\linewidth}| from the \href{https://ctan.org/pkg/adjustbox}{adjustbox} package scales it down to the line width (the column width in a two-column layout), and only if it is too wide.
|
|
61
61
|
Scaling shrinks the font, so for a table with long text in its cells, prefer wrapping the text with the column type \verb|X| of the \href{https://ctan.org/pkg/tabularx}{tabularx} package, and for a very wide table, a landscape page (see \texttt{pdflscape}).
|
|
62
62
|
|
|
63
63
|
<%- bexample %>
|
|
64
64
|
\begin{table}
|
|
65
|
-
\caption{Wide table scaled to the
|
|
65
|
+
\caption{Wide table scaled to the line width}
|
|
66
66
|
\label{tab:wide}
|
|
67
67
|
\centering
|
|
68
68
|
<%# [impl->req~wide-table-scaled~1] -%>
|
|
69
|
-
\begin{adjustbox}{max width=\
|
|
69
|
+
\begin{adjustbox}{max width=\linewidth}
|
|
70
70
|
\begin{tabular}{llllllllllll}
|
|
71
71
|
\toprule
|
|
72
72
|
Jan & Feb & Mar & Apr & May & Jun & Jul & Aug & Sep & Oct & Nov & Dec \\
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-latex-template",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.4",
|
|
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": {
|