generator-latex-template 2026.9.23 → 2026.9.28

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
@@ -241,6 +241,7 @@ See [benbalter/talks#15](https://github.com/benbalter/talks/issues/15#issuecomme
241
241
 
242
242
  - `generators/app/templates/splncs04nat.bst` is taken from [tpavlic/splncs04nat](https://github.com/tpavlic/splncs04nat) and is MIT-licensed.
243
243
  - `generators/app/templates/logos/`: This directory contains logos, which have special licenses.
244
+ - `generators/app/templates/figures/ulm-minster.jpg` is [Landappbw 79389 1820 Ulmer Münster Ulm.jpg](https://commons.wikimedia.org/w/index.php?curid=131463041) by wkrauth, dedicated to the public domain under [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/).
244
245
 
245
246
  [hyperref]: https://ctan.org/pkg/hyperref
246
247
  [listings]: https://ctan.org/pkg/listings
@@ -348,6 +348,14 @@ export default class extends Generator {
348
348
  );
349
349
  }
350
350
 
351
+ // Photo for the JPEG example in floats.example.*.tex (CC0, see README)
352
+ if (this.props.examples) {
353
+ this.fs.copy(
354
+ this.templatePath("figures/ulm-minster.jpg"),
355
+ this.destinationPath("figures/ulm-minster.jpg"),
356
+ );
357
+ }
358
+
351
359
  if (this.props.language === "de" && !this.props.githubpublish) {
352
360
  this.fs.copyTpl(
353
361
  this.templatePath("README.de.md"),
@@ -372,6 +372,24 @@ In case you think, a package needs to be altered or added, feel free to open an
372
372
  - Edit [paper.tex](paper.tex).
373
373
  - `latexmk paper`.
374
374
 
375
+ ## Using the template for a THU term paper
376
+
377
+ Technische Hochschule Ulm (THU) bases its term paper template on the IEEE conference template.
378
+ To follow the THU requirements (as of the THU template v1.0 of 2023-09-23 by Markus Goldstein):
379
+
380
+ - Enable page numbers: uncomment `\pagestyle{plain}` after `\maketitle`.
381
+ - Use the THU affiliation in the author block:
382
+
383
+ ```latex
384
+ \author{\IEEEauthorblockN{Given Name Surname}
385
+ \IEEEauthorblockA{\textit{Department of Computer Science} \\
386
+ \textit{Ulm University of Applied Sciences (THU)}\\
387
+ Ulm, Germany \\
388
+ youremail@thu.de}}
389
+ ```
390
+
391
+ Everything else (A4 paper, numeric citations with `natbib` and `IEEEtranN`, `\citet`, links without colored boxes) is already set up.
392
+
375
393
  ## Attention regarding `compsocconf`
376
394
 
377
395
  Some conferences distribute a `IEEEtran.cls` V1.7a dated 2007 and a parameter `compsocconf`.
@@ -17,7 +17,7 @@ Cleveref demonstration: Cref at beginning of sentence, cref in all other cases.
17
17
  Heading1 & Heading2 \\
18
18
  \midrule
19
19
  One & Two \\
20
- Thee & Four \\
20
+ Three & Four \\
21
21
  \bottomrule
22
22
  \end{tabular}
23
23
  \caption{Example table for cref demo}
@@ -1,4 +1,4 @@
1
- personal_ws-1.1 en 132 utf-8
1
+ personal_ws-1.1 en 138 utf-8
2
2
  ACM
3
3
  Atlantic
4
4
  BPEL
@@ -26,13 +26,17 @@ OMG
26
26
  ORCID
27
27
  OldStyle
28
28
  Organization
29
+ PNG
29
30
  Practitioner
30
31
  RDBMS
31
32
  RGB
33
+ ScienceOS
32
34
  TODOs
33
35
  Textfarbe
34
36
  Treaty
35
37
  UML
38
+ Ulm
39
+ Wikimedia
36
40
  Worten
37
41
  Zcref
38
42
  abbreviationdot
@@ -47,6 +51,7 @@ basewidth
47
51
  basicstyle
48
52
  bei
49
53
  belowskip
54
+ breakatwhitespace
50
55
  breaklines
51
56
  category
52
57
  cls
@@ -125,6 +130,7 @@ tion
125
130
  tt
126
131
  werden
127
132
  wird
133
+ wkrauth
128
134
  wurde
129
135
  xleftmargin
130
136
  zcref
@@ -10,6 +10,17 @@
10
10
  \label{fig:label}
11
11
  \end{figure}
12
12
  <%- eexample %>
13
+
14
+ Fotos im JPEG- oder PNG-Format werden genauso eingebunden, wie <%- cref %>{fig:jpg} zeigt.
15
+
16
+ <%- bexample %>
17
+ \begin{figure}
18
+ \centering
19
+ \includegraphics[width=.5\linewidth]{figures/ulm-minster.jpg}
20
+ \caption{Ulmer Münster. Foto: wkrauth, CC0, via Wikimedia Commons.}
21
+ \label{fig:jpg}
22
+ \end{figure}
23
+ <%- eexample %>
13
24
  <%- include('floatflt.example.en.tex', this); -%>
14
25
  <% if (documentclass == 'ieee') { -%>
15
26
 
@@ -13,6 +13,17 @@
13
13
  \label{fig:label}
14
14
  \end{figure}
15
15
  <%- eexample %>
16
+
17
+ Photos in JPEG or PNG format are included the same way, as shown in <%- cref %>{fig:jpg}.
18
+
19
+ <%- bexample %>
20
+ \begin{figure}
21
+ \centering
22
+ \includegraphics[width=.5\linewidth]{figures/ulm-minster.jpg}
23
+ \caption{Ulm Minster. Photo: wkrauth, CC0, via Wikimedia Commons.}
24
+ \label{fig:jpg}
25
+ \end{figure}
26
+ <%- eexample %>
16
27
  <%- include('floatflt.example.en.tex', this); -%>
17
28
  <% if (documentclass == 'ieee') { -%>
18
29
 
@@ -15,8 +15,8 @@
15
15
  \end{lstlisting}
16
16
  <%- eexample %>
17
17
 
18
- Der zusätzliche Paramter \verb+float+ führt dazu, dass das Listing auch floated.
19
- <%- Cref %>{lst:flXML} zeigt das gleitendede Listing.
18
+ Der zusätzliche Parameter \verb+float+ führt dazu, dass das Listing auch floated.
19
+ <%- Cref %>{lst:flXML} zeigt das gleitende Listing.
20
20
 
21
21
  <%- bexample %>
22
22
  \begin{lstlisting}[
@@ -490,6 +490,10 @@
490
490
  % make the title area
491
491
  \maketitle
492
492
 
493
+ % Seitenzahlen: für Einreichungen/Reviews und Nicht-IEEE-Nutzung (z.B. THU-Seminararbeiten) einschalten.
494
+ % Für die IEEE-Camera-Ready-Version ausgeschaltet lassen; IEEE setzt die Seitenzahlen selbst.
495
+ %\pagestyle{plain}
496
+
493
497
  % In case you want to add a copyright statement.
494
498
  % Works only in the compsoc conference mode.
495
499
  %
@@ -902,7 +906,7 @@ The background chapter has multiple roles.
902
906
 
903
907
  \item \emph{Related Work.}
904
908
  It has to provide a comprehensive discussion of all prior work in the area on this subject.
905
- Your discussion has to summarize these prior works and has to explain in which way the research question you are solving (<%- cref %>{sec:introduction:research-question}) has not bee solved yet because prior work had more limiting assumptions, addressed a different angle, their results are not complete etc. Depending on the subject you are studying, the related work part can be larger and warrant an entire chapter on its own, or be fully concluded within <%- cref %>{sec:introduction:state-of-art}.
909
+ Your discussion has to summarize these prior works and has to explain in which way the research question you are solving (<%- cref %>{sec:introduction:research-question}) has not been solved yet because prior work had more limiting assumptions, addressed a different angle, their results are not complete etc. Depending on the subject you are studying, the related work part can be larger and warrant an entire chapter on its own, or be fully concluded within <%- cref %>{sec:introduction:state-of-art}.
906
910
 
907
911
  You can close the related work discussion by clarifying the positioning and formulation of your research question (SM2) in relation to all the prior work, making more explicit whether you address an existing research question under different premises or whether you work on a modified or completely new research question.
908
912
  \end{itemize}
@@ -1106,6 +1110,10 @@ Der Abschnitt kann je nach Kontext auch an anderer Stelle stehen.
1106
1110
 
1107
1111
  Winery~\citep{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of American English} tool.
1108
1112
  The whole idea of TOSCA is explained by <% if (available.citet) { %>\citet<% } else { %>Binz et al.~\cite<% } %>{Binz2009}.
1113
+
1114
+ Für die Suche nach verwandten Arbeiten eignet sich \href{https://www.scienceos.ai/}{ScienceOS}\footnote{\url{https://www.scienceos.ai/}}; es speichert Daten in der EU und belegt seine Antworten mit Quellen, die man trotzdem selbst lesen und prüfen muss.
1115
+ Schreibhinweise für studentische Arbeiten gibt das Open-Access-Buch \href{https://vdf.ch/product/student-thesis-projects-en.html}{\emph{Student Thesis Projects}}\footnote{\url{https://vdf.ch/product/student-thesis-projects-en.html}}.
1116
+ Weitere Hinweise gibt \href{https://doi.org/10.1007/978-1-4471-6639-9}{\emph{Writing for Computer Science}}\footnote{\url{https://doi.org/10.1007/978-1-4471-6639-9}}.
1109
1117
  <% } -%>
1110
1118
  <% if (examples) { -%>
1111
1119
 
@@ -1137,6 +1145,8 @@ The whole idea of TOSCA is explained by <% if (available.citet) { %>\citet<% } e
1137
1145
  lastline=\the\LTGendlineexample,
1138
1146
  firstnumber=\the\LTGbeginlineexample,
1139
1147
  basewidth=.5em,
1148
+ % lange Zeilen auch ohne Leerzeichen umbrechen (z.B. \includegraphics[...]{...}); sonst ragen sie aus der Box
1149
+ breakatwhitespace=false,
1140
1150
  aboveskip=0mm,
1141
1151
  belowskip=0mm,
1142
1152
  numbers=left,
@@ -457,6 +457,10 @@
457
457
  % make the title area
458
458
  \maketitle
459
459
 
460
+ % Page numbers: enable for submissions/reviews and non-IEEE use (e.g., THU term papers).
461
+ % Keep disabled for the IEEE camera-ready version; IEEE adds page numbers itself.
462
+ %\pagestyle{plain}
463
+
460
464
  % In case you want to add a copyright statement.
461
465
  % Works only in the compsoc conference mode.
462
466
  %
@@ -876,7 +880,7 @@ The background chapter has multiple roles.
876
880
 
877
881
  \item \emph{Related Work.}
878
882
  It has to provide a comprehensive discussion of all prior work in the area on this subject.
879
- Your discussion has to summarize these prior works and has to explain in which way the research question you are solving (<%- cref %>{sec:introduction:research-question}) has not bee solved yet because prior work had more limiting assumptions, addressed a different angle, their results are not complete etc. Depending on the subject you are studying, the related work part can be larger and warrant an entire chapter on its own, or be fully concluded within <%- cref %>{sec:introduction:state-of-art}.
883
+ Your discussion has to summarize these prior works and has to explain in which way the research question you are solving (<%- cref %>{sec:introduction:research-question}) has not been solved yet because prior work had more limiting assumptions, addressed a different angle, their results are not complete etc. Depending on the subject you are studying, the related work part can be larger and warrant an entire chapter on its own, or be fully concluded within <%- cref %>{sec:introduction:state-of-art}.
880
884
 
881
885
  You can close the related work discussion by clarifying the positioning and formulation of your research question (SM2) in relation to all the prior work, making more explicit whether you address an existing research question under different premises or whether you work on a modified or completely new research question.
882
886
  \end{itemize}
@@ -1074,6 +1078,10 @@ Finally, a conclusion is drawn and outlook on future work is made (<%- cref %>{s
1074
1078
 
1075
1079
  Winery~\citep{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of American English} tool.
1076
1080
  The whole idea of TOSCA is explained by <% if (available.citet) { %>\citet<% } else { %>Binz et al.~\cite<% } %>{Binz2009}.
1081
+
1082
+ To search for related work, \href{https://www.scienceos.ai/}{ScienceOS}\footnote{\url{https://www.scienceos.ai/}} can be used; it stores data in the EU and backs its answers with citations, which you still have to read and check yourself.
1083
+ Writing hints for student theses are given in the open-access book \href{https://vdf.ch/product/student-thesis-projects-en.html}{\emph{Student Thesis Projects}}\footnote{\url{https://vdf.ch/product/student-thesis-projects-en.html}}.
1084
+ More hints are given in \href{https://doi.org/10.1007/978-1-4471-6639-9}{\emph{Writing for Computer Science}}\footnote{\url{https://doi.org/10.1007/978-1-4471-6639-9}}.
1077
1085
  <% } -%>
1078
1086
  <% if (examples) { -%>
1079
1087
 
@@ -1105,6 +1113,8 @@ The whole idea of TOSCA is explained by <% if (available.citet) { %>\citet<% } e
1105
1113
  lastline=\the\LTGendlineexample,
1106
1114
  firstnumber=\the\LTGbeginlineexample,
1107
1115
  basewidth=.5em,
1116
+ % break long lines even without whitespace (e.g., \includegraphics[...]{...}); otherwise they run out of the box
1117
+ breakatwhitespace=false,
1108
1118
  aboveskip=0mm,
1109
1119
  belowskip=0mm,
1110
1120
  numbers=left,
@@ -15,7 +15,7 @@ In LaTeX erreicht man dies durch Doppelbackslashes (\textbackslash\textbackslash
15
15
  \\
16
16
  Dies verwendet man quasi nie.
17
17
 
18
- Folglich werden neue Abstäze insbesondere \emph{nicht} durch Doppelbackslashes erzeugt.
18
+ Folglich werden neue Absätze insbesondere \emph{nicht} durch Doppelbackslashes erzeugt.
19
19
  Beispielsweise begann der letzte Satz in einem neuen Absatz.
20
20
  Eine ausführliche Motivation hierfür findet sich in \url{http://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/#section.3}.
21
21
  <%- eexample %>
@@ -14,7 +14,7 @@ Note that IEEE does not support \verb+\begin{table}+, one has to use \verb+\begi
14
14
  Heading1 & Heading2 \\
15
15
  \midrule
16
16
  One & Two \\
17
- Thee & Four \\
17
+ Three & Four \\
18
18
  \bottomrule
19
19
  \end{tabular}
20
20
  \end{<% if (documentclass == 'ieee') { %>figure<% } else { %>table<% } %>}
@@ -17,7 +17,7 @@ zref-clever demonstration: Zcref (short for zcref[S]) at beginning of sentence,
17
17
  Heading1 & Heading2 \\
18
18
  \midrule
19
19
  One & Two \\
20
- Thee & Four \\
20
+ Three & Four \\
21
21
  \bottomrule
22
22
  \end{tabular}
23
23
  \caption{Example table for zcref demo}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-latex-template",
3
- "version": "2026.9.23",
3
+ "version": "2026.9.28",
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": {