generator-latex-template 0.2.0 → 0.5.0
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 +24 -9
- package/generators/app/index.js +198 -106
- package/generators/app/templates/Dockerfile.dante +9 -0
- package/generators/app/templates/Dockerfile.reitzig +35 -0
- package/generators/app/templates/Makefile +0 -13
- package/generators/app/templates/README.en.md +68 -27
- package/generators/app/templates/Texlivefile +128 -0
- package/generators/app/templates/acronyms.de.tex +6 -0
- package/generators/app/templates/acronyms.en.tex +5 -0
- package/generators/app/templates/acronyms.example.de.tex +24 -0
- package/generators/app/templates/acronyms.example.en.tex +24 -0
- package/generators/app/templates/acronyms.preamble.en.tex +15 -0
- package/generators/app/templates/biblatex.preamble.de.tex +9 -0
- package/generators/app/templates/biblatex.preamble.en.tex +61 -0
- package/generators/app/templates/bibliography.bib +11 -0
- package/generators/app/templates/cleveref.example.en.tex +1 -1
- package/generators/app/templates/diagbox.example.en.tex +1 -1
- package/generators/app/templates/dot.dockerignore +429 -0
- package/generators/app/templates/figure.example.en.tex +5 -5
- package/generators/app/templates/font.preamble.en.tex +9 -6
- package/generators/app/templates/{dot.latexmkrc → latexmkrc} +11 -9
- package/generators/app/templates/main.de.tex +135 -11
- package/generators/app/templates/main.en.tex +244 -87
- package/generators/app/templates/microtype.preamble.en.tex +5 -0
- package/generators/app/templates/mindflow.example.en.tex +9 -0
- package/generators/app/templates/mindflow.preamble.en.tex +5 -0
- package/generators/app/templates/natbib.preamble.en.tex +1 -1
- package/generators/app/templates/scientific-thesis-cover.preamble.de.tex +12 -0
- package/generators/app/templates/scientific-thesis-cover.preamble.en.tex +12 -0
- package/generators/app/templates/siunitx.preamble.en.tex +0 -5
- package/generators/app/templates/subfloat.example.en.tex +4 -4
- package/generators/app/templates/url.preamble.en.tex +2 -0
- package/package.json +12 -12
- package/CHANGELOG.md +0 -58
- package/generators/app/templates/bibliography.bib.bak +0 -37
- package/generators/app/templates/main.de.pdf +0 -0
- package/generators/app/templates/main.de.synctex.gz +0 -0
- package/generators/app/templates/main.en.aux +0 -3
- package/generators/app/templates/main.en.fdb_latexmk +0 -38
- package/generators/app/templates/main.en.fls +0 -52
- package/generators/app/templates/main.en.log +0 -251
- package/generators/app/templates/main.en.pdf +0 -0
- package/generators/app/templates/main.en.synctex.gz +0 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
<% if (preparereitzig) { -%>
|
|
2
|
+
\RequirePackage{snapshot}
|
|
3
|
+
<% } -%>
|
|
1
4
|
<% if (documentclass == 'lncs') { -%>
|
|
2
|
-
% Dieses Template wurde mit der "LLNCS DOCUMENT CLASS -- version 2.
|
|
5
|
+
% Dieses Template wurde mit der "LLNCS DOCUMENT CLASS -- version 2.21 (12-Jan-2022)" getestet
|
|
3
6
|
|
|
4
7
|
<% } -%>
|
|
5
8
|
% !TeX spellcheck = de-DE
|
|
@@ -25,7 +28,7 @@
|
|
|
25
28
|
% "runningheads" zeigt Author + Titel auf jeder Seite.
|
|
26
29
|
% Diese Option nach Aufforderung durch die Herausgeber entfernen.
|
|
27
30
|
% Während des Schreibens und das Review des Papers hilft das, um z.B. auf konkrete Seitenzahlen einfach verweisen zu können.
|
|
28
|
-
\documentclass[
|
|
31
|
+
\documentclass[runningheads,a4paper,ngerman]{llncs}[2022/01/12]
|
|
29
32
|
<% } else {-%>
|
|
30
33
|
\documentclass[
|
|
31
34
|
% fontsize=11pt is the standard
|
|
@@ -40,8 +43,8 @@
|
|
|
40
43
|
a4paper, % Standard format - only KOMAScript uses paper=a4 - https://tex.stackexchange.com/a/61044/9075
|
|
41
44
|
twoside, % we are optimizing for both screen and two-side printing. So the page numbers will jump, but the content is configured to stay in the middle (by using the geometry package)
|
|
42
45
|
bibliography=totoc,
|
|
43
|
-
%
|
|
44
|
-
%
|
|
46
|
+
% idxtotoc, % Index ins Inhaltsverzeichnis
|
|
47
|
+
% liststotoc, % List of X ins Inhaltsverzeichnis, mit liststotocnumbered werden die Abbildungsverzeichnisse nummeriert
|
|
45
48
|
headsepline,
|
|
46
49
|
cleardoublepage=empty,
|
|
47
50
|
parskip=half,
|
|
@@ -122,6 +125,7 @@
|
|
|
122
125
|
|
|
123
126
|
<%- include('siunitx.preamble.en.tex'); %>
|
|
124
127
|
<%- include('hyperref.preamble.de.tex', this); %>
|
|
128
|
+
<% if (texlive >= 2021) { %><%- include('mindflow.preamble.en.tex', this); %><% } -%>
|
|
125
129
|
<% if (cleveref) { %><%- include('cleveref.preamble.de.tex', this); %><% } -%>
|
|
126
130
|
|
|
127
131
|
\usepackage{lipsum}
|
|
@@ -132,7 +136,7 @@
|
|
|
132
136
|
\usepackage[math]{blindtext}
|
|
133
137
|
\usepackage{mwe}
|
|
134
138
|
<% if (useExampleEnvironment) { -%>
|
|
135
|
-
\usepackage{currfile}
|
|
139
|
+
\usepackage[realmainfile]{currfile}
|
|
136
140
|
\usepackage{tcolorbox}
|
|
137
141
|
\tcbuselibrary{<%= listings %>}
|
|
138
142
|
<% } -%>
|
|
@@ -165,6 +169,11 @@
|
|
|
165
169
|
\llncs{book editors and title}{0042} %% 0042 is the start page
|
|
166
170
|
\fi
|
|
167
171
|
<% } -%>
|
|
172
|
+
<% if (documentclass == 'scientific-thesis') { -%>
|
|
173
|
+
|
|
174
|
+
<% if (feature.acronyms) { -%><%- include('acronyms.preamble.en.tex', this); %><% } -%>
|
|
175
|
+
<%- include('scientific-thesis-cover.preamble.de.tex', this); %>
|
|
176
|
+
<% } -%>
|
|
168
177
|
<% if (latexcompiler == "pdflatex") { -%>
|
|
169
178
|
|
|
170
179
|
% Enable copy and paste of text from the PDF
|
|
@@ -181,8 +190,7 @@
|
|
|
181
190
|
<% } -%>
|
|
182
191
|
|
|
183
192
|
\begin{document}
|
|
184
|
-
<% switch (documentclass) {
|
|
185
|
-
case "lncs": -%>
|
|
193
|
+
<% switch (documentclass) { case "lncs": -%>
|
|
186
194
|
|
|
187
195
|
\title{Paper Title}
|
|
188
196
|
% If Title is too long, use \titlerunning
|
|
@@ -237,10 +245,106 @@ Winery~\cite{Winery} is a graphical \commentontext{modeling}{modeling with one `
|
|
|
237
245
|
The whole idea of TOSCA is explained by <% if (available.citet) { %>\citet<% } else { %>Binz et al.~\cite<% } %>{Binz2009}.
|
|
238
246
|
<% break;
|
|
239
247
|
default: -%>
|
|
240
|
-
\
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
248
|
+
\pagenumbering{arabic}
|
|
249
|
+
\Titelblatt
|
|
250
|
+
|
|
251
|
+
%Eigener Seitenstil fuer die Kurzfassung und das Inhaltsverzeichnis
|
|
252
|
+
\deftriplepagestyle{preamble}{}{}{}{}{}{\pagemark}
|
|
253
|
+
%Doku zu deftriplepagestyle: scrguide.pdf
|
|
254
|
+
\pagestyle{preamble}
|
|
255
|
+
\renewcommand*{\chapterpagestyle}{preamble}
|
|
256
|
+
|
|
257
|
+
%Kurzfassung / abstract
|
|
258
|
+
%auch im Stil vom Inhaltsverzeichnis
|
|
259
|
+
\section*{Kurzfassung}
|
|
260
|
+
|
|
261
|
+
<Kurzfassung der Arbeit>
|
|
262
|
+
|
|
263
|
+
\cleardoublepage
|
|
264
|
+
|
|
265
|
+
\microtypesetup{protrusion=false}
|
|
266
|
+
|
|
267
|
+
% In case you have trouble with headings reaching into the page numbers, enable the following three lines.
|
|
268
|
+
% Hint by http://golatex.de/inhaltsverzeichnis-schreibt-ueber-rand-t3106.html
|
|
269
|
+
%
|
|
270
|
+
%\makeatletter
|
|
271
|
+
%\renewcommand{\@pnumwidth}{2em}
|
|
272
|
+
%\makeatother
|
|
273
|
+
%
|
|
274
|
+
% Bei einem ungünstigen Seitenumbruch im Inhaltsverzeichnis, kann dieser mit
|
|
275
|
+
% \addtocontents{toc}{\protect\newpage}
|
|
276
|
+
% an der passenden Stelle im Fließtext erzwungen werden.
|
|
277
|
+
\tableofcontents
|
|
278
|
+
|
|
279
|
+
\listoffigures
|
|
280
|
+
|
|
281
|
+
\listoftables
|
|
282
|
+
<% if (listings == 'listings') { -%>
|
|
283
|
+
|
|
284
|
+
% We use lstlisting environments with caption paramters.
|
|
285
|
+
% Thus, we need that command.
|
|
286
|
+
% Alternative: \listof{Listing}{List of Listings}
|
|
287
|
+
\lstlistoflistings
|
|
288
|
+
<% } else { -%>
|
|
289
|
+
|
|
290
|
+
\listof{Listing}{Verzeichnis der Listings}
|
|
291
|
+
<% } -%>
|
|
292
|
+
|
|
293
|
+
%mittels \newfloat wurde die Algorithmus-Gleitumgebung definiert.
|
|
294
|
+
%Mit folgendem Befehl werden alle floats dieses Typs ausgegeben
|
|
295
|
+
%\listof{Algorithmus}{Verzeichnis der Algorithmen}
|
|
296
|
+
%\listofalgorithms %Ist nur für Algorithmen, die mittels \begin{algorithm} umschlossen werden, nötig
|
|
297
|
+
|
|
298
|
+
% Abkürzungsverzeichnis
|
|
299
|
+
\printnoidxglossaries
|
|
300
|
+
|
|
301
|
+
\microtypesetup{protrusion=true}
|
|
302
|
+
|
|
303
|
+
% Headline and footline
|
|
304
|
+
\renewcommand*{\chapterpagestyle}{scrplain}
|
|
305
|
+
\pagestyle{scrheadings}
|
|
306
|
+
\pagestyle{scrheadings}
|
|
307
|
+
\ihead[]{}
|
|
308
|
+
\chead[]{}
|
|
309
|
+
\ohead[]{\headmark}
|
|
310
|
+
\cfoot[]{}
|
|
311
|
+
\ofoot[\usekomafont{pagenumber}\thepage]{\usekomafont{pagenumber}\thepage}
|
|
312
|
+
\ifoot[]{}
|
|
313
|
+
|
|
314
|
+
\chapter{Einleitung}
|
|
315
|
+
In diesem Kapitel steht die Einleitung zu dieser Arbeit.
|
|
316
|
+
Sie soll nur als Beispiel dienen und hat nichts mit dem Buch \cite{WSPA} zu tun.
|
|
317
|
+
Nun viel Erfolg bei der Arbeit!
|
|
318
|
+
|
|
319
|
+
Bei \LaTeX\ werden Absätze durch freie Zeilen angegeben.
|
|
320
|
+
Da die Arbeit über ein Versionskontrollsystem versioniert wird, ist es sinnvoll, pro \emph{Satz} eine neue Zeile im \texttt{.tex}-Dokument anzufangen.
|
|
321
|
+
So kann einfacher ein Vergleich von Versionsständen vorgenommen werden.
|
|
322
|
+
|
|
323
|
+
Die Arbeit ist in folgender Weise gegliedert:
|
|
324
|
+
In \cref{chap:k2} werden die Grundlagen dieser Arbeit beschrieben.
|
|
325
|
+
Schließlich fasst \cref{chap:zusfas} die Ergebnisse der Arbeit zusammen und stellt Anknüpfungspunkte vor.
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
\chapter{Kapitel zwei}
|
|
329
|
+
\label{chap:k2}
|
|
330
|
+
|
|
331
|
+
Hier wird der Hauptteil stehen.
|
|
332
|
+
Falls mehrere Kapitel gewünscht, entweder mehrmals \texttt{\textbackslash{}chapter} benutzen oder pro Kapitel eine eigene Datei anlegen und \texttt{ausarbeitung.tex} anpassen.
|
|
333
|
+
|
|
334
|
+
LaTeX-Hinweise stehen in \cref{chap:latextipps}.
|
|
335
|
+
|
|
336
|
+
%noch etwas Fülltext
|
|
337
|
+
\blinddocument
|
|
338
|
+
|
|
339
|
+
\chapter{Verwandte Arbeiten}
|
|
340
|
+
Eine Beschreibung relevanter wissenschaftlicher Arbeiten mit Bezug zur eigenen Arbeit. Der Abschnitt kann je nach Kontext auch an anderer Stelle stehen.
|
|
341
|
+
|
|
342
|
+
\chapter{Zusammenfassung und Ausblick}\label{chap:zusfas}
|
|
343
|
+
Hier bitte einen kurzen Durchgang durch die Arbeit.
|
|
344
|
+
|
|
345
|
+
\section*{Ausblick}
|
|
346
|
+
...und anschließend einen Ausblick
|
|
347
|
+
<% break; } -%>
|
|
244
348
|
|
|
245
349
|
<% if (examples) { -%>
|
|
246
350
|
<%= heading1 %>{LaTeX Hinweise}
|
|
@@ -300,6 +404,7 @@ break;
|
|
|
300
404
|
Hier sollen allgemeine \LaTeX-Hinweise gegeben werden, damit man Minimalbeispiele vorliegen hat, um sofort loszulegen.
|
|
301
405
|
|
|
302
406
|
<%- include('paragraphs.example.de.tex', this); %>
|
|
407
|
+
<% if (texlive >= 2021) { %><%- include('mindflow.example.en.tex', this); %><% } -%>
|
|
303
408
|
<%- include('hyphenation.example.en.tex', this); %>
|
|
304
409
|
<%- include('siunitx.example.en.tex', this); %>
|
|
305
410
|
<% if (enquotes == 'csquotes') { %><%- include('csquotes.example.en.tex', this); %><% } -%>
|
|
@@ -313,6 +418,8 @@ Hier sollen allgemeine \LaTeX-Hinweise gegeben werden, damit man Minimalbeispiel
|
|
|
313
418
|
<%- include('minted.example.en.tex', this); %>
|
|
314
419
|
<% } -%>
|
|
315
420
|
<%- include('paralist.example.en.tex', this); %>
|
|
421
|
+
<% if (feature.acronyms) { %><%- include('acronyms.example.de.tex', this); %>
|
|
422
|
+
<% } -%>
|
|
316
423
|
<%- include('otherfeatures.example.en.tex', this); %>
|
|
317
424
|
<% } -%>
|
|
318
425
|
|
|
@@ -345,5 +452,22 @@ See \url{https://help.jabref.org/en/CleanupEntries} for an overview of the clean
|
|
|
345
452
|
%
|
|
346
453
|
Alle Links wurden zuletzt am 29.03.2021 geprüft.
|
|
347
454
|
<% } -%>
|
|
455
|
+
<% if (documentclass == 'scientific-thesis') { -%>
|
|
456
|
+
|
|
457
|
+
%%% ===============================================================================
|
|
458
|
+
\appendix
|
|
459
|
+
\addcontentsline{toc}{chapter}{Anhang}
|
|
460
|
+
|
|
461
|
+
%\listoffigures
|
|
462
|
+
%\listoftables
|
|
463
|
+
%%% ===============================================================================
|
|
348
464
|
|
|
465
|
+
%%% ===============================================================================
|
|
466
|
+
%<%= heading1 %>{My first appendix}\label{sec:appendix1}
|
|
467
|
+
%%% ===============================================================================
|
|
468
|
+
|
|
469
|
+
\pagestyle{empty}
|
|
470
|
+
\renewcommand*{\chapterpagestyle}{empty}
|
|
471
|
+
\Versicherung
|
|
472
|
+
<% } -%>
|
|
349
473
|
\end{document}
|