generator-latex-template 2026.11.4 → 2026.11.9
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 +17 -2
- package/generators/app/index.js +26 -0
- package/generators/app/templates/.github/workflows/check.yml +31 -3
- package/generators/app/templates/IEEEtran-doi.bst +2897 -0
- package/generators/app/templates/IEEEtran-doi.bst.patch +969 -0
- package/generators/app/templates/IEEEtranN-doi.bst +491 -56
- package/generators/app/templates/IEEEtranN-doi.bst.patch +772 -34
- package/generators/app/templates/README.en.md +26 -8
- package/generators/app/templates/Texlivefile +3 -0
- package/generators/app/templates/comparison-reference-guide-biblatex.ieee.bib +1293 -0
- package/generators/app/templates/comparison-reference-guide-biblatex.ieee.tex +408 -0
- package/generators/app/templates/comparison-reference-guide-bibtex.ieee.bib +1318 -0
- package/generators/app/templates/comparison-reference-guide-bibtex.ieee.tex +297 -0
- package/generators/app/templates/dot.aspell.de.pws +3 -1
- package/generators/app/templates/dot.aspell.en.pws +3 -1
- package/generators/app/templates/dot.typos.toml +2 -0
- package/generators/app/templates/font.preamble.en.tex +8 -5
- package/package.json +1 -1
package/generators/app/CLAUDE.md
CHANGED
|
@@ -123,6 +123,11 @@ formats) catch things a single local `yo` + compile does not. Two that have bitt
|
|
|
123
123
|
|
|
124
124
|
## `IEEEtranN-doi.bst` is a versioned modification of IEEEtranN.bst
|
|
125
125
|
|
|
126
|
+
`IEEEtran-doi.bst` (+ `IEEEtran-doi.bst.patch`) is the same modification of the plain `IEEEtran.bst`, shipped for
|
|
127
|
+
documents without natbib; the template itself uses the natbib twin. Make every change in both files and keep their
|
|
128
|
+
`doi.bst.version` and `doi.bst.date` equal; the patch of the natbib twin applies to `IEEEtran.bst` except for the
|
|
129
|
+
hunks that name the file (header, banner, `bbl.*` strings, `begin.bib`), which are ported by hand.
|
|
130
|
+
|
|
126
131
|
`generators/app/templates/IEEEtranN-doi.bst` is TeX Live's `IEEEtranN.bst` (1.14, 2015/08/26) plus
|
|
127
132
|
`IEEEtranN-doi.bst.patch`; the patch is the record, the `.bst` is what the templates ship. The file
|
|
128
133
|
carries its **own** version (`doi.bst.version`/`doi.bst.date` next to Michael Shell's unchanged
|
|
@@ -132,6 +137,16 @@ never claims to come from an unmodified IEEEtranN.bst. When you change the `.bst
|
|
|
132
137
|
1. Bump `doi.bst.version` and `doi.bst.date`, and add the change to the version list in the file header.
|
|
133
138
|
2. Regenerate the patch from TeX Live's original (labels must stay `IEEEtranN.bst`/`IEEEtranN-doi.bst`):
|
|
134
139
|
`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.
|
|
140
|
+
(in the TeX Live docker image when the host has no TeX Live); the same with `IEEEtran.bst`/`IEEEtran-doi.bst`.
|
|
141
|
+
3. Check the result against the IEEE Reference Guide: in a generated IEEE template, build
|
|
142
|
+
`comparison/reference-guide-bibtex.tex` as the `reference-guide` job of `check.yml` does (pdflatex + bibtex,
|
|
143
|
+
jobname `comparison-reference-guide-bibtex`, from the template's root); it shows every guide example next to
|
|
144
|
+
the `.bst` output. The sources `comparison-reference-guide-{bibtex,biblatex}.ieee.{tex,bib}` are vendored
|
|
145
|
+
from the sibling `biblatex-ieee` checkout by `scripts/ieee-reference-guide.py` and never edited by hand
|
|
146
|
+
(the biblatex pair is the same comparison for biblatex-ieee as distributed by TeX Live).
|
|
147
|
+
`scripts/ieee-reference-guide-diff.py <dir> [bibtex|biblatex]` diffs the text of the built PDF example by
|
|
148
|
+
example and prints the counts (version 4: 101 of 145 identical; biblatex-ieee's own patched style: 82; the
|
|
149
|
+
rest are the guide's own inconsistencies or data the fields cannot carry). Do not let the count drop.
|
|
150
|
+
Flaws of the guide itself are reported to IEEE through the IEEE Reference Assistant, <https://refassist.ieee.org/>.
|
|
151
|
+
4. Keep every `write$` line of `begin.bib` under 79 characters, or BibTeX wraps it and the rest of
|
|
137
152
|
the banner is typeset before the first reference (`req~ieee-bst-banner~1`).
|
package/generators/app/index.js
CHANGED
|
@@ -671,6 +671,27 @@ export default class extends Generator {
|
|
|
671
671
|
[`comparison-body.${this.props.documentclass}.tex`, "body.tex"],
|
|
672
672
|
[`comparison-plain.${this.props.documentclass}.tex`, "plain.tex"],
|
|
673
673
|
["comparison-build.sh", "build.sh"],
|
|
674
|
+
// IEEE: every example of the IEEE Reference Guide next to the output of IEEEtranN-doi.bst
|
|
675
|
+
...(this.props.documentclass === "ieee"
|
|
676
|
+
? [
|
|
677
|
+
[
|
|
678
|
+
"comparison-reference-guide-bibtex.ieee.tex",
|
|
679
|
+
"reference-guide-bibtex.tex",
|
|
680
|
+
],
|
|
681
|
+
[
|
|
682
|
+
"comparison-reference-guide-bibtex.ieee.bib",
|
|
683
|
+
"reference-guide-bibtex.bib",
|
|
684
|
+
],
|
|
685
|
+
[
|
|
686
|
+
"comparison-reference-guide-biblatex.ieee.tex",
|
|
687
|
+
"reference-guide-biblatex.tex",
|
|
688
|
+
],
|
|
689
|
+
[
|
|
690
|
+
"comparison-reference-guide-biblatex.ieee.bib",
|
|
691
|
+
"reference-guide-biblatex.bib",
|
|
692
|
+
],
|
|
693
|
+
]
|
|
694
|
+
: []),
|
|
674
695
|
]) {
|
|
675
696
|
this.fs.copyTpl(
|
|
676
697
|
this.templatePath(src),
|
|
@@ -693,6 +714,11 @@ export default class extends Generator {
|
|
|
693
714
|
this.templatePath("IEEEtranN-doi.bst"),
|
|
694
715
|
this.destinationPath("IEEEtranN-doi.bst"),
|
|
695
716
|
);
|
|
717
|
+
// the same modification of IEEEtran.bst, for documents without natbib (other papers, not this template)
|
|
718
|
+
this.fs.copy(
|
|
719
|
+
this.templatePath("IEEEtran-doi.bst"),
|
|
720
|
+
this.destinationPath("IEEEtran-doi.bst"),
|
|
721
|
+
);
|
|
696
722
|
}
|
|
697
723
|
|
|
698
724
|
// Photo for the JPEG example in floats.example.*.tex (CC0, see README)
|
|
@@ -99,7 +99,7 @@ jobs:
|
|
|
99
99
|
uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
|
|
100
100
|
with:
|
|
101
101
|
packages: poppler-utils
|
|
102
|
-
version: 1.
|
|
102
|
+
version: 1.1 # bumped after a cache saved during an apt mirror outage lacked pdftotext
|
|
103
103
|
<%# [impl->req~ligatures-copyable~1] -%>
|
|
104
104
|
- name: Check that words with ligatures can be copied from the PDF
|
|
105
105
|
# The example "Other features" typesets "workflow" and "dwarflike". A wrong font setup
|
|
@@ -120,7 +120,7 @@ jobs:
|
|
|
120
120
|
uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
|
|
121
121
|
with:
|
|
122
122
|
packages: poppler-utils imagemagick
|
|
123
|
-
version: 1.
|
|
123
|
+
version: 1.1 # bumped after a cache saved during an apt mirror outage lacked the packages
|
|
124
124
|
execute_install_scripts: true # creates the "compare" alternative
|
|
125
125
|
<%# [impl->req~pdf-diff-weekly~1] -%>
|
|
126
126
|
- name: Compare with the published PDF
|
|
@@ -192,7 +192,7 @@ jobs:
|
|
|
192
192
|
uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
|
|
193
193
|
with:
|
|
194
194
|
packages: poppler-utils imagemagick
|
|
195
|
-
version: 1.
|
|
195
|
+
version: 1.1 # bumped after a cache saved during an apt mirror outage lacked the packages
|
|
196
196
|
execute_install_scripts: true # creates the "convert" alternative
|
|
197
197
|
- run: ./comparison/build.sh
|
|
198
198
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
@@ -202,6 +202,34 @@ jobs:
|
|
|
202
202
|
comparison-*.png
|
|
203
203
|
comparison-*.pdf
|
|
204
204
|
<% } -%>
|
|
205
|
+
<% if (githubpublish && (documentclass == "ieee")) { -%>
|
|
206
|
+
reference-guide:
|
|
207
|
+
# Every example of the IEEE Reference Guide next to the output of IEEEtranN-doi.bst and of biblatex-ieee (see the README)
|
|
208
|
+
name: reference-guide (comparison/reference-guide-*.tex)
|
|
209
|
+
if: github.repository == 'latextemplates/ieee-enhanced'
|
|
210
|
+
runs-on: ubuntu-latest
|
|
211
|
+
steps:
|
|
212
|
+
- name: Set up Git repository
|
|
213
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
214
|
+
- name: Install TeX Live
|
|
215
|
+
uses: zauguin/install-texlive@c9f3ea3d51b2e04d092c4f9d208a19542d5dabcf # v4.5.0
|
|
216
|
+
with:
|
|
217
|
+
package_file: '${{ github.workspace }}/Texlivefile'
|
|
218
|
+
texlive_version: <%= texlive %>
|
|
219
|
+
- name: Prepare latexmk
|
|
220
|
+
run: |
|
|
221
|
+
updmap -sys
|
|
222
|
+
texhash
|
|
223
|
+
tlmgr generate language --rebuild-sys
|
|
224
|
+
- name: Typeset with IEEEtranN-doi.bst (pdflatex + bibtex)
|
|
225
|
+
run: latexmk -pdf -pdflatex='pdflatex %O %S' -bibtex -interaction=nonstopmode -jobname=comparison-reference-guide-bibtex comparison/reference-guide-bibtex.tex
|
|
226
|
+
- name: Typeset with biblatex-ieee as distributed (lualatex + biber)
|
|
227
|
+
run: latexmk -lualatex -interaction=nonstopmode -jobname=comparison-reference-guide-biblatex comparison/reference-guide-biblatex.tex
|
|
228
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
229
|
+
with:
|
|
230
|
+
name: reference-guide
|
|
231
|
+
path: comparison-reference-guide-*.pdf
|
|
232
|
+
<% } -%>
|
|
205
233
|
<% if (isThesis) { -%>
|
|
206
234
|
<%# [impl->req~chapter-standalone~1] -%>
|
|
207
235
|
chapter:
|