From 80eefd5af94ccadf72d882c2954ad23400f56eeb Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 12 Jan 2025 22:12:25 +0100 Subject: [PATCH 01/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 7c3c53a..679ebaa 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 7c3c53ace52900eec5231cde553436c525c68519 +Subproject commit 679ebaaf6284dfd25050455e24aad19023018d42 From b3f0b6f052054b9bfe6c5bcaa87942d41f3ccabf Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 12 Jan 2025 22:14:04 +0100 Subject: [PATCH 02/77] Refine workflow --- .github/workflows/update-files.yml | 71 ++++++++++++------------------ CHANGELOG.md | 6 +++ 2 files changed, 35 insertions(+), 42 deletions(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index 2632187..d9f040b 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -1,11 +1,12 @@ name: Update Files on: + pull_request: push: branches: - - update-ltg + - main workflow_dispatch: concurrency: - group: update-files + group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}" cancel-in-progress: true jobs: generatetex: @@ -21,14 +22,14 @@ jobs: examples: [true] steps: - name: Set up Git repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive path: 'code' - - uses: actions/setup-node@v3 - - name: Update npm - run: npm i -g npm@latest - - run: npm i npm@latest + - uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' - name: Make generator available globally working-directory: ${{ github.workspace }}/code/generator-latex-template run: | @@ -45,10 +46,10 @@ jobs: --docker=reitzig\ --documentclass=lncs\ --papersize=a4\ - --latexcompiler=pdflatex\ + --latexcompiler=both\ --bibtextool=bibtex\ --overleaf=true\ - --texlive=2022\ + --texlive=2024\ --lang=${{ matrix.language }}\ --font=${{ matrix.font }}\ --listings=${{ matrix.listings }}\ @@ -85,7 +86,7 @@ jobs: git status git diff - name: Commit changes - uses: EndBug/add-and-commit@v8 + uses: EndBug/add-and-commit@v9 with: message: 'Update files based on generated files by template generator' committer_email: actions@github.com @@ -98,56 +99,42 @@ jobs: parallel --retries 10 --delay 9 ::: "git status && git pull --rebase && git push" publish: runs-on: ubuntu-latest - needs: [generatetex] - services: - registry: - image: registry:2 - ports: - - 5000:5000 steps: - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - driver-opts: network=host - - name: Build Docker image - uses: docker/build-push-action@v4 - with: - push: true - provenance: false - tags: localhost:5000/name/app:latest - - name: Set up Git repository - uses: actions/checkout@v3 + - name: Set up Git repositor4 + uses: actions/checkout@v4 - run: | cp paper-en-default-listings.tex paper.tex cp paper-en-default-minted.tex paper-minted.tex cp paper-en-times-listings.tex paper-newtx.tex cp paper-en-times-minted.tex paper-minted-newtx.tex - mkdir /tmp/out # use latexmkrc (which is disabled due to easy overleaf usage) cp _latexmkrc latexmkrc - - name: Build paper.tex - run: docker run -v $(pwd):/work/src -v /tmp/out:/work/out localhost:5000/name/app:latest work "latexmk paper.tex" - - name: Build paper-minted.tex - run: docker run -v $(pwd):/work/src -v /tmp/out:/work/out localhost:5000/name/app:latest work "latexmk paper-minted.tex" - - name: Build paper-newtx.tex - run: docker run -v $(pwd):/work/src -v /tmp/out:/work/out localhost:5000/name/app:latest work "latexmk paper-newtx.tex" - - name: Build paper-minted-newtx.tex - run: docker run -v $(pwd):/work/src -v /tmp/out:/work/out localhost:5000/name/app:latest work "latexmk paper-minted-newtx.tex" + - name: Install TeX Live + uses: zauguin/install-texlive@v3 + with: + package_file: '${{ github.workspace }}/Texlivefile' + - name: Prepare latexmk + run: | + updmap -sys + texhash + tlmgr generate language --rebuild-sys + - run: latexmk paper.tex + - run: latexmk paper-minted.tex + - run: latexmk paper-newtx.tex + - run: latexmk paper-minted-newtx.tex - run: | mkdir publish - cp /tmp/out/*.pdf publish/ + cp *.pdf publish/ cp paper.tex publish/ cp README.md publish/ cp .github/_config.yml publish/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: publish path: publish/ - name: Deploy if: github.ref == 'refs/heads/main' - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./publish diff --git a/CHANGELOG.md b/CHANGELOG.md index 6838962..3f09561 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). From 2022-03-01 onwards, versioning is done using [Calendar Versioning](https://calver.org/). +## [Unreleased] + +### Changed + +- Defaults to lualatex instead of pdflatex + ## [2022-06-06] ### Added From abbf6bfc106224dc42d29eae749aef1df50030dc Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 12 Jan 2025 23:31:40 +0100 Subject: [PATCH 03/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 679ebaa..bbb9315 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 679ebaaf6284dfd25050455e24aad19023018d42 +Subproject commit bbb9315879bb8a5bc539c224f1a12947504e74d7 From b94b4c6668d60600543e68d29b9cb05b5979b057 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 12 Jan 2025 23:32:22 +0100 Subject: [PATCH 04/77] Ignore some linting errors for CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f09561..2a44a8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -222,3 +222,5 @@ First release using semantic versioning. [1.1.1]: https://github.com/latextemplates/LNCS/compare/1.1.0...1.1.1 [1.1.0]: https://github.com/latextemplates/LNCS/compare/1.0.0...1.1.0 [1.0.0]: https://github.com/latextemplates/LNCS/releases/tag/1.0.0 + + From c3b7562076c2a89069f6acb13fb1069cd6b32801 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 12 Jan 2025 23:37:02 +0100 Subject: [PATCH 05/77] Remove obsolete "git status" --- .github/workflows/update-files.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index d9f040b..a2e4b92 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -95,7 +95,6 @@ jobs: - name: Push changes run: | cd code - git status parallel --retries 10 --delay 9 ::: "git status && git pull --rebase && git push" publish: runs-on: ubuntu-latest From 048db1c54b0be7f326930b220c37ed87bbb6f62e Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 12 Jan 2025 23:51:15 +0100 Subject: [PATCH 06/77] path: 'code' --- .github/workflows/update-files.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index a2e4b92..cf862c4 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -25,13 +25,12 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive - path: 'code' - uses: actions/setup-node@v4 with: node-version: '22' cache: 'npm' - name: Make generator available globally - working-directory: ${{ github.workspace }}/code/generator-latex-template + working-directory: ${{ github.workspace }}/generator-latex-template run: | npm install npm link @@ -41,7 +40,7 @@ jobs: shell: bash working-directory: /tmp/ltg run: | - yo latex-template\ + yo $GITHUB_WORKSPACE/generator-latex-template/generators/app/index.js \ --githubpublish\ --docker=reitzig\ --documentclass=lncs\ @@ -59,7 +58,7 @@ jobs: --examples=${{ matrix.examples }}\ --howtotext=false env: - yeoman_test: true + yeoman_test: false - name: Prepare files working-directory: /tmp/ltg run: | @@ -79,10 +78,10 @@ jobs: rm _latexmkrc # copy everything - cp -r * ${{ github.workspace }}/code/ + cp -r * ${{ github.workspace }} # output current status - cd ${{ github.workspace }}/code/ + cd ${{ github.workspace }} git status git diff - name: Commit changes @@ -91,10 +90,8 @@ jobs: message: 'Update files based on generated files by template generator' committer_email: actions@github.com push: false - cwd: 'code' - name: Push changes run: | - cd code parallel --retries 10 --delay 9 ::: "git status && git pull --rebase && git push" publish: runs-on: ubuntu-latest From a98a914a9a60a59b53af53014a67d32dccee9df6 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 00:09:35 +0100 Subject: [PATCH 07/77] Add forgotten dependency --- .github/workflows/update-files.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index cf862c4..2d27af0 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -95,6 +95,7 @@ jobs: parallel --retries 10 --delay 9 ::: "git status && git pull --rebase && git push" publish: runs-on: ubuntu-latest + needs: [generatetex] steps: - name: Set up Git repositor4 uses: actions/checkout@v4 From 639ded8b74af5e8d324dd36b8a21878288b9a735 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 01:20:09 +0100 Subject: [PATCH 08/77] Fix npm caching --- .github/workflows/update-files.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index 2d27af0..d085224 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -29,6 +29,7 @@ jobs: with: node-version: '22' cache: 'npm' + cache-dependency-path: 'generator-latex-template/package-lock.json' - name: Make generator available globally working-directory: ${{ github.workspace }}/generator-latex-template run: | From 2699c37dc5e8f8d8b034c0d79debac5552944278 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 01:20:36 +0100 Subject: [PATCH 09/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index bbb9315..8618d28 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit bbb9315879bb8a5bc539c224f1a12947504e74d7 +Subproject commit 8618d2899966c749cf4224e8682b63eb0846d44e From 43e2b2b8375b6a4db5003cd1cdeb3cc419ba7126 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 09:23:05 +0100 Subject: [PATCH 10/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 8618d28..38e8e14 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 8618d2899966c749cf4224e8682b63eb0846d44e +Subproject commit 38e8e1463e1d1dda3d26099d884c7668e3784400 From d75da5452f97fc33fad4bbcae78da951aacb1f7a Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 09:41:44 +0100 Subject: [PATCH 11/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 38e8e14..4a51a93 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 38e8e1463e1d1dda3d26099d884c7668e3784400 +Subproject commit 4a51a936930b8de5835be8823e01af3ceda56037 From ba04f64829d0b695fb8556a7978fbdec33224546 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 09:42:26 +0100 Subject: [PATCH 12/77] Do not generate Dockerfile --- .github/workflows/update-files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index d085224..a2a7333 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -43,7 +43,7 @@ jobs: run: | yo $GITHUB_WORKSPACE/generator-latex-template/generators/app/index.js \ --githubpublish\ - --docker=reitzig\ + --docker=no\ --documentclass=lncs\ --papersize=a4\ --latexcompiler=both\ From 1bf25b69909b9a7e8460ba5a3b6bd2ba5bafd612 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 10:01:59 +0100 Subject: [PATCH 13/77] Add ref to checkout --- .github/workflows/update-files.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index a2a7333..fe4ca44 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -25,6 +25,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + ref: '${{ github.event.pull_request.head.ref }}' - uses: actions/setup-node@v4 with: node-version: '22' From 8e9afcafb374ef9ae62e4043d53a57c9181eb18b Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 09:02:45 +0000 Subject: [PATCH 14/77] Update files based on generated files by template generator --- README.md | 19 +-- Texlivefile | 77 +++++++++--- paper-en-times-minted.tex | 249 ++++++++++++++++++++++++++++++-------- 3 files changed, 264 insertions(+), 81 deletions(-) diff --git a/README.md b/README.md index f5a3a24..8338898 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Note that this requires a working perl installation. In case something goes wrong, you can instruct the LaTeX compiler to stop at the first error: - pdflatex paper + lualatex paper ## Benefits @@ -32,6 +32,7 @@ Following features are enabled in this template: - Modern packages such as [microtype], [cleveref], [csquotes], [hyperref], [hypcap], [upquote], [natbib], [booktabs]. - (Optional) LaTeX compilation using the modern lualatex compiler. - Ready-to-go configuration for [latexindent]. +- Proper hyphenation and microtype for English texts. ## Disabled features @@ -84,18 +85,6 @@ To have minted running properly, you have to do following steps on Windows: 2. Install [pygments]: `pip instal pygments` - that uses the Pyhton package manager to install the pygments library 3. When latexing, use `-shell-escape`: `pdflatex -shell-escape paper`. You can also just execute `latexmk paper`. - -## Usage with docker - -The generated `Dockerfile` is based on the [Dockerfile by reitzig](https://github.com/reitzig/texlive-docker). -The idea of that system is to host the document sources in a directory separated from the output directory. - - docker run --rm -v "c:\users\example\latex-document:/work/src" -v "c:\users\example\latex-document\out:/work/out" ltg work latexmk - -Following one-time setup is requried: - - docker build -t ltg . - ## FAQs ### Q: ShareLaTeX outputs a warning regarding the llncs class @@ -119,7 +108,7 @@ Please remove the file and update your LaTeX distribution. After that you can use and push the `main` branch as usual. Notes on syncing with the upstream repository [are available from GitHub](https://help.github.com/articles/syncing-a-fork/). -### Q: I get the error `! pdfTeX error (font expansion): auto expansion is only possible with scalable fonts.` +### Q: I get the error `! pdfTeX error (font expansion): auto expansion is only possible with scalable fonts.` Install the `cm-super` package using the MiKTeX package manager. Then, run `initexmf --mkmaps` on the command line. (Long description: ) @@ -166,7 +155,6 @@ Yes. You can regenerate the template and choose "German" as language. - Other templates: [booktabs]: https://ctan.org/pkg/booktabs -[cfr-lm]: https://www.ctan.org/pkg/cfr-lm [cleveref]: https://ctan.org/pkg/cleveref [csquotes]: https://www.ctan.org/pkg/csquotes [hypcap]: https://www.ctan.org/pkg/hypcap @@ -175,7 +163,6 @@ Yes. You can regenerate the template and choose "German" as language. [microtype]: https://ctan.org/pkg/microtype [minted]: https://ctan.org/pkg/minted [natbib]: https://ctan.org/pkg/natbib -[newtx]: https://ctan.org/pkg/newtx [paralist]: https://www.ctan.org/pkg/paralist [pdfcomment]: https://www.ctan.org/pkg/pdfcomment [upquote]: https://www.ctan.org/pkg/upquote diff --git a/Texlivefile b/Texlivefile index f8074b2..1a5a25d 100644 --- a/Texlivefile +++ b/Texlivefile @@ -1,13 +1,20 @@ +scheme-basic +latexmk +texlogsieve + amsmath acmart -atbegshi -atveryend +algorithms +algorithmicx +algpseudocodex +autotype auxhook babel babel-english babel-german biblatex biber +bigfoot bigintcalc bitset blindtext @@ -15,10 +22,13 @@ booktabs caption catchfile cfr-lm +charter cleveref +cm-super cmap comment csquotes +ctablestack currfile datetime2 datetime2-german @@ -26,50 +36,70 @@ datetime2-english datatool dehyph-exptl diagbox +enumitem environ +epstopdf etexcmds etoolbox +everyshi +fifo-stack filehook +fixmath +float +floatbytocbasic floatflt +fncychap +fontaxes fontspec -framed -fvextra +footmisc gettitlestring glossaries +glossaries-german +glossaries-english glossaries-extra graphics +helvetic +hyphenex +inconsolata +hycolor +hypcap hyperref hyperxmp hyph-utf8 hyphen-english hyphen-german -hyphenex -inconsolata -ieeetran ifmtarg +ifplatform +iftex infwarerr intcalc koma-script kvdefinekeys kvoptions kvsetkeys -latexmk letltxmacro libertine +libertinus-fonts lineno lipsum listings llncs ltxcmds -luatexbase +lscapeenhanced luacode lualatex-math +luatex85 +luatexbase +ly1 marginnote +mathdesign +mathtools mfirstuc microtype mindflow minted mnsymbol +multirow mwe natbib ncctools @@ -78,45 +108,58 @@ newfloat newtx newtxtt nfssext-cfr +ntheorem nowidow -oberdiek paralist pdfcomment -luatex85 pdfescape +pdflscape pdftexcmds +pdfpages pgf pict2e -preprint +placeins +psnfss +ragged2e refcount -regexpatch rerunfilecheck scientific-thesis-cover +scrhack selnolig setspace +setspaceenhanced +sidecap siunitx snapshot soul soulpos -sttools stringenc +sttools subfig svn-prov +tabto-ltx tcolorbox -texlogsieve -textcase tex-gyre +tikzmark times +tools +totcount totpages tracklang -translator +translations +trimspaces txfonts unicode-math uniquecounter upquote url + +varwidth +xcharter xcolor +xifthen xfor xkeyval +xpatch xstring zref diff --git a/paper-en-times-minted.tex b/paper-en-times-minted.tex index f3a5025..4f89053 100644 --- a/paper-en-times-minted.tex +++ b/paper-en-times-minted.tex @@ -3,8 +3,7 @@ % !TeX spellcheck = en-US % LTeX: language=en-US % !TeX encoding = utf8 -% !TeX program = pdflatex -% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape] +% !TeX program = lualatex % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- @@ -12,9 +11,10 @@ % % - easy print out on DIN A4 paper size % -% One can configure a4 vs. letter in the LaTeX installation. So it is configuration dependend, what the paper size will be. -% This option present, because the current word template offered by Springer is DIN A4. -% We accept that DIN A4 cause WTFs at persons not used to A4 in USA. +% One can configure default page size (a4 vs. letter) in the LaTeX installation. +% Thus, it is configuration dependend, what the paper size will be. +% Having "a4paper" option present, the page size is set to A4. +% Note that the current word template offered by Springer is DIN A4. % % "runningheads" enables: % @@ -26,9 +26,13 @@ % blindly opening the folder, one could hit not the title page, but an arbitrary page. Therefore, % it is good to have title printed on the pages, too. % +% The optiion "runningheads" neesd to be removed upon request of the publisher. +% % To disable outputting page headers and footers, remove "runningheads" \documentclass[runningheads,a4paper,english]{llncs}[2022/01/12] +\usepackage{iftex} + % backticks (`) are rendered as such in verbatim environments. % See following links for details: % - https://tex.stackexchange.com/a/341057/9075 @@ -44,26 +48,6 @@ % % Hint by http://tex.stackexchange.com/a/321066/9075 -> enable "= as dashes \addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}} -% -% Fix by https://tex.stackexchange.com/a/441701/9075 -\usepackage{regexpatch} -\makeatletter -\edef\switcht@albion{% - \relax\unexpanded\expandafter{\switcht@albion}% -} -\xpatchcmd*{\switcht@albion}{ \def}{\def}{}{} -\xpatchcmd{\switcht@albion}{\relax}{}{}{} -\edef\switcht@deutsch{% - \relax\unexpanded\expandafter{\switcht@deutsch}% -} -\xpatchcmd*{\switcht@deutsch}{ \def}{\def}{}{} -\xpatchcmd{\switcht@deutsch}{\relax}{}{}{} -\edef\switcht@francais{% - \relax\unexpanded\expandafter{\switcht@francais}% -} -\xpatchcmd*{\switcht@francais}{ \def}{\def}{}{} -\xpatchcmd{\switcht@francais}{\relax}{}{}{} -\makeatother % Links behave as they should. Enables "\url{...}" for URL typesettings. % Allow URL breaks also at a hyphen, even though it might be confusing: Is the "-" part of the address or just a hyphen? @@ -86,12 +70,40 @@ %\g@addto@macro\UrlSpecials{\do\/{\Url@twoslashes}} %\makeatother +\ifluatex +\usepackage[no-math]{fontspec} +\usepackage{unicode-math} + +% See https://tug.org/FontCatalogue/texgyretermes/ for more information +\setmainfont{texgyretermes}[ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + Ligatures=TeX +] +% See https://tug.org/FontCatalogue/texgyreheros/ for more information +\setsansfont[Scale=.9]{TeX Gyre Heros Regular} +% newtxtt looks good with times, but no equivalent for lualatex found, +% therefore tried to replace with inconsolata. +% However, inconsolata does not look good in the context of LNCS ... +%\setmonofont[StylisticSet={1,3},Scale=.9]{inconsolata} +% ... thus, we use the good old Latin Modern Mono font for source code. +\setmonofont{Latin Modern Mono} % "variable=false" + +% Enable proper ligatures +% For more information see https://ctan.org/pkg/selnolig +% language "english" or "ngerman" is passed to selnolig by the document class +\usepackage{selnolig} +\else \RequirePackage{newtxtext} \RequirePackage{newtxmath} \RequirePackage[zerostyle=b,scaled=.9]{newtxtt} % Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075. \usepackage[T1]{fontenc} +\fi % Character protrusion and font expansion. See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/ @@ -117,8 +129,10 @@ % Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox \usepackage{diagbox} -\usepackage{xcolor} - +\usepackage[dvipsnames, table]{xcolor} +% Für die finale Fassung empfohlen: +%\usepackage[dvipsnames, table, gray]{xcolor} +% See https://github.com/gpoore/minted \usepackage[newfloat]{minted} \setminted{ @@ -135,9 +149,9 @@ % breakbytokenanywhere=true } -\usemintedstyle{bw} %black and white style +%\usemintedstyle{bw} %black and white style %\usemintedstyle{vs} %visual studio -%\usemintedstyle{friendlygrayscale} % custom style - submitted as pull request https://bitbucket.org/birkenfeld/pygments-main/pull-requests/748/add-style-friendly-grayscale/diff +\usemintedstyle{friendly_grayscale} %\usemintedstyle{friendly} %\usemintedstyle{eclipse} %http://www.jevon.org/wiki/Eclipse_Pygments_Style %\usemintedstyle{autumn} @@ -209,25 +223,107 @@ { } % Put figures aside a text +% Even thought he package is from 1998, it works well \usepackage[rflt]{floatflt} -% Enable nice comments -\usepackage{pdfcomment} - -\newcommand{\commentontext}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -\newcommand{\commentatside}[1]{\pdfcomment[color={0.045 0.278 0.643},icon=Note]{#1}} +% Farbige Tabellen +% ---------------- +% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen +% +% Erweiterte Funktionen innerhalb von Tabellen +% -------------------------------------------- +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty +\usepackage{multirow} % Mehrfachspalten +% +%%% Doc: Documentation inside dtx Package +\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt -% Compatibality with packages todo, easy-todo, todonotes -\newcommand{\todo}[1]{\commentatside{#1}} +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf +%\usepackage{supertabular} -% Compatiblity with package fixmetodonotes -\newcommand{\TODO}[1]{\commentatside{#1}} +%%% Fussnoten/Endnoten =================================================== -% Put footnotes below floats +% EN: Put footnotes below floats +% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren % Source: https://tex.stackexchange.com/a/32993/9075 \usepackage{stfloats} \fnbelowfloat +% EN: Extended support for footnotes +% DE: Fußnoten +% +%\usepackage{dblfnote} %Zweispaltige Fußnoten +% +% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch): +%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}} +% +% Abstand zwischen Fußnoten vergrößern: +%\setlength{\footnotesep}{.85\baselineskip} +% +% EN: Following command disables the separting line of the footnote +% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote +%\renewcommand{\footnoterule}{} +% +%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote + +% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite +% DE: fnpos kommt aus dem yafoot package +%\usepackage{fnpos} +%\makeFNbelow +%\makeFNbottom + +% TODO (and comment) configuration +% +% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs +% - \todofix - "important" TODOs +% +% - \textcomment - highlights text and has a hover comment +% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others) +% +% - \missingfigure +% +% - \textmarker +% - \modified +% - \change - adresses a review comment + +% Enable nice comments +\usepackage{pdfcomment} + +\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} + +% Small PDF comment +% 1. Parameter: Comment +\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\sidecomment}[1]{} + +\newcommand{\todo}[1]{TODO!\sidecomment{#1}} + +% Änderungen +% +% 1. Parameter: Review-Kommentar +% 2. Parameter: Neuer Text +\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\change}[2]{#2} + +% Define default commands +\makeatletter +\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{} +\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{} +\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{} +\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{} +\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{} +\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{} +\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{} +\makeatother + +% Textmarker (Textfarbe rot) +\newcommand{\textmarker}[1]{{\color{red} #1}\xspace} + +% Modified (Text blau) +\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} + \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} % Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document @@ -235,18 +331,29 @@ % Enable hyperref without colors and without bookmarks \hypersetup{ - hidelinks, - colorlinks=true, + hidelinks, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, - breaklinks=true + breaklinks=true, % Links ueberstehen Zeilenumbruch + hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075 } % Enable correct jumping to figures when referencing \usepackage[all]{hypcap} + \usepackage[caption=false,font=footnotesize]{subfig} +% Alternative for making subfigures: +% Part of the caption package. See http://www.ctan.org/pkg/caption +% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075 +% +% (subfigure is outdated. subfig is maintained, but subcaption is better) +% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure +%\usepackage[hypcap=true]{subcaption} + \usepackage{mindflow} % Extensions for references inside the document (\cref{fig:sample}, ...) @@ -288,7 +395,13 @@ }{} \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} +% Allows for defining commands that don't eat spaces. \usepackage{xspace} +% Adds compatibility to \xspace und \enquote kompatibel +\makeatletter +\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } +\makeatother + \newcommand{\eg}{e.g.,\ } \newcommand{\ie}{i.e.,\ } @@ -301,11 +414,20 @@ % Add manual adapted hyphenation of English words % See https://ctan.org/pkg/hyphenex and https://tex.stackexchange.com/a/22892/9075 for details -% Does not work on MiKTeX, therefore disabled - issue reported at https://github.com/MiKTeX/miktex-packaging/issues/271 -% \input{ushyphex} +\input{ushyphex} + +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/selnolig +% See ADR-0009 for alternatives +\usepackage{selnolig} +\fi % correct bad hyphenation here -\hyphenation{op-tical net-works semi-conduc-tor} +\hyphenation{ + op-tical net-works semi-conduc-tor + % May not be hypphenated + AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps +} % Add copyright % @@ -324,6 +446,7 @@ \llncs{book editors and title}{0042} \fi +\ifpdftex % Enable copy and paste of text from the PDF % Only required for pdflatex. It "just works" in the case of lualatex. % Alternative: cmap or mmap package @@ -335,7 +458,7 @@ % According to https://tex.stackexchange.com/q/451235/9075 this is the way to go \input glyphtounicode \pdfgentounicode=1 - +\fi \begin{document} \title{Paper Title} @@ -386,7 +509,7 @@ \section{Introduction} \section{Related Work} \label{sec:relatedwork} -Winery~\cite{Winery} is a graphical \commentontext{modeling}{modeling with one ``l'', because of AE} tool. +Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of AE} tool. The whole idea of TOSCA is explained by \citet{Binz2009}. \section{LaTeX Hints} @@ -457,6 +580,35 @@ \subsection{Notes separated from the text} \end{mindflow} \end{ltgexample} +\subsection{Handling TODOs} + +\begin{ltgexample} +\textmarker{Markierter Text.} +\end{ltgexample} + +Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert. + +\begin{ltgexample} +\textcomment{Markierter Text.}{Kommentar dazu.} +\end{ltgexample} + +\begin{ltgexample} +\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.} +\end{ltgexample} + +\begin{ltgexample} +Das ist ein Text. +\change{FL1: Text angepasst}{Geänderter Text}. +\end{ltgexample} + +\begin{ltgexample} +Hier nur ein Kommentar\sidecomment{Kommentar}. +\end{ltgexample} + +\begin{ltgexample} +\todo{Hier muss noch kräftig Text produziert werden} +\end{ltgexample} + \subsection{Hyphenation} \LaTeX{} automatically hyphenates words. @@ -553,7 +705,7 @@ \subsection{Figures} \includegraphics[width=.29\linewidth]{example-image-a} \caption{A floating figure} \end{floatingfigure} -\blindtext[2] +\lipsum[2] \end{ltgexample} \subsection{Sub Figures} @@ -742,6 +894,7 @@ \subsubsection*{Acknowledgments} % Enfore empty line after bibliography \ \\ % +\noindent All links were last followed on October 5, 2020. %%% =============================================================================== From 27738ebee0a516398be9e0a45a3fa0c6df0cfd06 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 09:02:46 +0000 Subject: [PATCH 15/77] Update files based on generated files by template generator --- README.md | 7 + Texlivefile | 2 - paper-de-times-listings.tex | 287 +++++++++++++++++++++++++++++------- 3 files changed, 242 insertions(+), 54 deletions(-) diff --git a/README.md b/README.md index 8338898..c85b5bf 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,9 @@ Following features are enabled in this template: - Provides a skeletal [paper.tex](https://latextemplates.github.io/LNCS/paper.tex) file - Example to have an image being placed right to a text +- Support for German documents (without broken headers): + Contains a fix to increase compatibility with Babel. + See for details. - Automatic setting of "Fig." and "Section"/"Sect." according to the LNCS style. Just use `\Cref{sec:xy}` at the beginning of a sentence and `\cref{sec:xy}` in the middle of a sentence. Thanx to [cleveref]. @@ -147,6 +150,10 @@ The possible options are listed in `paper.tex`. Yes. You can regenerate the template and choose "German" as language. +### Q: `ngerman-x-latest` is reported missing + +Install the package `dehyph-exptl`. + ## Further information - tex.stackexchange.com questions regarding LNCS: diff --git a/Texlivefile b/Texlivefile index 1a5a25d..ff61488 100644 --- a/Texlivefile +++ b/Texlivefile @@ -97,14 +97,12 @@ mathtools mfirstuc microtype mindflow -minted mnsymbol multirow mwe natbib ncctools newcomputermodern -newfloat newtx newtxtt nfssext-cfr diff --git a/paper-de-times-listings.tex b/paper-de-times-listings.tex index 3fb0b95..757136a 100644 --- a/paper-de-times-listings.tex +++ b/paper-de-times-listings.tex @@ -3,7 +3,7 @@ % !TeX spellcheck = de-DE % LTeX: language=de-DE % !TeX encoding = utf8 -% !TeX program = pdflatex +% !TeX program = lualatex % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- @@ -11,11 +11,12 @@ % % - easy print out on DIN A4 paper size % -% One can configure a4 vs. letter in the LaTeX installation. So it is configuration dependend, what the paper size will be. -% This option present, because the current word template offered by Springer is DIN A4. -% We accept that DIN A4 cause WTFs at persons not used to A4 in USA. +% One can configure default page size (a4 vs. letter) in the LaTeX installation. +% Thus, it is configuration dependend, what the paper size will be. +% Having "a4paper" option present, the page size is set to A4. +% Note that the current word template offered by Springer is DIN A4. % -% "runningheads": +% "runningheads" führt zu folgendem: % % - zeigt Author + Titel auf jeder Seite. % - Während des Schreibens und das Review des Papers hilft das, um z.B. auf konkrete Seitenzahlen einfach verweisen zu können. @@ -25,11 +26,13 @@ % blindly opening the folder, one could hit not the title page, but an arbitrary page. Therefore, % it is good to have title printed on the pages, too. % -% Diese Option nach Aufforderung durch die Herausgeber entfernen. +% Die Option "runningheads" ist nach Aufforderung durch die Herausgeber entfernen. % % To disable outputting page headers and footers, remove "runningheads" \documentclass[runningheads,a4paper,ngerman]{llncs}[2022/01/12] +\usepackage{iftex} + % backticks (`) werden als solches in verbatim-Umgebungen dargestellt % Details unter: % - https://tex.stackexchange.com/a/341057/9075 @@ -45,26 +48,6 @@ % Hinweis von http://tex.stackexchange.com/a/321066/9075 % Ermögliche die Benutzung von "= als Trennstriche \addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}} -% -% Fix von https://tex.stackexchange.com/a/441701/9075 -\usepackage{regexpatch} -\makeatletter -\edef\switcht@albion{% - \relax\unexpanded\expandafter{\switcht@albion}% -} -\xpatchcmd*{\switcht@albion}{ \def}{\def}{}{} -\xpatchcmd{\switcht@albion}{\relax}{}{}{} -\edef\switcht@deutsch{% - \relax\unexpanded\expandafter{\switcht@deutsch}% -} -\xpatchcmd*{\switcht@deutsch}{ \def}{\def}{}{} -\xpatchcmd{\switcht@deutsch}{\relax}{}{}{} -\edef\switcht@francais{% - \relax\unexpanded\expandafter{\switcht@francais}% -} -\xpatchcmd*{\switcht@francais}{ \def}{\def}{}{} -\xpatchcmd{\switcht@francais}{\relax}{}{}{} -\makeatother % Links verhalten sich so, wie sie sollen % Zeilenumbrüche bei URLs auch bei Bindestrichen erlauben, auch wenn es verwirrend sein könnte: Gehört der Bindestrich zur URL oder ist es ein Trennstrich? @@ -77,12 +60,41 @@ \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother + +\ifluatex +\usepackage[no-math]{fontspec} +\usepackage{unicode-math} + +% See https://tug.org/FontCatalogue/texgyretermes/ for more information +\setmainfont{texgyretermes}[ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + Ligatures=TeX +] +% See https://tug.org/FontCatalogue/texgyreheros/ for more information +\setsansfont[Scale=.9]{TeX Gyre Heros Regular} +% newtxtt looks good with times, but no equivalent for lualatex found, +% therefore tried to replace with inconsolata. +% However, inconsolata does not look good in the context of LNCS ... +%\setmonofont[StylisticSet={1,3},Scale=.9]{inconsolata} +% ... thus, we use the good old Latin Modern Mono font for source code. +\setmonofont{Latin Modern Mono} % "variable=false" + +% Enable proper ligatures +% For more information see https://ctan.org/pkg/selnolig +% language "english" or "ngerman" is passed to selnolig by the document class +\usepackage{selnolig} +\else \RequirePackage{newtxtext} \RequirePackage{newtxmath} \RequirePackage[zerostyle=b,scaled=.9]{newtxtt} % Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075. \usepackage[T1]{fontenc} +\fi % Optischer Randausgleich und Grauwertkorrektur. Siehe See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/ @@ -113,7 +125,9 @@ % Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox \usepackage{diagbox} -\usepackage{xcolor} +\usepackage[dvipsnames, table]{xcolor} +% Für die finale Fassung empfohlen: +%\usepackage[dvipsnames, table, gray]{xcolor} % Code Listings \usepackage{listings} @@ -154,26 +168,31 @@ } \lstset{ - language=XML, + % everything between (* *) is a latex command + escapeinside={(*}{*)}, + % + language=json, % showstringspaces=false, % extendedchars=true, % - basicstyle=\footnotesize\ttfamily, - % + basicstyle=\footnotesize\ttfamily, + % commentstyle=\slshape, % % Default: \rmfamily, damit werden die Strings im Quellcode hervorgehoben. Zusaetzlich evtl.: \scshape oder \rmfamily durch \ttfamily ersetzen. Dann sieht's aus, wie bei fancyvrb stringstyle=\ttfamily, % - breaklines=true, + breaklines=true, % Zeilen werden umbrochen % breakatwhitespace=true, % % Alternative: fixed columns=flexible, % + tabsize=2, % Groesse von Tabs + % numbers=left, % numberstyle=\tiny, @@ -188,6 +207,7 @@ % captionpos=b } +\ifluatex\else % Ermögliche Umlaute when using \lstinputputlisting. % Siehe https://stackoverflow.com/a/29260603/873282 für Details. @@ -206,6 +226,16 @@ {ű}{{\H{u}}}1 {Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1 {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1 } +\fi + +\lstloadlanguages{% Check dokumentation for further languages... + %[Visual]Basic + %Pascal + %C + %C++ + %XML + %HTML +} % For easy quotations: \enquote{text} % This package is very smart when nesting is applied, otherwise textcmds (see below) provides a shorter command @@ -215,7 +245,10 @@ \defineshorthand{"`}{\openautoquote} \defineshorthand{"'}{\closeautoquote} -% Nicer tables (\toprule, \midrule, \bottomrule) +% bessere Abstaende innerhalb der Tabelle (Layout)) +% ------------------------------------------------- +% \toprule, \midrule, \bottomrule +% Doc: https://texdoc.org/serve/booktabs/0 \usepackage{booktabs} % Extended enumerate, such as \begin{compactenum} @@ -257,38 +290,121 @@ { } % Put figures aside a text +% Even thought he package is from 1998, it works well \usepackage[rflt]{floatflt} +% Farbige Tabellen +% ---------------- +% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen +% +% Erweiterte Funktionen innerhalb von Tabellen +% -------------------------------------------- +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty +\usepackage{multirow} % Mehrfachspalten +% +%%% Doc: Documentation inside dtx Package +\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt + +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf +%\usepackage{supertabular} + +%%% Fussnoten/Endnoten =================================================== + +% EN: Put footnotes below floats +% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren +% Source: https://tex.stackexchange.com/a/32993/9075 +\usepackage{stfloats} +\fnbelowfloat + +% EN: Extended support for footnotes +% DE: Fußnoten +% +%\usepackage{dblfnote} %Zweispaltige Fußnoten +% +% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch): +%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}} +% +% Abstand zwischen Fußnoten vergrößern: +%\setlength{\footnotesep}{.85\baselineskip} +% +% EN: Following command disables the separting line of the footnote +% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote +%\renewcommand{\footnoterule}{} +% +%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote + +% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite +% DE: fnpos kommt aus dem yafoot package +%\usepackage{fnpos} +%\makeFNbelow +%\makeFNbottom + +% TODO (and comment) configuration +% +% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs +% - \todofix - "important" TODOs +% +% - \textcomment - highlights text and has a hover comment +% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others) +% +% - \missingfigure +% +% - \textmarker +% - \modified +% - \change - adresses a review comment + % Enable nice comments \usepackage{pdfcomment} -\newcommand{\commentontext}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -\newcommand{\commentatside}[1]{\pdfcomment[color={0.045 0.278 0.643},icon=Note]{#1}} +\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -% Compatibality with packages todo, easy-todo, todonotes -\newcommand{\todo}[1]{\commentatside{#1}} +% Small PDF comment +% 1. Parameter: Comment +\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\sidecomment}[1]{} -% Compatiblity with package fixmetodonotes -\newcommand{\TODO}[1]{\commentatside{#1}} +\newcommand{\todo}[1]{TODO!\sidecomment{#1}} -% Fußnoten unter Gleitumgebungen ("floats") platzieren -% Quelle: https://tex.stackexchange.com/a/32993/9075 -\usepackage{stfloats} -\fnbelowfloat +% Änderungen +% +% 1. Parameter: Review-Kommentar +% 2. Parameter: Neuer Text +\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\change}[2]{#2} + +% Define default commands +\makeatletter +\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{} +\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{} +\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{} +\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{} +\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{} +\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{} +\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{} +\makeatother + +% Textmarker (Textfarbe rot) +\newcommand{\textmarker}[1]{{\color{red} #1}\xspace} + +% Modified (Text blau) +\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} -\addto\extrasgerman{\sisetup{locale = DE}} % Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document \usepackage{hyperref} % Enable hyperref without colors and without bookmarks \hypersetup{ - hidelinks, - colorlinks=true, + hidelinks, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, - breaklinks=true + breaklinks=true, % Links ueberstehen Zeilenumbruch + hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075 } % Enable correct jumping to figures when referencing @@ -301,8 +417,17 @@ \patchcmd{\@decl@short}{\bbl@info}{\@gobble}{}{} \makeatother + \usepackage[caption=false,font=footnotesize]{subfig} +% Alternative for making subfigures: +% Part of the caption package. See http://www.ctan.org/pkg/caption +% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075 +% +% (subfigure is outdated. subfig is maintained, but subcaption is better) +% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure +%\usepackage[hypcap=true]{subcaption} + \usepackage{mindflow} % cleveref für cref statt autoref, da cleveref auch bei Definitionen funktioniert @@ -350,6 +475,10 @@ \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} \usepackage{xspace} +% Macht \xspace und \enquote kompatibel +\makeatletter +\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } +\makeatother % Enable hyphenation at other places as the dash. % Example: applicaiton\hydash specific @@ -358,8 +487,24 @@ % Definition of "= taken from http://mirror.ctan.org/macros/latex/contrib/babel-contrib/german/ngermanb.dtx \makeatother +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype +% See ADR-0008 for alternatives +\usepackage{autotype} +\fi + % correct bad hyphenation here -\hyphenation{op-tical net-works semi-conduc-tor} +\hyphenation{ + Spe-zi-fi-ka-tion + In-te-gra-tion + An-for-de-rung An-for-de-run-gen + Be-nut-zer-ober-flä-che + Mes-sung-en + aus-zu-tau-schen + Lauf-zeit-in-for-ma-tionen + % May not be hypphenated + AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps +} % Add copyright % @@ -378,6 +523,7 @@ \llncs{book editors and title}{0042} \fi +\ifpdftex % Enable copy and paste of text from the PDF % Only required for pdflatex. It "just works" in the case of lualatex. % Alternative: cmap or mmap package @@ -389,8 +535,14 @@ % According to https://tex.stackexchange.com/q/451235/9075 this is the way to go \input glyphtounicode \pdfgentounicode=1 - +\fi \begin{document} +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype +% See ADR-0008 for alternatives +\autotypelangoptions{ngerman}{ligbreak} +\fi + \title{Paper Title} % If Title is too long, use \titlerunning @@ -423,7 +575,7 @@ \maketitle \begin{abstract} - +\lipsum[1] \keywords{First keyword \and Second keyword \and Third keyword} \end{abstract} @@ -446,7 +598,7 @@ \section{Verwandte Arbeiten} Eine Beschreibung relevanter wissenschaftlicher Arbeiten mit Bezug zur eigenen Arbeit. Der Abschnitt kann je nach Kontext auch an anderer Stelle stehen. -Winery~\cite{Winery} is a graphical \commentontext{modeling}{modeling with one ``l'', because of AE} tool. +Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of AE} tool. The whole idea of TOSCA is explained by \citet{Binz2009}. \section{LaTeX Hinweise} @@ -520,6 +672,35 @@ \subsection{Notes separated from the text} \end{mindflow} \end{ltgexample} +\subsection{Handling TODOs} + +\begin{ltgexample} +\textmarker{Markierter Text.} +\end{ltgexample} + +Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert. + +\begin{ltgexample} +\textcomment{Markierter Text.}{Kommentar dazu.} +\end{ltgexample} + +\begin{ltgexample} +\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.} +\end{ltgexample} + +\begin{ltgexample} +Das ist ein Text. +\change{FL1: Text angepasst}{Geänderter Text}. +\end{ltgexample} + +\begin{ltgexample} +Hier nur ein Kommentar\sidecomment{Kommentar}. +\end{ltgexample} + +\begin{ltgexample} +\todo{Hier muss noch kräftig Text produziert werden} +\end{ltgexample} + \subsection{Hyphenation} \LaTeX{} automatically hyphenates words. @@ -616,8 +797,9 @@ \subsection{Abbildungen} \includegraphics[width=.29\linewidth]{example-image-a} \caption{A floating figure} \end{floatingfigure} -\blindtext[2] +\lipsum[2] \end{ltgexample} + \subsection{Sub Figures} An example of two sub figures is shown in \cref{fig:two_sub_figures}. @@ -811,7 +993,7 @@ \subsubsection*{Danksagungen} \renewcommand{\bibsection}{\section*{Literatur}} % requried for natbib to have "References" printed and as section*, not chapter* % Use natbib compatbile splncs04nat style. % It does provide all features of splncs03, but is developed in a clean way. -% Source: http://phaseportrait.blogspot.de/2011/02/natbib-compatible-bibtex-style-bst-file.html +% Source: https://github.com/tpavlic/splncs04nat \bibliographystyle{splncs04nat} \begingroup \microtypecontext{expansion=sloppy} @@ -822,6 +1004,7 @@ \subsubsection*{Danksagungen} % Enfore empty line after bibliography \ \\ % +\noindent Alle Links wurden zuletzt am 29.03.2021 geprüft. %%% =============================================================================== From f53f5f996bb1ad07742da18de49b68c87493e31e Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 09:02:48 +0000 Subject: [PATCH 16/77] Update files based on generated files by template generator --- paper-de-times-minted.tex | 269 ++++++++++++++++++++++++++++++-------- 1 file changed, 218 insertions(+), 51 deletions(-) diff --git a/paper-de-times-minted.tex b/paper-de-times-minted.tex index 17d6e89..af7aa62 100644 --- a/paper-de-times-minted.tex +++ b/paper-de-times-minted.tex @@ -3,8 +3,7 @@ % !TeX spellcheck = de-DE % LTeX: language=de-DE % !TeX encoding = utf8 -% !TeX program = pdflatex -% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape] +% !TeX program = lualatex % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- @@ -12,11 +11,12 @@ % % - easy print out on DIN A4 paper size % -% One can configure a4 vs. letter in the LaTeX installation. So it is configuration dependend, what the paper size will be. -% This option present, because the current word template offered by Springer is DIN A4. -% We accept that DIN A4 cause WTFs at persons not used to A4 in USA. +% One can configure default page size (a4 vs. letter) in the LaTeX installation. +% Thus, it is configuration dependend, what the paper size will be. +% Having "a4paper" option present, the page size is set to A4. +% Note that the current word template offered by Springer is DIN A4. % -% "runningheads": +% "runningheads" führt zu folgendem: % % - zeigt Author + Titel auf jeder Seite. % - Während des Schreibens und das Review des Papers hilft das, um z.B. auf konkrete Seitenzahlen einfach verweisen zu können. @@ -26,11 +26,13 @@ % blindly opening the folder, one could hit not the title page, but an arbitrary page. Therefore, % it is good to have title printed on the pages, too. % -% Diese Option nach Aufforderung durch die Herausgeber entfernen. +% Die Option "runningheads" ist nach Aufforderung durch die Herausgeber entfernen. % % To disable outputting page headers and footers, remove "runningheads" \documentclass[runningheads,a4paper,ngerman]{llncs}[2022/01/12] +\usepackage{iftex} + % backticks (`) werden als solches in verbatim-Umgebungen dargestellt % Details unter: % - https://tex.stackexchange.com/a/341057/9075 @@ -46,26 +48,6 @@ % Hinweis von http://tex.stackexchange.com/a/321066/9075 % Ermögliche die Benutzung von "= als Trennstriche \addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}} -% -% Fix von https://tex.stackexchange.com/a/441701/9075 -\usepackage{regexpatch} -\makeatletter -\edef\switcht@albion{% - \relax\unexpanded\expandafter{\switcht@albion}% -} -\xpatchcmd*{\switcht@albion}{ \def}{\def}{}{} -\xpatchcmd{\switcht@albion}{\relax}{}{}{} -\edef\switcht@deutsch{% - \relax\unexpanded\expandafter{\switcht@deutsch}% -} -\xpatchcmd*{\switcht@deutsch}{ \def}{\def}{}{} -\xpatchcmd{\switcht@deutsch}{\relax}{}{}{} -\edef\switcht@francais{% - \relax\unexpanded\expandafter{\switcht@francais}% -} -\xpatchcmd*{\switcht@francais}{ \def}{\def}{}{} -\xpatchcmd{\switcht@francais}{\relax}{}{}{} -\makeatother % Links verhalten sich so, wie sie sollen % Zeilenumbrüche bei URLs auch bei Bindestrichen erlauben, auch wenn es verwirrend sein könnte: Gehört der Bindestrich zur URL oder ist es ein Trennstrich? @@ -78,12 +60,41 @@ \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother + +\ifluatex +\usepackage[no-math]{fontspec} +\usepackage{unicode-math} + +% See https://tug.org/FontCatalogue/texgyretermes/ for more information +\setmainfont{texgyretermes}[ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + Ligatures=TeX +] +% See https://tug.org/FontCatalogue/texgyreheros/ for more information +\setsansfont[Scale=.9]{TeX Gyre Heros Regular} +% newtxtt looks good with times, but no equivalent for lualatex found, +% therefore tried to replace with inconsolata. +% However, inconsolata does not look good in the context of LNCS ... +%\setmonofont[StylisticSet={1,3},Scale=.9]{inconsolata} +% ... thus, we use the good old Latin Modern Mono font for source code. +\setmonofont{Latin Modern Mono} % "variable=false" + +% Enable proper ligatures +% For more information see https://ctan.org/pkg/selnolig +% language "english" or "ngerman" is passed to selnolig by the document class +\usepackage{selnolig} +\else \RequirePackage{newtxtext} \RequirePackage{newtxmath} \RequirePackage[zerostyle=b,scaled=.9]{newtxtt} % Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075. \usepackage[T1]{fontenc} +\fi % Optischer Randausgleich und Grauwertkorrektur. Siehe See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/ @@ -114,8 +125,11 @@ % Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox \usepackage{diagbox} -\usepackage{xcolor} +\usepackage[dvipsnames, table]{xcolor} +% Für die finale Fassung empfohlen: +%\usepackage[dvipsnames, table, gray]{xcolor} +% See https://github.com/gpoore/minted \usepackage[newfloat]{minted} \setminted{ @@ -132,9 +146,9 @@ % breakbytokenanywhere=true } -\usemintedstyle{bw} %black and white style +%\usemintedstyle{bw} %black and white style %\usemintedstyle{vs} %visual studio -%\usemintedstyle{friendlygrayscale} % custom style - submitted as pull request https://bitbucket.org/birkenfeld/pygments-main/pull-requests/748/add-style-friendly-grayscale/diff +\usemintedstyle{friendly_grayscale} %\usemintedstyle{friendly} %\usemintedstyle{eclipse} %http://www.jevon.org/wiki/Eclipse_Pygments_Style %\usemintedstyle{autumn} @@ -164,7 +178,10 @@ \defineshorthand{"`}{\openautoquote} \defineshorthand{"'}{\closeautoquote} -% Nicer tables (\toprule, \midrule, \bottomrule) +% bessere Abstaende innerhalb der Tabelle (Layout)) +% ------------------------------------------------- +% \toprule, \midrule, \bottomrule +% Doc: https://texdoc.org/serve/booktabs/0 \usepackage{booktabs} % Extended enumerate, such as \begin{compactenum} @@ -206,38 +223,121 @@ { } % Put figures aside a text +% Even thought he package is from 1998, it works well \usepackage[rflt]{floatflt} +% Farbige Tabellen +% ---------------- +% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen +% +% Erweiterte Funktionen innerhalb von Tabellen +% -------------------------------------------- +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty +\usepackage{multirow} % Mehrfachspalten +% +%%% Doc: Documentation inside dtx Package +\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt + +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf +%\usepackage{supertabular} + +%%% Fussnoten/Endnoten =================================================== + +% EN: Put footnotes below floats +% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren +% Source: https://tex.stackexchange.com/a/32993/9075 +\usepackage{stfloats} +\fnbelowfloat + +% EN: Extended support for footnotes +% DE: Fußnoten +% +%\usepackage{dblfnote} %Zweispaltige Fußnoten +% +% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch): +%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}} +% +% Abstand zwischen Fußnoten vergrößern: +%\setlength{\footnotesep}{.85\baselineskip} +% +% EN: Following command disables the separting line of the footnote +% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote +%\renewcommand{\footnoterule}{} +% +%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote + +% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite +% DE: fnpos kommt aus dem yafoot package +%\usepackage{fnpos} +%\makeFNbelow +%\makeFNbottom + +% TODO (and comment) configuration +% +% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs +% - \todofix - "important" TODOs +% +% - \textcomment - highlights text and has a hover comment +% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others) +% +% - \missingfigure +% +% - \textmarker +% - \modified +% - \change - adresses a review comment + % Enable nice comments \usepackage{pdfcomment} -\newcommand{\commentontext}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -\newcommand{\commentatside}[1]{\pdfcomment[color={0.045 0.278 0.643},icon=Note]{#1}} +\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -% Compatibality with packages todo, easy-todo, todonotes -\newcommand{\todo}[1]{\commentatside{#1}} +% Small PDF comment +% 1. Parameter: Comment +\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\sidecomment}[1]{} -% Compatiblity with package fixmetodonotes -\newcommand{\TODO}[1]{\commentatside{#1}} +\newcommand{\todo}[1]{TODO!\sidecomment{#1}} -% Fußnoten unter Gleitumgebungen ("floats") platzieren -% Quelle: https://tex.stackexchange.com/a/32993/9075 -\usepackage{stfloats} -\fnbelowfloat +% Änderungen +% +% 1. Parameter: Review-Kommentar +% 2. Parameter: Neuer Text +\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\change}[2]{#2} + +% Define default commands +\makeatletter +\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{} +\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{} +\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{} +\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{} +\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{} +\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{} +\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{} +\makeatother + +% Textmarker (Textfarbe rot) +\newcommand{\textmarker}[1]{{\color{red} #1}\xspace} + +% Modified (Text blau) +\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} -\addto\extrasgerman{\sisetup{locale = DE}} % Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document \usepackage{hyperref} % Enable hyperref without colors and without bookmarks \hypersetup{ - hidelinks, - colorlinks=true, + hidelinks, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, - breaklinks=true + breaklinks=true, % Links ueberstehen Zeilenumbruch + hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075 } % Enable correct jumping to figures when referencing @@ -250,8 +350,17 @@ \patchcmd{\@decl@short}{\bbl@info}{\@gobble}{}{} \makeatother + \usepackage[caption=false,font=footnotesize]{subfig} +% Alternative for making subfigures: +% Part of the caption package. See http://www.ctan.org/pkg/caption +% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075 +% +% (subfigure is outdated. subfig is maintained, but subcaption is better) +% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure +%\usepackage[hypcap=true]{subcaption} + \usepackage{mindflow} % cleveref für cref statt autoref, da cleveref auch bei Definitionen funktioniert @@ -303,6 +412,10 @@ \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} \usepackage{xspace} +% Macht \xspace und \enquote kompatibel +\makeatletter +\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } +\makeatother % Enable hyphenation at other places as the dash. % Example: applicaiton\hydash specific @@ -311,8 +424,24 @@ % Definition of "= taken from http://mirror.ctan.org/macros/latex/contrib/babel-contrib/german/ngermanb.dtx \makeatother +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype +% See ADR-0008 for alternatives +\usepackage{autotype} +\fi + % correct bad hyphenation here -\hyphenation{op-tical net-works semi-conduc-tor} +\hyphenation{ + Spe-zi-fi-ka-tion + In-te-gra-tion + An-for-de-rung An-for-de-run-gen + Be-nut-zer-ober-flä-che + Mes-sung-en + aus-zu-tau-schen + Lauf-zeit-in-for-ma-tionen + % May not be hypphenated + AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps +} % Add copyright % @@ -331,6 +460,7 @@ \llncs{book editors and title}{0042} \fi +\ifpdftex % Enable copy and paste of text from the PDF % Only required for pdflatex. It "just works" in the case of lualatex. % Alternative: cmap or mmap package @@ -342,8 +472,14 @@ % According to https://tex.stackexchange.com/q/451235/9075 this is the way to go \input glyphtounicode \pdfgentounicode=1 - +\fi \begin{document} +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype +% See ADR-0008 for alternatives +\autotypelangoptions{ngerman}{ligbreak} +\fi + \title{Paper Title} % If Title is too long, use \titlerunning @@ -376,7 +512,7 @@ \maketitle \begin{abstract} - +\lipsum[1] \keywords{First keyword \and Second keyword \and Third keyword} \end{abstract} @@ -399,7 +535,7 @@ \section{Verwandte Arbeiten} Eine Beschreibung relevanter wissenschaftlicher Arbeiten mit Bezug zur eigenen Arbeit. Der Abschnitt kann je nach Kontext auch an anderer Stelle stehen. -Winery~\cite{Winery} is a graphical \commentontext{modeling}{modeling with one ``l'', because of AE} tool. +Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of AE} tool. The whole idea of TOSCA is explained by \citet{Binz2009}. \section{LaTeX Hinweise} @@ -469,6 +605,35 @@ \subsection{Notes separated from the text} \end{mindflow} \end{ltgexample} +\subsection{Handling TODOs} + +\begin{ltgexample} +\textmarker{Markierter Text.} +\end{ltgexample} + +Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert. + +\begin{ltgexample} +\textcomment{Markierter Text.}{Kommentar dazu.} +\end{ltgexample} + +\begin{ltgexample} +\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.} +\end{ltgexample} + +\begin{ltgexample} +Das ist ein Text. +\change{FL1: Text angepasst}{Geänderter Text}. +\end{ltgexample} + +\begin{ltgexample} +Hier nur ein Kommentar\sidecomment{Kommentar}. +\end{ltgexample} + +\begin{ltgexample} +\todo{Hier muss noch kräftig Text produziert werden} +\end{ltgexample} + \subsection{Hyphenation} \LaTeX{} automatically hyphenates words. @@ -565,8 +730,9 @@ \subsection{Abbildungen} \includegraphics[width=.29\linewidth]{example-image-a} \caption{A floating figure} \end{floatingfigure} -\blindtext[2] +\lipsum[2] \end{ltgexample} + \subsection{Sub Figures} An example of two sub figures is shown in \cref{fig:two_sub_figures}. @@ -746,7 +912,7 @@ \subsubsection*{Danksagungen} \renewcommand{\bibsection}{\section*{Literatur}} % requried for natbib to have "References" printed and as section*, not chapter* % Use natbib compatbile splncs04nat style. % It does provide all features of splncs03, but is developed in a clean way. -% Source: http://phaseportrait.blogspot.de/2011/02/natbib-compatible-bibtex-style-bst-file.html +% Source: https://github.com/tpavlic/splncs04nat \bibliographystyle{splncs04nat} \begingroup \microtypecontext{expansion=sloppy} @@ -757,6 +923,7 @@ \subsubsection*{Danksagungen} % Enfore empty line after bibliography \ \\ % +\noindent Alle Links wurden zuletzt am 29.03.2021 geprüft. %%% =============================================================================== From 664a27438e6560ca190089679d224b0fa9292940 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 09:02:50 +0000 Subject: [PATCH 17/77] Update files based on generated files by template generator --- paper-en-times-listings.tex | 262 +++++++++++++++++++++++++++++------- 1 file changed, 214 insertions(+), 48 deletions(-) diff --git a/paper-en-times-listings.tex b/paper-en-times-listings.tex index 7e11bd6..e5f291e 100644 --- a/paper-en-times-listings.tex +++ b/paper-en-times-listings.tex @@ -3,7 +3,7 @@ % !TeX spellcheck = en-US % LTeX: language=en-US % !TeX encoding = utf8 -% !TeX program = pdflatex +% !TeX program = lualatex % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- @@ -11,9 +11,10 @@ % % - easy print out on DIN A4 paper size % -% One can configure a4 vs. letter in the LaTeX installation. So it is configuration dependend, what the paper size will be. -% This option present, because the current word template offered by Springer is DIN A4. -% We accept that DIN A4 cause WTFs at persons not used to A4 in USA. +% One can configure default page size (a4 vs. letter) in the LaTeX installation. +% Thus, it is configuration dependend, what the paper size will be. +% Having "a4paper" option present, the page size is set to A4. +% Note that the current word template offered by Springer is DIN A4. % % "runningheads" enables: % @@ -25,9 +26,13 @@ % blindly opening the folder, one could hit not the title page, but an arbitrary page. Therefore, % it is good to have title printed on the pages, too. % +% The optiion "runningheads" neesd to be removed upon request of the publisher. +% % To disable outputting page headers and footers, remove "runningheads" \documentclass[runningheads,a4paper,english]{llncs}[2022/01/12] +\usepackage{iftex} + % backticks (`) are rendered as such in verbatim environments. % See following links for details: % - https://tex.stackexchange.com/a/341057/9075 @@ -43,26 +48,6 @@ % % Hint by http://tex.stackexchange.com/a/321066/9075 -> enable "= as dashes \addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}} -% -% Fix by https://tex.stackexchange.com/a/441701/9075 -\usepackage{regexpatch} -\makeatletter -\edef\switcht@albion{% - \relax\unexpanded\expandafter{\switcht@albion}% -} -\xpatchcmd*{\switcht@albion}{ \def}{\def}{}{} -\xpatchcmd{\switcht@albion}{\relax}{}{}{} -\edef\switcht@deutsch{% - \relax\unexpanded\expandafter{\switcht@deutsch}% -} -\xpatchcmd*{\switcht@deutsch}{ \def}{\def}{}{} -\xpatchcmd{\switcht@deutsch}{\relax}{}{}{} -\edef\switcht@francais{% - \relax\unexpanded\expandafter{\switcht@francais}% -} -\xpatchcmd*{\switcht@francais}{ \def}{\def}{}{} -\xpatchcmd{\switcht@francais}{\relax}{}{}{} -\makeatother % Links behave as they should. Enables "\url{...}" for URL typesettings. % Allow URL breaks also at a hyphen, even though it might be confusing: Is the "-" part of the address or just a hyphen? @@ -85,12 +70,40 @@ %\g@addto@macro\UrlSpecials{\do\/{\Url@twoslashes}} %\makeatother +\ifluatex +\usepackage[no-math]{fontspec} +\usepackage{unicode-math} + +% See https://tug.org/FontCatalogue/texgyretermes/ for more information +\setmainfont{texgyretermes}[ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + Ligatures=TeX +] +% See https://tug.org/FontCatalogue/texgyreheros/ for more information +\setsansfont[Scale=.9]{TeX Gyre Heros Regular} +% newtxtt looks good with times, but no equivalent for lualatex found, +% therefore tried to replace with inconsolata. +% However, inconsolata does not look good in the context of LNCS ... +%\setmonofont[StylisticSet={1,3},Scale=.9]{inconsolata} +% ... thus, we use the good old Latin Modern Mono font for source code. +\setmonofont{Latin Modern Mono} % "variable=false" + +% Enable proper ligatures +% For more information see https://ctan.org/pkg/selnolig +% language "english" or "ngerman" is passed to selnolig by the document class +\usepackage{selnolig} +\else \RequirePackage{newtxtext} \RequirePackage{newtxmath} \RequirePackage[zerostyle=b,scaled=.9]{newtxtt} % Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075. \usepackage[T1]{fontenc} +\fi % Character protrusion and font expansion. See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/ @@ -116,8 +129,9 @@ % Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox \usepackage{diagbox} -\usepackage{xcolor} - +\usepackage[dvipsnames, table]{xcolor} +% Für die finale Fassung empfohlen: +%\usepackage[dvipsnames, table, gray]{xcolor} % Code Listings \usepackage{listings} @@ -166,20 +180,22 @@ % extendedchars=true, % - basicstyle=\footnotesize\ttfamily, - % + basicstyle=\footnotesize\ttfamily, + % commentstyle=\slshape, % % default: \rmfamily stringstyle=\ttfamily, % - breaklines=true, + breaklines=true, % Zeilen werden umbrochen % breakatwhitespace=true, % % alternative: fixed columns=flexible, % + tabsize=2, % Groesse von Tabs + % numbers=left, % numberstyle=\tiny, @@ -194,6 +210,7 @@ % captionpos=b } +\ifluatex\else % Enable Umlauts when using \lstinputputlisting. % See https://stackoverflow.com/a/29260603/873282 für details. @@ -212,6 +229,16 @@ {ű}{{\H{u}}}1 {Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1 {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1 } +\fi + +\lstloadlanguages{% Check dokumentation for further languages... + %[Visual]Basic + %Pascal + %C + %C++ + %XML + %HTML +} % For easy quotations: \enquote{text} % This package is very smart when nesting is applied, otherwise textcmds (see below) provides a shorter command @@ -263,25 +290,107 @@ { } % Put figures aside a text +% Even thought he package is from 1998, it works well \usepackage[rflt]{floatflt} -% Enable nice comments -\usepackage{pdfcomment} - -\newcommand{\commentontext}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -\newcommand{\commentatside}[1]{\pdfcomment[color={0.045 0.278 0.643},icon=Note]{#1}} +% Farbige Tabellen +% ---------------- +% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen +% +% Erweiterte Funktionen innerhalb von Tabellen +% -------------------------------------------- +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty +\usepackage{multirow} % Mehrfachspalten +% +%%% Doc: Documentation inside dtx Package +\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt -% Compatibality with packages todo, easy-todo, todonotes -\newcommand{\todo}[1]{\commentatside{#1}} +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf +%\usepackage{supertabular} -% Compatiblity with package fixmetodonotes -\newcommand{\TODO}[1]{\commentatside{#1}} +%%% Fussnoten/Endnoten =================================================== -% Put footnotes below floats +% EN: Put footnotes below floats +% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren % Source: https://tex.stackexchange.com/a/32993/9075 \usepackage{stfloats} \fnbelowfloat +% EN: Extended support for footnotes +% DE: Fußnoten +% +%\usepackage{dblfnote} %Zweispaltige Fußnoten +% +% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch): +%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}} +% +% Abstand zwischen Fußnoten vergrößern: +%\setlength{\footnotesep}{.85\baselineskip} +% +% EN: Following command disables the separting line of the footnote +% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote +%\renewcommand{\footnoterule}{} +% +%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote + +% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite +% DE: fnpos kommt aus dem yafoot package +%\usepackage{fnpos} +%\makeFNbelow +%\makeFNbottom + +% TODO (and comment) configuration +% +% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs +% - \todofix - "important" TODOs +% +% - \textcomment - highlights text and has a hover comment +% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others) +% +% - \missingfigure +% +% - \textmarker +% - \modified +% - \change - adresses a review comment + +% Enable nice comments +\usepackage{pdfcomment} + +\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} + +% Small PDF comment +% 1. Parameter: Comment +\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\sidecomment}[1]{} + +\newcommand{\todo}[1]{TODO!\sidecomment{#1}} + +% Änderungen +% +% 1. Parameter: Review-Kommentar +% 2. Parameter: Neuer Text +\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\change}[2]{#2} + +% Define default commands +\makeatletter +\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{} +\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{} +\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{} +\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{} +\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{} +\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{} +\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{} +\makeatother + +% Textmarker (Textfarbe rot) +\newcommand{\textmarker}[1]{{\color{red} #1}\xspace} + +% Modified (Text blau) +\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} + \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} % Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document @@ -289,18 +398,29 @@ % Enable hyperref without colors and without bookmarks \hypersetup{ - hidelinks, - colorlinks=true, + hidelinks, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, - breaklinks=true + breaklinks=true, % Links ueberstehen Zeilenumbruch + hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075 } % Enable correct jumping to figures when referencing \usepackage[all]{hypcap} + \usepackage[caption=false,font=footnotesize]{subfig} +% Alternative for making subfigures: +% Part of the caption package. See http://www.ctan.org/pkg/caption +% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075 +% +% (subfigure is outdated. subfig is maintained, but subcaption is better) +% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure +%\usepackage[hypcap=true]{subcaption} + \usepackage{mindflow} % Extensions for references inside the document (\cref{fig:sample}, ...) @@ -340,7 +460,13 @@ }{} \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} +% Allows for defining commands that don't eat spaces. \usepackage{xspace} +% Adds compatibility to \xspace und \enquote kompatibel +\makeatletter +\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } +\makeatother + \newcommand{\eg}{e.g.,\ } \newcommand{\ie}{i.e.,\ } @@ -353,11 +479,20 @@ % Add manual adapted hyphenation of English words % See https://ctan.org/pkg/hyphenex and https://tex.stackexchange.com/a/22892/9075 for details -% Does not work on MiKTeX, therefore disabled - issue reported at https://github.com/MiKTeX/miktex-packaging/issues/271 -% \input{ushyphex} +\input{ushyphex} + +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/selnolig +% See ADR-0009 for alternatives +\usepackage{selnolig} +\fi % correct bad hyphenation here -\hyphenation{op-tical net-works semi-conduc-tor} +\hyphenation{ + op-tical net-works semi-conduc-tor + % May not be hypphenated + AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps +} % Add copyright % @@ -376,6 +511,7 @@ \llncs{book editors and title}{0042} \fi +\ifpdftex % Enable copy and paste of text from the PDF % Only required for pdflatex. It "just works" in the case of lualatex. % Alternative: cmap or mmap package @@ -387,7 +523,7 @@ % According to https://tex.stackexchange.com/q/451235/9075 this is the way to go \input glyphtounicode \pdfgentounicode=1 - +\fi \begin{document} \title{Paper Title} @@ -438,7 +574,7 @@ \section{Introduction} \section{Related Work} \label{sec:relatedwork} -Winery~\cite{Winery} is a graphical \commentontext{modeling}{modeling with one ``l'', because of AE} tool. +Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of AE} tool. The whole idea of TOSCA is explained by \citet{Binz2009}. \section{LaTeX Hints} @@ -513,6 +649,35 @@ \subsection{Notes separated from the text} \end{mindflow} \end{ltgexample} +\subsection{Handling TODOs} + +\begin{ltgexample} +\textmarker{Markierter Text.} +\end{ltgexample} + +Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert. + +\begin{ltgexample} +\textcomment{Markierter Text.}{Kommentar dazu.} +\end{ltgexample} + +\begin{ltgexample} +\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.} +\end{ltgexample} + +\begin{ltgexample} +Das ist ein Text. +\change{FL1: Text angepasst}{Geänderter Text}. +\end{ltgexample} + +\begin{ltgexample} +Hier nur ein Kommentar\sidecomment{Kommentar}. +\end{ltgexample} + +\begin{ltgexample} +\todo{Hier muss noch kräftig Text produziert werden} +\end{ltgexample} + \subsection{Hyphenation} \LaTeX{} automatically hyphenates words. @@ -609,7 +774,7 @@ \subsection{Figures} \includegraphics[width=.29\linewidth]{example-image-a} \caption{A floating figure} \end{floatingfigure} -\blindtext[2] +\lipsum[2] \end{ltgexample} \subsection{Sub Figures} @@ -812,6 +977,7 @@ \subsubsection*{Acknowledgments} % Enfore empty line after bibliography \ \\ % +\noindent All links were last followed on October 5, 2020. %%% =============================================================================== From 48190f6a5284f44c6c2ed4b625e388d65ab6997b Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 10:18:29 +0100 Subject: [PATCH 18/77] Re-add Dockerfile --- .github/workflows/update-files.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index fe4ca44..678c5ee 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -1,4 +1,5 @@ name: Update Files +name: Update Files on: pull_request: push: @@ -44,7 +45,7 @@ jobs: run: | yo $GITHUB_WORKSPACE/generator-latex-template/generators/app/index.js \ --githubpublish\ - --docker=no\ + --docker=iot\ --documentclass=lncs\ --papersize=a4\ --latexcompiler=both\ From 00521ca13cff839a3f9ff4ee0c102ebd4d758523 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 10:21:01 +0100 Subject: [PATCH 19/77] Remove double header --- .github/workflows/update-files.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index 678c5ee..37e16cb 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -1,5 +1,4 @@ name: Update Files -name: Update Files on: pull_request: push: From 3c94c7efe1d86725d18f95f3f72df5fda68ea877 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 10:22:44 +0100 Subject: [PATCH 20/77] Add CHANGELOG entry --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a44a8e..6f0e18d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ From 2022-03-01 onwards, versioning is done using [Calendar Versioning](https:// ### Changed -- Defaults to lualatex instead of pdflatex +- Defaults to lualatex instead of pdflatex. +- `Dockerfile` switched to [Island of TeX's docker image](https://gitlab.com/islandoftex/images/texlive#tex-live-docker-image) to enable easy addition of new LaTeX packages. ## [2022-06-06] From 1ef09ef6f7d8dd79613c4d28380244d7e02d00e9 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 10:50:59 +0100 Subject: [PATCH 21/77] Refine CHANGELOG.md entry --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f0e18d..272e8e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ From 2022-03-01 onwards, versioning is done using [Calendar Versioning](https:// ### Changed -- Defaults to lualatex instead of pdflatex. +- Compilation with both lualatex and pdflatex is possible. Defaults to lualatex. - `Dockerfile` switched to [Island of TeX's docker image](https://gitlab.com/islandoftex/images/texlive#tex-live-docker-image) to enable easy addition of new LaTeX packages. ## [2022-06-06] From 057785f42f853c899bbfedede71625c2b39c9b17 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 10:52:39 +0100 Subject: [PATCH 22/77] Refine CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 272e8e3..64496c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ From 2022-03-01 onwards, versioning is done using [Calendar Versioning](https:// ### Changed - Compilation with both lualatex and pdflatex is possible. Defaults to lualatex. +- Nicer gray scale for `minted` listings. - `Dockerfile` switched to [Island of TeX's docker image](https://gitlab.com/islandoftex/images/texlive#tex-live-docker-image) to enable easy addition of new LaTeX packages. ## [2022-06-06] From 62ab118af7bbf4911df4c22ffe9af13f5f9740ab Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 10:52:57 +0100 Subject: [PATCH 23/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 4a51a93..fd68b4c 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 4a51a936930b8de5835be8823e01af3ceda56037 +Subproject commit fd68b4c71427761cf86e2bb31fd9b60c345ce6c1 From bd2de459b2c1c8e2ae6d55e5bbdfe8643dd028e8 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 09:53:41 +0000 Subject: [PATCH 24/77] Update files based on generated files by template generator --- Dockerfile | 19 +++++++------------ README.md | 7 ------- Texlivefile | 2 ++ paper-en-times-minted.tex | 10 ++++------ 4 files changed, 13 insertions(+), 25 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4ebeb8f..aaf7e73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,8 @@ -FROM reitzig/texlive-base:2022.8 -RUN apk update && apk add --no-cache bash perl python3 py3-pip -RUN pip3 install pygments +FROM registry.gitlab.com/islandoftex/images/texlive:latest-basic +WORKDIR /workdir -# Emulate "Install dependencies" of "entrypoint work ..." -RUN tlmgr update --self --repository http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2022/tlnet-final -COPY Texlivefile /work/src -RUN xargs tlmgr install --repository http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2022/tlnet-final < "/work/src/Texlivefile" &&\ - sha256sum "/work/src/Texlivefile" > "/work/tmp/Texlivefile.sha" &&\ - # make latexmk and texlogsieve available - tlmgr path add -# use latest texlogsieve -# RUN cd /usr/local/bin && wget https://gitlab.com/lago/texlogsieve/-/raw/main/texlogsieve?inline=false +COPY Texlivefile /workdir/ + +RUN xargs tlmgr install --repository https://tug.ctan.org/systems/texlive/tlnet/ < /workdir/Texlivefile + +RUN tlmgr path add diff --git a/README.md b/README.md index c85b5bf..8338898 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,6 @@ Following features are enabled in this template: - Provides a skeletal [paper.tex](https://latextemplates.github.io/LNCS/paper.tex) file - Example to have an image being placed right to a text -- Support for German documents (without broken headers): - Contains a fix to increase compatibility with Babel. - See for details. - Automatic setting of "Fig." and "Section"/"Sect." according to the LNCS style. Just use `\Cref{sec:xy}` at the beginning of a sentence and `\cref{sec:xy}` in the middle of a sentence. Thanx to [cleveref]. @@ -150,10 +147,6 @@ The possible options are listed in `paper.tex`. Yes. You can regenerate the template and choose "German" as language. -### Q: `ngerman-x-latest` is reported missing - -Install the package `dehyph-exptl`. - ## Further information - tex.stackexchange.com questions regarding LNCS: diff --git a/Texlivefile b/Texlivefile index ff61488..1a5a25d 100644 --- a/Texlivefile +++ b/Texlivefile @@ -97,12 +97,14 @@ mathtools mfirstuc microtype mindflow +minted mnsymbol multirow mwe natbib ncctools newcomputermodern +newfloat newtx newtxtt nfssext-cfr diff --git a/paper-en-times-minted.tex b/paper-en-times-minted.tex index 4f89053..42e3a87 100644 --- a/paper-en-times-minted.tex +++ b/paper-en-times-minted.tex @@ -130,8 +130,6 @@ \usepackage{diagbox} \usepackage[dvipsnames, table]{xcolor} -% Für die finale Fassung empfohlen: -%\usepackage[dvipsnames, table, gray]{xcolor} % See https://github.com/gpoore/minted \usepackage[newfloat]{minted} @@ -223,7 +221,7 @@ { } % Put figures aside a text -% Even thought he package is from 1998, it works well +% Even though the package is from 1998, it works well \usepackage[rflt]{floatflt} % Farbige Tabellen @@ -331,9 +329,9 @@ % Enable hyperref without colors and without bookmarks \hypersetup{ - hidelinks, - colorlinks=true, % Links erhalten Farben statt Kaeten - raiselinks=true, % calculate real height of the link + hidelinks, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, breaklinks=true, % Links ueberstehen Zeilenumbruch From c4a04ba45bf01bec083d072444cdb70bf4de133a Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 09:53:41 +0000 Subject: [PATCH 25/77] Update files based on generated files by template generator --- paper-en-times-listings.tex | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/paper-en-times-listings.tex b/paper-en-times-listings.tex index e5f291e..e9563db 100644 --- a/paper-en-times-listings.tex +++ b/paper-en-times-listings.tex @@ -130,8 +130,6 @@ \usepackage{diagbox} \usepackage[dvipsnames, table]{xcolor} -% Für die finale Fassung empfohlen: -%\usepackage[dvipsnames, table, gray]{xcolor} % Code Listings \usepackage{listings} @@ -181,7 +179,7 @@ extendedchars=true, % basicstyle=\footnotesize\ttfamily, - % + % commentstyle=\slshape, % % default: \rmfamily @@ -290,7 +288,7 @@ { } % Put figures aside a text -% Even thought he package is from 1998, it works well +% Even though the package is from 1998, it works well \usepackage[rflt]{floatflt} % Farbige Tabellen @@ -398,9 +396,9 @@ % Enable hyperref without colors and without bookmarks \hypersetup{ - hidelinks, - colorlinks=true, % Links erhalten Farben statt Kaeten - raiselinks=true, % calculate real height of the link + hidelinks, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, breaklinks=true, % Links ueberstehen Zeilenumbruch From e41af82aa9d9baf076dec2a2dd51da284140e2a8 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 09:53:41 +0000 Subject: [PATCH 26/77] Update files based on generated files by template generator --- paper-de-times-minted.tex | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/paper-de-times-minted.tex b/paper-de-times-minted.tex index af7aa62..14a247d 100644 --- a/paper-de-times-minted.tex +++ b/paper-de-times-minted.tex @@ -60,7 +60,6 @@ \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother - \ifluatex \usepackage[no-math]{fontspec} \usepackage{unicode-math} @@ -126,8 +125,6 @@ \usepackage{diagbox} \usepackage[dvipsnames, table]{xcolor} -% Für die finale Fassung empfohlen: -%\usepackage[dvipsnames, table, gray]{xcolor} % See https://github.com/gpoore/minted \usepackage[newfloat]{minted} @@ -223,7 +220,7 @@ { } % Put figures aside a text -% Even thought he package is from 1998, it works well +% Even though the package is from 1998, it works well \usepackage[rflt]{floatflt} % Farbige Tabellen @@ -325,15 +322,16 @@ \newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} +\addto\extrasgerman{\sisetup{locale = DE}} % Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document \usepackage{hyperref} % Enable hyperref without colors and without bookmarks \hypersetup{ - hidelinks, - colorlinks=true, % Links erhalten Farben statt Kaeten - raiselinks=true, % calculate real height of the link + hidelinks, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, breaklinks=true, % Links ueberstehen Zeilenumbruch @@ -350,7 +348,6 @@ \patchcmd{\@decl@short}{\bbl@info}{\@gobble}{}{} \makeatother - \usepackage[caption=false,font=footnotesize]{subfig} % Alternative for making subfigures: @@ -480,7 +477,6 @@ \autotypelangoptions{ngerman}{ligbreak} \fi - \title{Paper Title} % If Title is too long, use \titlerunning %\titlerunning{Short Title} From fc8ee5c91394903939918d05df172925c0521248 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 09:54:00 +0000 Subject: [PATCH 27/77] Update files based on generated files by template generator --- paper-de-times-listings.tex | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/paper-de-times-listings.tex b/paper-de-times-listings.tex index 757136a..848b44d 100644 --- a/paper-de-times-listings.tex +++ b/paper-de-times-listings.tex @@ -60,7 +60,6 @@ \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother - \ifluatex \usepackage[no-math]{fontspec} \usepackage{unicode-math} @@ -126,8 +125,6 @@ \usepackage{diagbox} \usepackage[dvipsnames, table]{xcolor} -% Für die finale Fassung empfohlen: -%\usepackage[dvipsnames, table, gray]{xcolor} % Code Listings \usepackage{listings} @@ -290,7 +287,7 @@ { } % Put figures aside a text -% Even thought he package is from 1998, it works well +% Even though the package is from 1998, it works well \usepackage[rflt]{floatflt} % Farbige Tabellen @@ -392,15 +389,16 @@ \newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} +\addto\extrasgerman{\sisetup{locale = DE}} % Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document \usepackage{hyperref} % Enable hyperref without colors and without bookmarks \hypersetup{ - hidelinks, - colorlinks=true, % Links erhalten Farben statt Kaeten - raiselinks=true, % calculate real height of the link + hidelinks, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, breaklinks=true, % Links ueberstehen Zeilenumbruch @@ -417,7 +415,6 @@ \patchcmd{\@decl@short}{\bbl@info}{\@gobble}{}{} \makeatother - \usepackage[caption=false,font=footnotesize]{subfig} % Alternative for making subfigures: @@ -543,7 +540,6 @@ \autotypelangoptions{ngerman}{ligbreak} \fi - \title{Paper Title} % If Title is too long, use \titlerunning %\titlerunning{Short Title} From eb9427f401ca3e14a1687dd4812323fd211f0d18 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 10:59:51 +0100 Subject: [PATCH 28/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index fd68b4c..945be24 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit fd68b4c71427761cf86e2bb31fd9b60c345ce6c1 +Subproject commit 945be24704ac6b01df0f32967a26bbfa8551bb6e From 1403d8091c1bb8801b762aa964bac272a60eb1b9 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:00:40 +0000 Subject: [PATCH 29/77] Update files based on generated files by template generator --- Dockerfile | 8 +- README.md | 7 + Texlivefile | 5 - paper-de-default-listings.tex | 282 ++++++++++++++++++++++++++++------ 4 files changed, 241 insertions(+), 61 deletions(-) diff --git a/Dockerfile b/Dockerfile index aaf7e73..47f5810 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,2 @@ -FROM registry.gitlab.com/islandoftex/images/texlive:latest-basic +FROM registry.gitlab.com/islandoftex/images/texlive:latest-latest WORKDIR /workdir - -COPY Texlivefile /workdir/ - -RUN xargs tlmgr install --repository https://tug.ctan.org/systems/texlive/tlnet/ < /workdir/Texlivefile - -RUN tlmgr path add diff --git a/README.md b/README.md index 8338898..c85b5bf 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,9 @@ Following features are enabled in this template: - Provides a skeletal [paper.tex](https://latextemplates.github.io/LNCS/paper.tex) file - Example to have an image being placed right to a text +- Support for German documents (without broken headers): + Contains a fix to increase compatibility with Babel. + See for details. - Automatic setting of "Fig." and "Section"/"Sect." according to the LNCS style. Just use `\Cref{sec:xy}` at the beginning of a sentence and `\cref{sec:xy}` in the middle of a sentence. Thanx to [cleveref]. @@ -147,6 +150,10 @@ The possible options are listed in `paper.tex`. Yes. You can regenerate the template and choose "German" as language. +### Q: `ngerman-x-latest` is reported missing + +Install the package `dehyph-exptl`. + ## Further information - tex.stackexchange.com questions regarding LNCS: diff --git a/Texlivefile b/Texlivefile index 1a5a25d..c8ff3c8 100644 --- a/Texlivefile +++ b/Texlivefile @@ -97,17 +97,12 @@ mathtools mfirstuc microtype mindflow -minted mnsymbol multirow mwe natbib ncctools newcomputermodern -newfloat -newtx -newtxtt -nfssext-cfr ntheorem nowidow paralist diff --git a/paper-de-default-listings.tex b/paper-de-default-listings.tex index d0a7d11..3c0ef78 100644 --- a/paper-de-default-listings.tex +++ b/paper-de-default-listings.tex @@ -3,7 +3,7 @@ % !TeX spellcheck = de-DE % LTeX: language=de-DE % !TeX encoding = utf8 -% !TeX program = pdflatex +% !TeX program = lualatex % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- @@ -11,11 +11,12 @@ % % - easy print out on DIN A4 paper size % -% One can configure a4 vs. letter in the LaTeX installation. So it is configuration dependend, what the paper size will be. -% This option present, because the current word template offered by Springer is DIN A4. -% We accept that DIN A4 cause WTFs at persons not used to A4 in USA. +% One can configure default page size (a4 vs. letter) in the LaTeX installation. +% Thus, it is configuration dependend, what the paper size will be. +% Having "a4paper" option present, the page size is set to A4. +% Note that the current word template offered by Springer is DIN A4. % -% "runningheads": +% "runningheads" führt zu folgendem: % % - zeigt Author + Titel auf jeder Seite. % - Während des Schreibens und das Review des Papers hilft das, um z.B. auf konkrete Seitenzahlen einfach verweisen zu können. @@ -25,11 +26,13 @@ % blindly opening the folder, one could hit not the title page, but an arbitrary page. Therefore, % it is good to have title printed on the pages, too. % -% Diese Option nach Aufforderung durch die Herausgeber entfernen. +% Die Option "runningheads" ist nach Aufforderung durch die Herausgeber entfernen. % % To disable outputting page headers and footers, remove "runningheads" \documentclass[runningheads,a4paper,ngerman]{llncs}[2022/01/12] +\usepackage{iftex} + % backticks (`) werden als solches in verbatim-Umgebungen dargestellt % Details unter: % - https://tex.stackexchange.com/a/341057/9075 @@ -45,26 +48,6 @@ % Hinweis von http://tex.stackexchange.com/a/321066/9075 % Ermögliche die Benutzung von "= als Trennstriche \addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}} -% -% Fix von https://tex.stackexchange.com/a/441701/9075 -\usepackage{regexpatch} -\makeatletter -\edef\switcht@albion{% - \relax\unexpanded\expandafter{\switcht@albion}% -} -\xpatchcmd*{\switcht@albion}{ \def}{\def}{}{} -\xpatchcmd{\switcht@albion}{\relax}{}{}{} -\edef\switcht@deutsch{% - \relax\unexpanded\expandafter{\switcht@deutsch}% -} -\xpatchcmd*{\switcht@deutsch}{ \def}{\def}{}{} -\xpatchcmd{\switcht@deutsch}{\relax}{}{}{} -\edef\switcht@francais{% - \relax\unexpanded\expandafter{\switcht@francais}% -} -\xpatchcmd*{\switcht@francais}{ \def}{\def}{}{} -\xpatchcmd{\switcht@francais}{\relax}{}{}{} -\makeatother % Links verhalten sich so, wie sie sollen % Zeilenumbrüche bei URLs auch bei Bindestrichen erlauben, auch wenn es verwirrend sein könnte: Gehört der Bindestrich zur URL oder ist es ein Trennstrich? @@ -77,6 +60,38 @@ \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother +\ifluatex +\usepackage[no-math]{fontspec} +\usepackage{unicode-math} + +% Typewriter font (for source code etc) +% Use New Computer Modern font (Computer Modern is the default LaTeX font; this is the implemented modern variant) +% Source: https://tug.org/FontCatalogue/newcomputermoderntypewriter/ + +\setmainfont[% +ItalicFont=NewCM10-Italic.otf,% +BoldFont=NewCM10-Bold.otf,% +BoldItalicFont=NewCM10-BoldItalic.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Regular.otf} + +\setsansfont[% +ItalicFont=NewCMSans10-Oblique.otf,% +BoldFont=NewCMSans10-Bold.otf,% +BoldItalicFont=NewCMSans10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf} + +\setmonofont[ItalicFont=NewCMMono10-Italic.otf,% +BoldFont=NewCMMono10-Bold.otf,% +BoldItalicFont=NewCMMono10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf} + +\setmathfont{NewCMMath-Regular.otf} + +% Enable proper ligatures +% For more information see https://ctan.org/pkg/selnolig +% language "english" or "ngerman" is passed to selnolig by the document class +\usepackage{selnolig} +\else % This is the modern package for "Computer Modern". % In case this gets activated, one has to switch from cmap package to glyphtounicode (in the case of pdflatex) \usepackage[% @@ -90,6 +105,7 @@ % Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075. \usepackage[T1]{fontenc} +\fi % Optischer Randausgleich und Grauwertkorrektur. Siehe See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/ @@ -120,7 +136,7 @@ % Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox \usepackage{diagbox} -\usepackage{xcolor} +\usepackage[dvipsnames, table]{xcolor} % Code Listings \usepackage{listings} @@ -161,26 +177,31 @@ } \lstset{ - language=XML, + % everything between (* *) is a latex command + escapeinside={(*}{*)}, + % + language=json, % showstringspaces=false, % extendedchars=true, % - basicstyle=\footnotesize\ttfamily, + basicstyle=\footnotesize\ttfamily, % commentstyle=\slshape, % % Default: \rmfamily, damit werden die Strings im Quellcode hervorgehoben. Zusaetzlich evtl.: \scshape oder \rmfamily durch \ttfamily ersetzen. Dann sieht's aus, wie bei fancyvrb stringstyle=\ttfamily, % - breaklines=true, + breaklines=true, % Zeilen werden umbrochen % breakatwhitespace=true, % % Alternative: fixed columns=flexible, % + tabsize=2, % Groesse von Tabs + % numbers=left, % numberstyle=\tiny, @@ -195,6 +216,7 @@ % captionpos=b } +\ifluatex\else % Ermögliche Umlaute when using \lstinputputlisting. % Siehe https://stackoverflow.com/a/29260603/873282 für Details. @@ -213,6 +235,16 @@ {ű}{{\H{u}}}1 {Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1 {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1 } +\fi + +\lstloadlanguages{% Check dokumentation for further languages... + %[Visual]Basic + %Pascal + %C + %C++ + %XML + %HTML +} % For easy quotations: \enquote{text} % This package is very smart when nesting is applied, otherwise textcmds (see below) provides a shorter command @@ -222,7 +254,10 @@ \defineshorthand{"`}{\openautoquote} \defineshorthand{"'}{\closeautoquote} -% Nicer tables (\toprule, \midrule, \bottomrule) +% bessere Abstaende innerhalb der Tabelle (Layout)) +% ------------------------------------------------- +% \toprule, \midrule, \bottomrule +% Doc: https://texdoc.org/serve/booktabs/0 \usepackage{booktabs} % Extended enumerate, such as \begin{compactenum} @@ -264,24 +299,106 @@ { } % Put figures aside a text +% Even though the package is from 1998, it works well \usepackage[rflt]{floatflt} +% Farbige Tabellen +% ---------------- +% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen +% +% Erweiterte Funktionen innerhalb von Tabellen +% -------------------------------------------- +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty +\usepackage{multirow} % Mehrfachspalten +% +%%% Doc: Documentation inside dtx Package +\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt + +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf +%\usepackage{supertabular} + +%%% Fussnoten/Endnoten =================================================== + +% EN: Put footnotes below floats +% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren +% Source: https://tex.stackexchange.com/a/32993/9075 +\usepackage{stfloats} +\fnbelowfloat + +% EN: Extended support for footnotes +% DE: Fußnoten +% +%\usepackage{dblfnote} %Zweispaltige Fußnoten +% +% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch): +%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}} +% +% Abstand zwischen Fußnoten vergrößern: +%\setlength{\footnotesep}{.85\baselineskip} +% +% EN: Following command disables the separting line of the footnote +% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote +%\renewcommand{\footnoterule}{} +% +%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote + +% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite +% DE: fnpos kommt aus dem yafoot package +%\usepackage{fnpos} +%\makeFNbelow +%\makeFNbottom + +% TODO (and comment) configuration +% +% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs +% - \todofix - "important" TODOs +% +% - \textcomment - highlights text and has a hover comment +% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others) +% +% - \missingfigure +% +% - \textmarker +% - \modified +% - \change - adresses a review comment + % Enable nice comments \usepackage{pdfcomment} -\newcommand{\commentontext}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -\newcommand{\commentatside}[1]{\pdfcomment[color={0.045 0.278 0.643},icon=Note]{#1}} +\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -% Compatibality with packages todo, easy-todo, todonotes -\newcommand{\todo}[1]{\commentatside{#1}} +% Small PDF comment +% 1. Parameter: Comment +\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\sidecomment}[1]{} -% Compatiblity with package fixmetodonotes -\newcommand{\TODO}[1]{\commentatside{#1}} +\newcommand{\todo}[1]{TODO!\sidecomment{#1}} -% Fußnoten unter Gleitumgebungen ("floats") platzieren -% Quelle: https://tex.stackexchange.com/a/32993/9075 -\usepackage{stfloats} -\fnbelowfloat +% Änderungen +% +% 1. Parameter: Review-Kommentar +% 2. Parameter: Neuer Text +\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\change}[2]{#2} + +% Define default commands +\makeatletter +\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{} +\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{} +\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{} +\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{} +\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{} +\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{} +\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{} +\makeatother + +% Textmarker (Textfarbe rot) +\newcommand{\textmarker}[1]{{\color{red} #1}\xspace} + +% Modified (Text blau) +\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} \addto\extrasgerman{\sisetup{locale = DE}} @@ -292,10 +409,12 @@ % Enable hyperref without colors and without bookmarks \hypersetup{ hidelinks, - colorlinks=true, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, - breaklinks=true + breaklinks=true, % Links ueberstehen Zeilenumbruch + hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075 } % Enable correct jumping to figures when referencing @@ -310,6 +429,14 @@ \usepackage[caption=false,font=footnotesize]{subfig} +% Alternative for making subfigures: +% Part of the caption package. See http://www.ctan.org/pkg/caption +% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075 +% +% (subfigure is outdated. subfig is maintained, but subcaption is better) +% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure +%\usepackage[hypcap=true]{subcaption} + \usepackage{mindflow} % cleveref für cref statt autoref, da cleveref auch bei Definitionen funktioniert @@ -357,6 +484,10 @@ \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} \usepackage{xspace} +% Macht \xspace und \enquote kompatibel +\makeatletter +\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } +\makeatother % Enable hyphenation at other places as the dash. % Example: applicaiton\hydash specific @@ -365,8 +496,24 @@ % Definition of "= taken from http://mirror.ctan.org/macros/latex/contrib/babel-contrib/german/ngermanb.dtx \makeatother +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype +% See ADR-0008 for alternatives +\usepackage{autotype} +\fi + % correct bad hyphenation here -\hyphenation{op-tical net-works semi-conduc-tor} +\hyphenation{ + Spe-zi-fi-ka-tion + In-te-gra-tion + An-for-de-rung An-for-de-run-gen + Be-nut-zer-ober-flä-che + Mes-sung-en + aus-zu-tau-schen + Lauf-zeit-in-for-ma-tionen + % May not be hypphenated + AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps +} % Add copyright % @@ -385,6 +532,7 @@ \llncs{book editors and title}{0042} \fi +\ifpdftex % Enable copy and paste of text from the PDF % Only required for pdflatex. It "just works" in the case of lualatex. % Alternative: cmap or mmap package @@ -396,8 +544,13 @@ % According to https://tex.stackexchange.com/q/451235/9075 this is the way to go \input glyphtounicode \pdfgentounicode=1 - +\fi \begin{document} +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype +% See ADR-0008 for alternatives +\autotypelangoptions{ngerman}{ligbreak} +\fi \title{Paper Title} % If Title is too long, use \titlerunning @@ -430,7 +583,7 @@ \maketitle \begin{abstract} - +\lipsum[1] \keywords{First keyword \and Second keyword \and Third keyword} \end{abstract} @@ -453,7 +606,7 @@ \section{Verwandte Arbeiten} Eine Beschreibung relevanter wissenschaftlicher Arbeiten mit Bezug zur eigenen Arbeit. Der Abschnitt kann je nach Kontext auch an anderer Stelle stehen. -Winery~\cite{Winery} is a graphical \commentontext{modeling}{modeling with one ``l'', because of AE} tool. +Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of AE} tool. The whole idea of TOSCA is explained by \citet{Binz2009}. \section{LaTeX Hinweise} @@ -527,6 +680,35 @@ \subsection{Notes separated from the text} \end{mindflow} \end{ltgexample} +\subsection{Handling TODOs} + +\begin{ltgexample} +\textmarker{Markierter Text.} +\end{ltgexample} + +Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert. + +\begin{ltgexample} +\textcomment{Markierter Text.}{Kommentar dazu.} +\end{ltgexample} + +\begin{ltgexample} +\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.} +\end{ltgexample} + +\begin{ltgexample} +Das ist ein Text. +\change{FL1: Text angepasst}{Geänderter Text}. +\end{ltgexample} + +\begin{ltgexample} +Hier nur ein Kommentar\sidecomment{Kommentar}. +\end{ltgexample} + +\begin{ltgexample} +\todo{Hier muss noch kräftig Text produziert werden} +\end{ltgexample} + \subsection{Hyphenation} \LaTeX{} automatically hyphenates words. @@ -623,8 +805,9 @@ \subsection{Abbildungen} \includegraphics[width=.29\linewidth]{example-image-a} \caption{A floating figure} \end{floatingfigure} -\blindtext[2] +\lipsum[2] \end{ltgexample} + \subsection{Sub Figures} An example of two sub figures is shown in \cref{fig:two_sub_figures}. @@ -818,7 +1001,7 @@ \subsubsection*{Danksagungen} \renewcommand{\bibsection}{\section*{Literatur}} % requried for natbib to have "References" printed and as section*, not chapter* % Use natbib compatbile splncs04nat style. % It does provide all features of splncs03, but is developed in a clean way. -% Source: http://phaseportrait.blogspot.de/2011/02/natbib-compatible-bibtex-style-bst-file.html +% Source: https://github.com/tpavlic/splncs04nat \bibliographystyle{splncs04nat} \begingroup \microtypecontext{expansion=sloppy} @@ -829,6 +1012,7 @@ \subsubsection*{Danksagungen} % Enfore empty line after bibliography \ \\ % +\noindent Alle Links wurden zuletzt am 29.03.2021 geprüft. %%% =============================================================================== From 2678624282579ecd4e8083c54d07fb043bf14b26 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:00:41 +0000 Subject: [PATCH 30/77] Update files based on generated files by template generator --- paper-en-default-listings.tex | 261 ++++++++++++++++++++++++++++------ paper.tex | 261 ++++++++++++++++++++++++++++------ 2 files changed, 430 insertions(+), 92 deletions(-) diff --git a/paper-en-default-listings.tex b/paper-en-default-listings.tex index f60ed0f..82b40b0 100644 --- a/paper-en-default-listings.tex +++ b/paper-en-default-listings.tex @@ -3,7 +3,7 @@ % !TeX spellcheck = en-US % LTeX: language=en-US % !TeX encoding = utf8 -% !TeX program = pdflatex +% !TeX program = lualatex % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- @@ -11,9 +11,10 @@ % % - easy print out on DIN A4 paper size % -% One can configure a4 vs. letter in the LaTeX installation. So it is configuration dependend, what the paper size will be. -% This option present, because the current word template offered by Springer is DIN A4. -% We accept that DIN A4 cause WTFs at persons not used to A4 in USA. +% One can configure default page size (a4 vs. letter) in the LaTeX installation. +% Thus, it is configuration dependend, what the paper size will be. +% Having "a4paper" option present, the page size is set to A4. +% Note that the current word template offered by Springer is DIN A4. % % "runningheads" enables: % @@ -25,9 +26,13 @@ % blindly opening the folder, one could hit not the title page, but an arbitrary page. Therefore, % it is good to have title printed on the pages, too. % +% The optiion "runningheads" neesd to be removed upon request of the publisher. +% % To disable outputting page headers and footers, remove "runningheads" \documentclass[runningheads,a4paper,english]{llncs}[2022/01/12] +\usepackage{iftex} + % backticks (`) are rendered as such in verbatim environments. % See following links for details: % - https://tex.stackexchange.com/a/341057/9075 @@ -43,26 +48,6 @@ % % Hint by http://tex.stackexchange.com/a/321066/9075 -> enable "= as dashes \addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}} -% -% Fix by https://tex.stackexchange.com/a/441701/9075 -\usepackage{regexpatch} -\makeatletter -\edef\switcht@albion{% - \relax\unexpanded\expandafter{\switcht@albion}% -} -\xpatchcmd*{\switcht@albion}{ \def}{\def}{}{} -\xpatchcmd{\switcht@albion}{\relax}{}{}{} -\edef\switcht@deutsch{% - \relax\unexpanded\expandafter{\switcht@deutsch}% -} -\xpatchcmd*{\switcht@deutsch}{ \def}{\def}{}{} -\xpatchcmd{\switcht@deutsch}{\relax}{}{}{} -\edef\switcht@francais{% - \relax\unexpanded\expandafter{\switcht@francais}% -} -\xpatchcmd*{\switcht@francais}{ \def}{\def}{}{} -\xpatchcmd{\switcht@francais}{\relax}{}{}{} -\makeatother % Links behave as they should. Enables "\url{...}" for URL typesettings. % Allow URL breaks also at a hyphen, even though it might be confusing: Is the "-" part of the address or just a hyphen? @@ -85,6 +70,38 @@ %\g@addto@macro\UrlSpecials{\do\/{\Url@twoslashes}} %\makeatother +\ifluatex +\usepackage[no-math]{fontspec} +\usepackage{unicode-math} + +% Typewriter font (for source code etc) +% Use New Computer Modern font (Computer Modern is the default LaTeX font; this is the implemented modern variant) +% Source: https://tug.org/FontCatalogue/newcomputermoderntypewriter/ + +\setmainfont[% +ItalicFont=NewCM10-Italic.otf,% +BoldFont=NewCM10-Bold.otf,% +BoldItalicFont=NewCM10-BoldItalic.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Regular.otf} + +\setsansfont[% +ItalicFont=NewCMSans10-Oblique.otf,% +BoldFont=NewCMSans10-Bold.otf,% +BoldItalicFont=NewCMSans10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf} + +\setmonofont[ItalicFont=NewCMMono10-Italic.otf,% +BoldFont=NewCMMono10-Bold.otf,% +BoldItalicFont=NewCMMono10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf} + +\setmathfont{NewCMMath-Regular.otf} + +% Enable proper ligatures +% For more information see https://ctan.org/pkg/selnolig +% language "english" or "ngerman" is passed to selnolig by the document class +\usepackage{selnolig} +\else % This is the modern package for "Computer Modern". % In case this gets activated, one has to switch from cmap package to glyphtounicode (in the case of pdflatex) \usepackage[% @@ -98,6 +115,7 @@ % Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075. \usepackage[T1]{fontenc} +\fi % Character protrusion and font expansion. See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/ @@ -123,8 +141,7 @@ % Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox \usepackage{diagbox} -\usepackage{xcolor} - +\usepackage[dvipsnames, table]{xcolor} % Code Listings \usepackage{listings} @@ -173,20 +190,22 @@ % extendedchars=true, % - basicstyle=\footnotesize\ttfamily, + basicstyle=\footnotesize\ttfamily, % commentstyle=\slshape, % % default: \rmfamily stringstyle=\ttfamily, % - breaklines=true, + breaklines=true, % Zeilen werden umbrochen % breakatwhitespace=true, % % alternative: fixed columns=flexible, % + tabsize=2, % Groesse von Tabs + % numbers=left, % numberstyle=\tiny, @@ -201,6 +220,7 @@ % captionpos=b } +\ifluatex\else % Enable Umlauts when using \lstinputputlisting. % See https://stackoverflow.com/a/29260603/873282 für details. @@ -219,6 +239,16 @@ {ű}{{\H{u}}}1 {Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1 {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1 } +\fi + +\lstloadlanguages{% Check dokumentation for further languages... + %[Visual]Basic + %Pascal + %C + %C++ + %XML + %HTML +} % For easy quotations: \enquote{text} % This package is very smart when nesting is applied, otherwise textcmds (see below) provides a shorter command @@ -270,25 +300,107 @@ { } % Put figures aside a text +% Even though the package is from 1998, it works well \usepackage[rflt]{floatflt} -% Enable nice comments -\usepackage{pdfcomment} - -\newcommand{\commentontext}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -\newcommand{\commentatside}[1]{\pdfcomment[color={0.045 0.278 0.643},icon=Note]{#1}} +% Farbige Tabellen +% ---------------- +% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen +% +% Erweiterte Funktionen innerhalb von Tabellen +% -------------------------------------------- +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty +\usepackage{multirow} % Mehrfachspalten +% +%%% Doc: Documentation inside dtx Package +\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt -% Compatibality with packages todo, easy-todo, todonotes -\newcommand{\todo}[1]{\commentatside{#1}} +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf +%\usepackage{supertabular} -% Compatiblity with package fixmetodonotes -\newcommand{\TODO}[1]{\commentatside{#1}} +%%% Fussnoten/Endnoten =================================================== -% Put footnotes below floats +% EN: Put footnotes below floats +% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren % Source: https://tex.stackexchange.com/a/32993/9075 \usepackage{stfloats} \fnbelowfloat +% EN: Extended support for footnotes +% DE: Fußnoten +% +%\usepackage{dblfnote} %Zweispaltige Fußnoten +% +% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch): +%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}} +% +% Abstand zwischen Fußnoten vergrößern: +%\setlength{\footnotesep}{.85\baselineskip} +% +% EN: Following command disables the separting line of the footnote +% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote +%\renewcommand{\footnoterule}{} +% +%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote + +% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite +% DE: fnpos kommt aus dem yafoot package +%\usepackage{fnpos} +%\makeFNbelow +%\makeFNbottom + +% TODO (and comment) configuration +% +% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs +% - \todofix - "important" TODOs +% +% - \textcomment - highlights text and has a hover comment +% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others) +% +% - \missingfigure +% +% - \textmarker +% - \modified +% - \change - adresses a review comment + +% Enable nice comments +\usepackage{pdfcomment} + +\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} + +% Small PDF comment +% 1. Parameter: Comment +\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\sidecomment}[1]{} + +\newcommand{\todo}[1]{TODO!\sidecomment{#1}} + +% Änderungen +% +% 1. Parameter: Review-Kommentar +% 2. Parameter: Neuer Text +\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\change}[2]{#2} + +% Define default commands +\makeatletter +\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{} +\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{} +\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{} +\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{} +\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{} +\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{} +\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{} +\makeatother + +% Textmarker (Textfarbe rot) +\newcommand{\textmarker}[1]{{\color{red} #1}\xspace} + +% Modified (Text blau) +\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} + \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} % Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document @@ -297,17 +409,28 @@ % Enable hyperref without colors and without bookmarks \hypersetup{ hidelinks, - colorlinks=true, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, - breaklinks=true + breaklinks=true, % Links ueberstehen Zeilenumbruch + hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075 } % Enable correct jumping to figures when referencing \usepackage[all]{hypcap} + \usepackage[caption=false,font=footnotesize]{subfig} +% Alternative for making subfigures: +% Part of the caption package. See http://www.ctan.org/pkg/caption +% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075 +% +% (subfigure is outdated. subfig is maintained, but subcaption is better) +% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure +%\usepackage[hypcap=true]{subcaption} + \usepackage{mindflow} % Extensions for references inside the document (\cref{fig:sample}, ...) @@ -347,7 +470,13 @@ }{} \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} +% Allows for defining commands that don't eat spaces. \usepackage{xspace} +% Adds compatibility to \xspace und \enquote kompatibel +\makeatletter +\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } +\makeatother + \newcommand{\eg}{e.g.,\ } \newcommand{\ie}{i.e.,\ } @@ -360,11 +489,20 @@ % Add manual adapted hyphenation of English words % See https://ctan.org/pkg/hyphenex and https://tex.stackexchange.com/a/22892/9075 for details -% Does not work on MiKTeX, therefore disabled - issue reported at https://github.com/MiKTeX/miktex-packaging/issues/271 -% \input{ushyphex} +\input{ushyphex} + +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/selnolig +% See ADR-0009 for alternatives +\usepackage{selnolig} +\fi % correct bad hyphenation here -\hyphenation{op-tical net-works semi-conduc-tor} +\hyphenation{ + op-tical net-works semi-conduc-tor + % May not be hypphenated + AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps +} % Add copyright % @@ -383,6 +521,7 @@ \llncs{book editors and title}{0042} \fi +\ifpdftex % Enable copy and paste of text from the PDF % Only required for pdflatex. It "just works" in the case of lualatex. % Alternative: cmap or mmap package @@ -394,7 +533,7 @@ % According to https://tex.stackexchange.com/q/451235/9075 this is the way to go \input glyphtounicode \pdfgentounicode=1 - +\fi \begin{document} \title{Paper Title} @@ -445,7 +584,7 @@ \section{Introduction} \section{Related Work} \label{sec:relatedwork} -Winery~\cite{Winery} is a graphical \commentontext{modeling}{modeling with one ``l'', because of AE} tool. +Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of AE} tool. The whole idea of TOSCA is explained by \citet{Binz2009}. \section{LaTeX Hints} @@ -520,6 +659,35 @@ \subsection{Notes separated from the text} \end{mindflow} \end{ltgexample} +\subsection{Handling TODOs} + +\begin{ltgexample} +\textmarker{Markierter Text.} +\end{ltgexample} + +Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert. + +\begin{ltgexample} +\textcomment{Markierter Text.}{Kommentar dazu.} +\end{ltgexample} + +\begin{ltgexample} +\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.} +\end{ltgexample} + +\begin{ltgexample} +Das ist ein Text. +\change{FL1: Text angepasst}{Geänderter Text}. +\end{ltgexample} + +\begin{ltgexample} +Hier nur ein Kommentar\sidecomment{Kommentar}. +\end{ltgexample} + +\begin{ltgexample} +\todo{Hier muss noch kräftig Text produziert werden} +\end{ltgexample} + \subsection{Hyphenation} \LaTeX{} automatically hyphenates words. @@ -616,7 +784,7 @@ \subsection{Figures} \includegraphics[width=.29\linewidth]{example-image-a} \caption{A floating figure} \end{floatingfigure} -\blindtext[2] +\lipsum[2] \end{ltgexample} \subsection{Sub Figures} @@ -819,6 +987,7 @@ \subsubsection*{Acknowledgments} % Enfore empty line after bibliography \ \\ % +\noindent All links were last followed on October 5, 2020. %%% =============================================================================== diff --git a/paper.tex b/paper.tex index f60ed0f..82b40b0 100644 --- a/paper.tex +++ b/paper.tex @@ -3,7 +3,7 @@ % !TeX spellcheck = en-US % LTeX: language=en-US % !TeX encoding = utf8 -% !TeX program = pdflatex +% !TeX program = lualatex % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- @@ -11,9 +11,10 @@ % % - easy print out on DIN A4 paper size % -% One can configure a4 vs. letter in the LaTeX installation. So it is configuration dependend, what the paper size will be. -% This option present, because the current word template offered by Springer is DIN A4. -% We accept that DIN A4 cause WTFs at persons not used to A4 in USA. +% One can configure default page size (a4 vs. letter) in the LaTeX installation. +% Thus, it is configuration dependend, what the paper size will be. +% Having "a4paper" option present, the page size is set to A4. +% Note that the current word template offered by Springer is DIN A4. % % "runningheads" enables: % @@ -25,9 +26,13 @@ % blindly opening the folder, one could hit not the title page, but an arbitrary page. Therefore, % it is good to have title printed on the pages, too. % +% The optiion "runningheads" neesd to be removed upon request of the publisher. +% % To disable outputting page headers and footers, remove "runningheads" \documentclass[runningheads,a4paper,english]{llncs}[2022/01/12] +\usepackage{iftex} + % backticks (`) are rendered as such in verbatim environments. % See following links for details: % - https://tex.stackexchange.com/a/341057/9075 @@ -43,26 +48,6 @@ % % Hint by http://tex.stackexchange.com/a/321066/9075 -> enable "= as dashes \addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}} -% -% Fix by https://tex.stackexchange.com/a/441701/9075 -\usepackage{regexpatch} -\makeatletter -\edef\switcht@albion{% - \relax\unexpanded\expandafter{\switcht@albion}% -} -\xpatchcmd*{\switcht@albion}{ \def}{\def}{}{} -\xpatchcmd{\switcht@albion}{\relax}{}{}{} -\edef\switcht@deutsch{% - \relax\unexpanded\expandafter{\switcht@deutsch}% -} -\xpatchcmd*{\switcht@deutsch}{ \def}{\def}{}{} -\xpatchcmd{\switcht@deutsch}{\relax}{}{}{} -\edef\switcht@francais{% - \relax\unexpanded\expandafter{\switcht@francais}% -} -\xpatchcmd*{\switcht@francais}{ \def}{\def}{}{} -\xpatchcmd{\switcht@francais}{\relax}{}{}{} -\makeatother % Links behave as they should. Enables "\url{...}" for URL typesettings. % Allow URL breaks also at a hyphen, even though it might be confusing: Is the "-" part of the address or just a hyphen? @@ -85,6 +70,38 @@ %\g@addto@macro\UrlSpecials{\do\/{\Url@twoslashes}} %\makeatother +\ifluatex +\usepackage[no-math]{fontspec} +\usepackage{unicode-math} + +% Typewriter font (for source code etc) +% Use New Computer Modern font (Computer Modern is the default LaTeX font; this is the implemented modern variant) +% Source: https://tug.org/FontCatalogue/newcomputermoderntypewriter/ + +\setmainfont[% +ItalicFont=NewCM10-Italic.otf,% +BoldFont=NewCM10-Bold.otf,% +BoldItalicFont=NewCM10-BoldItalic.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Regular.otf} + +\setsansfont[% +ItalicFont=NewCMSans10-Oblique.otf,% +BoldFont=NewCMSans10-Bold.otf,% +BoldItalicFont=NewCMSans10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf} + +\setmonofont[ItalicFont=NewCMMono10-Italic.otf,% +BoldFont=NewCMMono10-Bold.otf,% +BoldItalicFont=NewCMMono10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf} + +\setmathfont{NewCMMath-Regular.otf} + +% Enable proper ligatures +% For more information see https://ctan.org/pkg/selnolig +% language "english" or "ngerman" is passed to selnolig by the document class +\usepackage{selnolig} +\else % This is the modern package for "Computer Modern". % In case this gets activated, one has to switch from cmap package to glyphtounicode (in the case of pdflatex) \usepackage[% @@ -98,6 +115,7 @@ % Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075. \usepackage[T1]{fontenc} +\fi % Character protrusion and font expansion. See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/ @@ -123,8 +141,7 @@ % Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox \usepackage{diagbox} -\usepackage{xcolor} - +\usepackage[dvipsnames, table]{xcolor} % Code Listings \usepackage{listings} @@ -173,20 +190,22 @@ % extendedchars=true, % - basicstyle=\footnotesize\ttfamily, + basicstyle=\footnotesize\ttfamily, % commentstyle=\slshape, % % default: \rmfamily stringstyle=\ttfamily, % - breaklines=true, + breaklines=true, % Zeilen werden umbrochen % breakatwhitespace=true, % % alternative: fixed columns=flexible, % + tabsize=2, % Groesse von Tabs + % numbers=left, % numberstyle=\tiny, @@ -201,6 +220,7 @@ % captionpos=b } +\ifluatex\else % Enable Umlauts when using \lstinputputlisting. % See https://stackoverflow.com/a/29260603/873282 für details. @@ -219,6 +239,16 @@ {ű}{{\H{u}}}1 {Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1 {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1 } +\fi + +\lstloadlanguages{% Check dokumentation for further languages... + %[Visual]Basic + %Pascal + %C + %C++ + %XML + %HTML +} % For easy quotations: \enquote{text} % This package is very smart when nesting is applied, otherwise textcmds (see below) provides a shorter command @@ -270,25 +300,107 @@ { } % Put figures aside a text +% Even though the package is from 1998, it works well \usepackage[rflt]{floatflt} -% Enable nice comments -\usepackage{pdfcomment} - -\newcommand{\commentontext}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -\newcommand{\commentatside}[1]{\pdfcomment[color={0.045 0.278 0.643},icon=Note]{#1}} +% Farbige Tabellen +% ---------------- +% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen +% +% Erweiterte Funktionen innerhalb von Tabellen +% -------------------------------------------- +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty +\usepackage{multirow} % Mehrfachspalten +% +%%% Doc: Documentation inside dtx Package +\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt -% Compatibality with packages todo, easy-todo, todonotes -\newcommand{\todo}[1]{\commentatside{#1}} +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf +%\usepackage{supertabular} -% Compatiblity with package fixmetodonotes -\newcommand{\TODO}[1]{\commentatside{#1}} +%%% Fussnoten/Endnoten =================================================== -% Put footnotes below floats +% EN: Put footnotes below floats +% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren % Source: https://tex.stackexchange.com/a/32993/9075 \usepackage{stfloats} \fnbelowfloat +% EN: Extended support for footnotes +% DE: Fußnoten +% +%\usepackage{dblfnote} %Zweispaltige Fußnoten +% +% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch): +%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}} +% +% Abstand zwischen Fußnoten vergrößern: +%\setlength{\footnotesep}{.85\baselineskip} +% +% EN: Following command disables the separting line of the footnote +% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote +%\renewcommand{\footnoterule}{} +% +%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote + +% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite +% DE: fnpos kommt aus dem yafoot package +%\usepackage{fnpos} +%\makeFNbelow +%\makeFNbottom + +% TODO (and comment) configuration +% +% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs +% - \todofix - "important" TODOs +% +% - \textcomment - highlights text and has a hover comment +% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others) +% +% - \missingfigure +% +% - \textmarker +% - \modified +% - \change - adresses a review comment + +% Enable nice comments +\usepackage{pdfcomment} + +\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} + +% Small PDF comment +% 1. Parameter: Comment +\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\sidecomment}[1]{} + +\newcommand{\todo}[1]{TODO!\sidecomment{#1}} + +% Änderungen +% +% 1. Parameter: Review-Kommentar +% 2. Parameter: Neuer Text +\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\change}[2]{#2} + +% Define default commands +\makeatletter +\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{} +\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{} +\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{} +\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{} +\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{} +\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{} +\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{} +\makeatother + +% Textmarker (Textfarbe rot) +\newcommand{\textmarker}[1]{{\color{red} #1}\xspace} + +% Modified (Text blau) +\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} + \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} % Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document @@ -297,17 +409,28 @@ % Enable hyperref without colors and without bookmarks \hypersetup{ hidelinks, - colorlinks=true, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, - breaklinks=true + breaklinks=true, % Links ueberstehen Zeilenumbruch + hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075 } % Enable correct jumping to figures when referencing \usepackage[all]{hypcap} + \usepackage[caption=false,font=footnotesize]{subfig} +% Alternative for making subfigures: +% Part of the caption package. See http://www.ctan.org/pkg/caption +% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075 +% +% (subfigure is outdated. subfig is maintained, but subcaption is better) +% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure +%\usepackage[hypcap=true]{subcaption} + \usepackage{mindflow} % Extensions for references inside the document (\cref{fig:sample}, ...) @@ -347,7 +470,13 @@ }{} \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} +% Allows for defining commands that don't eat spaces. \usepackage{xspace} +% Adds compatibility to \xspace und \enquote kompatibel +\makeatletter +\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } +\makeatother + \newcommand{\eg}{e.g.,\ } \newcommand{\ie}{i.e.,\ } @@ -360,11 +489,20 @@ % Add manual adapted hyphenation of English words % See https://ctan.org/pkg/hyphenex and https://tex.stackexchange.com/a/22892/9075 for details -% Does not work on MiKTeX, therefore disabled - issue reported at https://github.com/MiKTeX/miktex-packaging/issues/271 -% \input{ushyphex} +\input{ushyphex} + +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/selnolig +% See ADR-0009 for alternatives +\usepackage{selnolig} +\fi % correct bad hyphenation here -\hyphenation{op-tical net-works semi-conduc-tor} +\hyphenation{ + op-tical net-works semi-conduc-tor + % May not be hypphenated + AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps +} % Add copyright % @@ -383,6 +521,7 @@ \llncs{book editors and title}{0042} \fi +\ifpdftex % Enable copy and paste of text from the PDF % Only required for pdflatex. It "just works" in the case of lualatex. % Alternative: cmap or mmap package @@ -394,7 +533,7 @@ % According to https://tex.stackexchange.com/q/451235/9075 this is the way to go \input glyphtounicode \pdfgentounicode=1 - +\fi \begin{document} \title{Paper Title} @@ -445,7 +584,7 @@ \section{Introduction} \section{Related Work} \label{sec:relatedwork} -Winery~\cite{Winery} is a graphical \commentontext{modeling}{modeling with one ``l'', because of AE} tool. +Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of AE} tool. The whole idea of TOSCA is explained by \citet{Binz2009}. \section{LaTeX Hints} @@ -520,6 +659,35 @@ \subsection{Notes separated from the text} \end{mindflow} \end{ltgexample} +\subsection{Handling TODOs} + +\begin{ltgexample} +\textmarker{Markierter Text.} +\end{ltgexample} + +Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert. + +\begin{ltgexample} +\textcomment{Markierter Text.}{Kommentar dazu.} +\end{ltgexample} + +\begin{ltgexample} +\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.} +\end{ltgexample} + +\begin{ltgexample} +Das ist ein Text. +\change{FL1: Text angepasst}{Geänderter Text}. +\end{ltgexample} + +\begin{ltgexample} +Hier nur ein Kommentar\sidecomment{Kommentar}. +\end{ltgexample} + +\begin{ltgexample} +\todo{Hier muss noch kräftig Text produziert werden} +\end{ltgexample} + \subsection{Hyphenation} \LaTeX{} automatically hyphenates words. @@ -616,7 +784,7 @@ \subsection{Figures} \includegraphics[width=.29\linewidth]{example-image-a} \caption{A floating figure} \end{floatingfigure} -\blindtext[2] +\lipsum[2] \end{ltgexample} \subsection{Sub Figures} @@ -819,6 +987,7 @@ \subsubsection*{Acknowledgments} % Enfore empty line after bibliography \ \\ % +\noindent All links were last followed on October 5, 2020. %%% =============================================================================== From d6e14c7749a50adf6807d8e68b6b0143409530c8 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 11:07:28 +0100 Subject: [PATCH 31/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 945be24..c992a52 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 945be24704ac6b01df0f32967a26bbfa8551bb6e +Subproject commit c992a52a83eb9743ae49591a7a2dfe832b5a9771 From 3f80fe7c3ebec204062f1930ff816f8212816c93 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:08:11 +0000 Subject: [PATCH 32/77] Update files based on generated files by template generator --- Texlivefile | 5 +++++ paper-de-times-listings.tex | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Texlivefile b/Texlivefile index c8ff3c8..1a5a25d 100644 --- a/Texlivefile +++ b/Texlivefile @@ -97,12 +97,17 @@ mathtools mfirstuc microtype mindflow +minted mnsymbol multirow mwe natbib ncctools newcomputermodern +newfloat +newtx +newtxtt +nfssext-cfr ntheorem nowidow paralist diff --git a/paper-de-times-listings.tex b/paper-de-times-listings.tex index 848b44d..67037dc 100644 --- a/paper-de-times-listings.tex +++ b/paper-de-times-listings.tex @@ -175,7 +175,7 @@ extendedchars=true, % basicstyle=\footnotesize\ttfamily, - % + % commentstyle=\slshape, % % Default: \rmfamily, damit werden die Strings im Quellcode hervorgehoben. Zusaetzlich evtl.: \scshape oder \rmfamily durch \ttfamily ersetzen. Dann sieht's aus, wie bei fancyvrb From cef443591c9d16f0382b5387adf6bf211ec093fb Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:08:12 +0000 Subject: [PATCH 33/77] Update files based on generated files by template generator --- paper-en-default-minted.tex | 250 +++++++++++++++++++++++++++++------- 1 file changed, 203 insertions(+), 47 deletions(-) diff --git a/paper-en-default-minted.tex b/paper-en-default-minted.tex index 429ce0a..e815a5a 100644 --- a/paper-en-default-minted.tex +++ b/paper-en-default-minted.tex @@ -3,8 +3,7 @@ % !TeX spellcheck = en-US % LTeX: language=en-US % !TeX encoding = utf8 -% !TeX program = pdflatex -% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape] +% !TeX program = lualatex % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- @@ -12,9 +11,10 @@ % % - easy print out on DIN A4 paper size % -% One can configure a4 vs. letter in the LaTeX installation. So it is configuration dependend, what the paper size will be. -% This option present, because the current word template offered by Springer is DIN A4. -% We accept that DIN A4 cause WTFs at persons not used to A4 in USA. +% One can configure default page size (a4 vs. letter) in the LaTeX installation. +% Thus, it is configuration dependend, what the paper size will be. +% Having "a4paper" option present, the page size is set to A4. +% Note that the current word template offered by Springer is DIN A4. % % "runningheads" enables: % @@ -26,9 +26,13 @@ % blindly opening the folder, one could hit not the title page, but an arbitrary page. Therefore, % it is good to have title printed on the pages, too. % +% The optiion "runningheads" neesd to be removed upon request of the publisher. +% % To disable outputting page headers and footers, remove "runningheads" \documentclass[runningheads,a4paper,english]{llncs}[2022/01/12] +\usepackage{iftex} + % backticks (`) are rendered as such in verbatim environments. % See following links for details: % - https://tex.stackexchange.com/a/341057/9075 @@ -44,26 +48,6 @@ % % Hint by http://tex.stackexchange.com/a/321066/9075 -> enable "= as dashes \addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}} -% -% Fix by https://tex.stackexchange.com/a/441701/9075 -\usepackage{regexpatch} -\makeatletter -\edef\switcht@albion{% - \relax\unexpanded\expandafter{\switcht@albion}% -} -\xpatchcmd*{\switcht@albion}{ \def}{\def}{}{} -\xpatchcmd{\switcht@albion}{\relax}{}{}{} -\edef\switcht@deutsch{% - \relax\unexpanded\expandafter{\switcht@deutsch}% -} -\xpatchcmd*{\switcht@deutsch}{ \def}{\def}{}{} -\xpatchcmd{\switcht@deutsch}{\relax}{}{}{} -\edef\switcht@francais{% - \relax\unexpanded\expandafter{\switcht@francais}% -} -\xpatchcmd*{\switcht@francais}{ \def}{\def}{}{} -\xpatchcmd{\switcht@francais}{\relax}{}{}{} -\makeatother % Links behave as they should. Enables "\url{...}" for URL typesettings. % Allow URL breaks also at a hyphen, even though it might be confusing: Is the "-" part of the address or just a hyphen? @@ -86,6 +70,38 @@ %\g@addto@macro\UrlSpecials{\do\/{\Url@twoslashes}} %\makeatother +\ifluatex +\usepackage[no-math]{fontspec} +\usepackage{unicode-math} + +% Typewriter font (for source code etc) +% Use New Computer Modern font (Computer Modern is the default LaTeX font; this is the implemented modern variant) +% Source: https://tug.org/FontCatalogue/newcomputermoderntypewriter/ + +\setmainfont[% +ItalicFont=NewCM10-Italic.otf,% +BoldFont=NewCM10-Bold.otf,% +BoldItalicFont=NewCM10-BoldItalic.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Regular.otf} + +\setsansfont[% +ItalicFont=NewCMSans10-Oblique.otf,% +BoldFont=NewCMSans10-Bold.otf,% +BoldItalicFont=NewCMSans10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf} + +\setmonofont[ItalicFont=NewCMMono10-Italic.otf,% +BoldFont=NewCMMono10-Bold.otf,% +BoldItalicFont=NewCMMono10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf} + +\setmathfont{NewCMMath-Regular.otf} + +% Enable proper ligatures +% For more information see https://ctan.org/pkg/selnolig +% language "english" or "ngerman" is passed to selnolig by the document class +\usepackage{selnolig} +\else % This is the modern package for "Computer Modern". % In case this gets activated, one has to switch from cmap package to glyphtounicode (in the case of pdflatex) \usepackage[% @@ -99,6 +115,7 @@ % Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075. \usepackage[T1]{fontenc} +\fi % Character protrusion and font expansion. See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/ @@ -124,8 +141,8 @@ % Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox \usepackage{diagbox} -\usepackage{xcolor} - +\usepackage[dvipsnames, table]{xcolor} +% See https://github.com/gpoore/minted \usepackage[newfloat]{minted} \setminted{ @@ -142,9 +159,9 @@ % breakbytokenanywhere=true } -\usemintedstyle{bw} %black and white style +%\usemintedstyle{bw} %black and white style %\usemintedstyle{vs} %visual studio -%\usemintedstyle{friendlygrayscale} % custom style - submitted as pull request https://bitbucket.org/birkenfeld/pygments-main/pull-requests/748/add-style-friendly-grayscale/diff +\usemintedstyle{friendly_grayscale} %\usemintedstyle{friendly} %\usemintedstyle{eclipse} %http://www.jevon.org/wiki/Eclipse_Pygments_Style %\usemintedstyle{autumn} @@ -216,25 +233,107 @@ { } % Put figures aside a text +% Even though the package is from 1998, it works well \usepackage[rflt]{floatflt} -% Enable nice comments -\usepackage{pdfcomment} - -\newcommand{\commentontext}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -\newcommand{\commentatside}[1]{\pdfcomment[color={0.045 0.278 0.643},icon=Note]{#1}} +% Farbige Tabellen +% ---------------- +% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen +% +% Erweiterte Funktionen innerhalb von Tabellen +% -------------------------------------------- +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty +\usepackage{multirow} % Mehrfachspalten +% +%%% Doc: Documentation inside dtx Package +\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt -% Compatibality with packages todo, easy-todo, todonotes -\newcommand{\todo}[1]{\commentatside{#1}} +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf +%\usepackage{supertabular} -% Compatiblity with package fixmetodonotes -\newcommand{\TODO}[1]{\commentatside{#1}} +%%% Fussnoten/Endnoten =================================================== -% Put footnotes below floats +% EN: Put footnotes below floats +% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren % Source: https://tex.stackexchange.com/a/32993/9075 \usepackage{stfloats} \fnbelowfloat +% EN: Extended support for footnotes +% DE: Fußnoten +% +%\usepackage{dblfnote} %Zweispaltige Fußnoten +% +% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch): +%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}} +% +% Abstand zwischen Fußnoten vergrößern: +%\setlength{\footnotesep}{.85\baselineskip} +% +% EN: Following command disables the separting line of the footnote +% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote +%\renewcommand{\footnoterule}{} +% +%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote + +% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite +% DE: fnpos kommt aus dem yafoot package +%\usepackage{fnpos} +%\makeFNbelow +%\makeFNbottom + +% TODO (and comment) configuration +% +% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs +% - \todofix - "important" TODOs +% +% - \textcomment - highlights text and has a hover comment +% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others) +% +% - \missingfigure +% +% - \textmarker +% - \modified +% - \change - adresses a review comment + +% Enable nice comments +\usepackage{pdfcomment} + +\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} + +% Small PDF comment +% 1. Parameter: Comment +\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\sidecomment}[1]{} + +\newcommand{\todo}[1]{TODO!\sidecomment{#1}} + +% Änderungen +% +% 1. Parameter: Review-Kommentar +% 2. Parameter: Neuer Text +\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\change}[2]{#2} + +% Define default commands +\makeatletter +\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{} +\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{} +\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{} +\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{} +\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{} +\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{} +\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{} +\makeatother + +% Textmarker (Textfarbe rot) +\newcommand{\textmarker}[1]{{\color{red} #1}\xspace} + +% Modified (Text blau) +\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} + \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} % Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document @@ -243,17 +342,28 @@ % Enable hyperref without colors and without bookmarks \hypersetup{ hidelinks, - colorlinks=true, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, - breaklinks=true + breaklinks=true, % Links ueberstehen Zeilenumbruch + hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075 } % Enable correct jumping to figures when referencing \usepackage[all]{hypcap} + \usepackage[caption=false,font=footnotesize]{subfig} +% Alternative for making subfigures: +% Part of the caption package. See http://www.ctan.org/pkg/caption +% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075 +% +% (subfigure is outdated. subfig is maintained, but subcaption is better) +% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure +%\usepackage[hypcap=true]{subcaption} + \usepackage{mindflow} % Extensions for references inside the document (\cref{fig:sample}, ...) @@ -295,7 +405,13 @@ }{} \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} +% Allows for defining commands that don't eat spaces. \usepackage{xspace} +% Adds compatibility to \xspace und \enquote kompatibel +\makeatletter +\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } +\makeatother + \newcommand{\eg}{e.g.,\ } \newcommand{\ie}{i.e.,\ } @@ -308,11 +424,20 @@ % Add manual adapted hyphenation of English words % See https://ctan.org/pkg/hyphenex and https://tex.stackexchange.com/a/22892/9075 for details -% Does not work on MiKTeX, therefore disabled - issue reported at https://github.com/MiKTeX/miktex-packaging/issues/271 -% \input{ushyphex} +\input{ushyphex} + +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/selnolig +% See ADR-0009 for alternatives +\usepackage{selnolig} +\fi % correct bad hyphenation here -\hyphenation{op-tical net-works semi-conduc-tor} +\hyphenation{ + op-tical net-works semi-conduc-tor + % May not be hypphenated + AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps +} % Add copyright % @@ -331,6 +456,7 @@ \llncs{book editors and title}{0042} \fi +\ifpdftex % Enable copy and paste of text from the PDF % Only required for pdflatex. It "just works" in the case of lualatex. % Alternative: cmap or mmap package @@ -342,7 +468,7 @@ % According to https://tex.stackexchange.com/q/451235/9075 this is the way to go \input glyphtounicode \pdfgentounicode=1 - +\fi \begin{document} \title{Paper Title} @@ -393,7 +519,7 @@ \section{Introduction} \section{Related Work} \label{sec:relatedwork} -Winery~\cite{Winery} is a graphical \commentontext{modeling}{modeling with one ``l'', because of AE} tool. +Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of AE} tool. The whole idea of TOSCA is explained by \citet{Binz2009}. \section{LaTeX Hints} @@ -464,6 +590,35 @@ \subsection{Notes separated from the text} \end{mindflow} \end{ltgexample} +\subsection{Handling TODOs} + +\begin{ltgexample} +\textmarker{Markierter Text.} +\end{ltgexample} + +Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert. + +\begin{ltgexample} +\textcomment{Markierter Text.}{Kommentar dazu.} +\end{ltgexample} + +\begin{ltgexample} +\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.} +\end{ltgexample} + +\begin{ltgexample} +Das ist ein Text. +\change{FL1: Text angepasst}{Geänderter Text}. +\end{ltgexample} + +\begin{ltgexample} +Hier nur ein Kommentar\sidecomment{Kommentar}. +\end{ltgexample} + +\begin{ltgexample} +\todo{Hier muss noch kräftig Text produziert werden} +\end{ltgexample} + \subsection{Hyphenation} \LaTeX{} automatically hyphenates words. @@ -560,7 +715,7 @@ \subsection{Figures} \includegraphics[width=.29\linewidth]{example-image-a} \caption{A floating figure} \end{floatingfigure} -\blindtext[2] +\lipsum[2] \end{ltgexample} \subsection{Sub Figures} @@ -749,6 +904,7 @@ \subsubsection*{Acknowledgments} % Enfore empty line after bibliography \ \\ % +\noindent All links were last followed on October 5, 2020. %%% =============================================================================== From f9c8e4a448a3f1145c3b99fb8c03f113e5ab63d3 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:08:13 +0000 Subject: [PATCH 34/77] Update files based on generated files by template generator --- paper-en-times-listings.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-en-times-listings.tex b/paper-en-times-listings.tex index e9563db..81af884 100644 --- a/paper-en-times-listings.tex +++ b/paper-en-times-listings.tex @@ -185,7 +185,7 @@ % default: \rmfamily stringstyle=\ttfamily, % - breaklines=true, % Zeilen werden umbrochen + breaklines=true, % Zeilen werden umbrochen % breakatwhitespace=true, % From acc5c22729300d6ff581af7adcc3b1f741969283 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:08:18 +0000 Subject: [PATCH 35/77] Update files based on generated files by template generator --- paper-de-default-minted.tex | 266 +++++++++++++++++++++++++++++------- 1 file changed, 217 insertions(+), 49 deletions(-) diff --git a/paper-de-default-minted.tex b/paper-de-default-minted.tex index 9fc9f8d..d5e8a33 100644 --- a/paper-de-default-minted.tex +++ b/paper-de-default-minted.tex @@ -3,8 +3,7 @@ % !TeX spellcheck = de-DE % LTeX: language=de-DE % !TeX encoding = utf8 -% !TeX program = pdflatex -% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape] +% !TeX program = lualatex % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- @@ -12,11 +11,12 @@ % % - easy print out on DIN A4 paper size % -% One can configure a4 vs. letter in the LaTeX installation. So it is configuration dependend, what the paper size will be. -% This option present, because the current word template offered by Springer is DIN A4. -% We accept that DIN A4 cause WTFs at persons not used to A4 in USA. +% One can configure default page size (a4 vs. letter) in the LaTeX installation. +% Thus, it is configuration dependend, what the paper size will be. +% Having "a4paper" option present, the page size is set to A4. +% Note that the current word template offered by Springer is DIN A4. % -% "runningheads": +% "runningheads" führt zu folgendem: % % - zeigt Author + Titel auf jeder Seite. % - Während des Schreibens und das Review des Papers hilft das, um z.B. auf konkrete Seitenzahlen einfach verweisen zu können. @@ -26,11 +26,13 @@ % blindly opening the folder, one could hit not the title page, but an arbitrary page. Therefore, % it is good to have title printed on the pages, too. % -% Diese Option nach Aufforderung durch die Herausgeber entfernen. +% Die Option "runningheads" ist nach Aufforderung durch die Herausgeber entfernen. % % To disable outputting page headers and footers, remove "runningheads" \documentclass[runningheads,a4paper,ngerman]{llncs}[2022/01/12] +\usepackage{iftex} + % backticks (`) werden als solches in verbatim-Umgebungen dargestellt % Details unter: % - https://tex.stackexchange.com/a/341057/9075 @@ -46,26 +48,6 @@ % Hinweis von http://tex.stackexchange.com/a/321066/9075 % Ermögliche die Benutzung von "= als Trennstriche \addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}} -% -% Fix von https://tex.stackexchange.com/a/441701/9075 -\usepackage{regexpatch} -\makeatletter -\edef\switcht@albion{% - \relax\unexpanded\expandafter{\switcht@albion}% -} -\xpatchcmd*{\switcht@albion}{ \def}{\def}{}{} -\xpatchcmd{\switcht@albion}{\relax}{}{}{} -\edef\switcht@deutsch{% - \relax\unexpanded\expandafter{\switcht@deutsch}% -} -\xpatchcmd*{\switcht@deutsch}{ \def}{\def}{}{} -\xpatchcmd{\switcht@deutsch}{\relax}{}{}{} -\edef\switcht@francais{% - \relax\unexpanded\expandafter{\switcht@francais}% -} -\xpatchcmd*{\switcht@francais}{ \def}{\def}{}{} -\xpatchcmd{\switcht@francais}{\relax}{}{}{} -\makeatother % Links verhalten sich so, wie sie sollen % Zeilenumbrüche bei URLs auch bei Bindestrichen erlauben, auch wenn es verwirrend sein könnte: Gehört der Bindestrich zur URL oder ist es ein Trennstrich? @@ -78,6 +60,38 @@ \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother +\ifluatex +\usepackage[no-math]{fontspec} +\usepackage{unicode-math} + +% Typewriter font (for source code etc) +% Use New Computer Modern font (Computer Modern is the default LaTeX font; this is the implemented modern variant) +% Source: https://tug.org/FontCatalogue/newcomputermoderntypewriter/ + +\setmainfont[% +ItalicFont=NewCM10-Italic.otf,% +BoldFont=NewCM10-Bold.otf,% +BoldItalicFont=NewCM10-BoldItalic.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Regular.otf} + +\setsansfont[% +ItalicFont=NewCMSans10-Oblique.otf,% +BoldFont=NewCMSans10-Bold.otf,% +BoldItalicFont=NewCMSans10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf} + +\setmonofont[ItalicFont=NewCMMono10-Italic.otf,% +BoldFont=NewCMMono10-Bold.otf,% +BoldItalicFont=NewCMMono10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf} + +\setmathfont{NewCMMath-Regular.otf} + +% Enable proper ligatures +% For more information see https://ctan.org/pkg/selnolig +% language "english" or "ngerman" is passed to selnolig by the document class +\usepackage{selnolig} +\else % This is the modern package for "Computer Modern". % In case this gets activated, one has to switch from cmap package to glyphtounicode (in the case of pdflatex) \usepackage[% @@ -91,6 +105,7 @@ % Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075. \usepackage[T1]{fontenc} +\fi % Optischer Randausgleich und Grauwertkorrektur. Siehe See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/ @@ -121,8 +136,9 @@ % Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox \usepackage{diagbox} -\usepackage{xcolor} +\usepackage[dvipsnames, table]{xcolor} +% See https://github.com/gpoore/minted \usepackage[newfloat]{minted} \setminted{ @@ -139,9 +155,9 @@ % breakbytokenanywhere=true } -\usemintedstyle{bw} %black and white style +%\usemintedstyle{bw} %black and white style %\usemintedstyle{vs} %visual studio -%\usemintedstyle{friendlygrayscale} % custom style - submitted as pull request https://bitbucket.org/birkenfeld/pygments-main/pull-requests/748/add-style-friendly-grayscale/diff +\usemintedstyle{friendly_grayscale} %\usemintedstyle{friendly} %\usemintedstyle{eclipse} %http://www.jevon.org/wiki/Eclipse_Pygments_Style %\usemintedstyle{autumn} @@ -171,7 +187,10 @@ \defineshorthand{"`}{\openautoquote} \defineshorthand{"'}{\closeautoquote} -% Nicer tables (\toprule, \midrule, \bottomrule) +% bessere Abstaende innerhalb der Tabelle (Layout)) +% ------------------------------------------------- +% \toprule, \midrule, \bottomrule +% Doc: https://texdoc.org/serve/booktabs/0 \usepackage{booktabs} % Extended enumerate, such as \begin{compactenum} @@ -213,24 +232,106 @@ { } % Put figures aside a text +% Even though the package is from 1998, it works well \usepackage[rflt]{floatflt} +% Farbige Tabellen +% ---------------- +% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen +% +% Erweiterte Funktionen innerhalb von Tabellen +% -------------------------------------------- +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty +\usepackage{multirow} % Mehrfachspalten +% +%%% Doc: Documentation inside dtx Package +\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt + +%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf +%\usepackage{supertabular} + +%%% Fussnoten/Endnoten =================================================== + +% EN: Put footnotes below floats +% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren +% Source: https://tex.stackexchange.com/a/32993/9075 +\usepackage{stfloats} +\fnbelowfloat + +% EN: Extended support for footnotes +% DE: Fußnoten +% +%\usepackage{dblfnote} %Zweispaltige Fußnoten +% +% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch): +%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}} +% +% Abstand zwischen Fußnoten vergrößern: +%\setlength{\footnotesep}{.85\baselineskip} +% +% EN: Following command disables the separting line of the footnote +% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote +%\renewcommand{\footnoterule}{} +% +%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote + +% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite +% DE: fnpos kommt aus dem yafoot package +%\usepackage{fnpos} +%\makeFNbelow +%\makeFNbottom + +% TODO (and comment) configuration +% +% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs +% - \todofix - "important" TODOs +% +% - \textcomment - highlights text and has a hover comment +% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others) +% +% - \missingfigure +% +% - \textmarker +% - \modified +% - \change - adresses a review comment + % Enable nice comments \usepackage{pdfcomment} -\newcommand{\commentontext}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -\newcommand{\commentatside}[1]{\pdfcomment[color={0.045 0.278 0.643},icon=Note]{#1}} +\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}} -% Compatibality with packages todo, easy-todo, todonotes -\newcommand{\todo}[1]{\commentatside{#1}} +% Small PDF comment +% 1. Parameter: Comment +\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\sidecomment}[1]{} -% Compatiblity with package fixmetodonotes -\newcommand{\TODO}[1]{\commentatside{#1}} +\newcommand{\todo}[1]{TODO!\sidecomment{#1}} -% Fußnoten unter Gleitumgebungen ("floats") platzieren -% Quelle: https://tex.stackexchange.com/a/32993/9075 -\usepackage{stfloats} -\fnbelowfloat +% Änderungen +% +% 1. Parameter: Review-Kommentar +% 2. Parameter: Neuer Text +\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}} +% Disabled variant - for the final PDF +%\newcommand{\change}[2]{#2} + +% Define default commands +\makeatletter +\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{} +\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{} +\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{} +\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{} +\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{} +\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{} +\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{} +\makeatother + +% Textmarker (Textfarbe rot) +\newcommand{\textmarker}[1]{{\color{red} #1}\xspace} + +% Modified (Text blau) +\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace} \usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx} \addto\extrasgerman{\sisetup{locale = DE}} @@ -241,10 +342,12 @@ % Enable hyperref without colors and without bookmarks \hypersetup{ hidelinks, - colorlinks=true, + colorlinks=true, % Links erhalten Farben statt Kaeten + raiselinks=true, % calculate real height of the link allcolors=black, pdfstartview=Fit, - breaklinks=true + breaklinks=true, % Links ueberstehen Zeilenumbruch + hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075 } % Enable correct jumping to figures when referencing @@ -259,6 +362,14 @@ \usepackage[caption=false,font=footnotesize]{subfig} +% Alternative for making subfigures: +% Part of the caption package. See http://www.ctan.org/pkg/caption +% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075 +% +% (subfigure is outdated. subfig is maintained, but subcaption is better) +% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure +%\usepackage[hypcap=true]{subcaption} + \usepackage{mindflow} % cleveref für cref statt autoref, da cleveref auch bei Definitionen funktioniert @@ -310,6 +421,10 @@ \DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180} \usepackage{xspace} +% Macht \xspace und \enquote kompatibel +\makeatletter +\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } +\makeatother % Enable hyphenation at other places as the dash. % Example: applicaiton\hydash specific @@ -318,8 +433,24 @@ % Definition of "= taken from http://mirror.ctan.org/macros/latex/contrib/babel-contrib/german/ngermanb.dtx \makeatother +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype +% See ADR-0008 for alternatives +\usepackage{autotype} +\fi + % correct bad hyphenation here -\hyphenation{op-tical net-works semi-conduc-tor} +\hyphenation{ + Spe-zi-fi-ka-tion + In-te-gra-tion + An-for-de-rung An-for-de-run-gen + Be-nut-zer-ober-flä-che + Mes-sung-en + aus-zu-tau-schen + Lauf-zeit-in-for-ma-tionen + % May not be hypphenated + AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps +} % Add copyright % @@ -338,6 +469,7 @@ \llncs{book editors and title}{0042} \fi +\ifpdftex % Enable copy and paste of text from the PDF % Only required for pdflatex. It "just works" in the case of lualatex. % Alternative: cmap or mmap package @@ -349,8 +481,13 @@ % According to https://tex.stackexchange.com/q/451235/9075 this is the way to go \input glyphtounicode \pdfgentounicode=1 - +\fi \begin{document} +\ifluatex +% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype +% See ADR-0008 for alternatives +\autotypelangoptions{ngerman}{ligbreak} +\fi \title{Paper Title} % If Title is too long, use \titlerunning @@ -383,7 +520,7 @@ \maketitle \begin{abstract} - +\lipsum[1] \keywords{First keyword \and Second keyword \and Third keyword} \end{abstract} @@ -406,7 +543,7 @@ \section{Verwandte Arbeiten} Eine Beschreibung relevanter wissenschaftlicher Arbeiten mit Bezug zur eigenen Arbeit. Der Abschnitt kann je nach Kontext auch an anderer Stelle stehen. -Winery~\cite{Winery} is a graphical \commentontext{modeling}{modeling with one ``l'', because of AE} tool. +Winery~\cite{Winery} is a graphical \textcomment{modeling}{modeling with one ``l'', because of AE} tool. The whole idea of TOSCA is explained by \citet{Binz2009}. \section{LaTeX Hinweise} @@ -476,6 +613,35 @@ \subsection{Notes separated from the text} \end{mindflow} \end{ltgexample} +\subsection{Handling TODOs} + +\begin{ltgexample} +\textmarker{Markierter Text.} +\end{ltgexample} + +Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert. + +\begin{ltgexample} +\textcomment{Markierter Text.}{Kommentar dazu.} +\end{ltgexample} + +\begin{ltgexample} +\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.} +\end{ltgexample} + +\begin{ltgexample} +Das ist ein Text. +\change{FL1: Text angepasst}{Geänderter Text}. +\end{ltgexample} + +\begin{ltgexample} +Hier nur ein Kommentar\sidecomment{Kommentar}. +\end{ltgexample} + +\begin{ltgexample} +\todo{Hier muss noch kräftig Text produziert werden} +\end{ltgexample} + \subsection{Hyphenation} \LaTeX{} automatically hyphenates words. @@ -572,8 +738,9 @@ \subsection{Abbildungen} \includegraphics[width=.29\linewidth]{example-image-a} \caption{A floating figure} \end{floatingfigure} -\blindtext[2] +\lipsum[2] \end{ltgexample} + \subsection{Sub Figures} An example of two sub figures is shown in \cref{fig:two_sub_figures}. @@ -753,7 +920,7 @@ \subsubsection*{Danksagungen} \renewcommand{\bibsection}{\section*{Literatur}} % requried for natbib to have "References" printed and as section*, not chapter* % Use natbib compatbile splncs04nat style. % It does provide all features of splncs03, but is developed in a clean way. -% Source: http://phaseportrait.blogspot.de/2011/02/natbib-compatible-bibtex-style-bst-file.html +% Source: https://github.com/tpavlic/splncs04nat \bibliographystyle{splncs04nat} \begingroup \microtypecontext{expansion=sloppy} @@ -764,6 +931,7 @@ \subsubsection*{Danksagungen} % Enfore empty line after bibliography \ \\ % +\noindent Alle Links wurden zuletzt am 29.03.2021 geprüft. %%% =============================================================================== From 7d056c8678fc6c2f663fdd86c173e54b14b05e40 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 11:13:48 +0100 Subject: [PATCH 36/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index c992a52..9a30195 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit c992a52a83eb9743ae49591a7a2dfe832b5a9771 +Subproject commit 9a301952d810e66b15c1ccf8660f3fe80659abd3 From 5b2105902f3c5922d24f86ea1ca70332da1f188d Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:14:32 +0000 Subject: [PATCH 37/77] Update files based on generated files by template generator --- paper-de-times-listings.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-de-times-listings.tex b/paper-de-times-listings.tex index 67037dc..7666c3e 100644 --- a/paper-de-times-listings.tex +++ b/paper-de-times-listings.tex @@ -174,7 +174,7 @@ % extendedchars=true, % - basicstyle=\footnotesize\ttfamily, + basicstyle=\footnotesize\ttfamily, % commentstyle=\slshape, % From 3f0a70bc7378a4b7f5d32839a354b57b34dad06b Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:14:34 +0000 Subject: [PATCH 38/77] Update files based on generated files by template generator --- paper-de-default-listings.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-de-default-listings.tex b/paper-de-default-listings.tex index 3c0ef78..0cfbe7a 100644 --- a/paper-de-default-listings.tex +++ b/paper-de-default-listings.tex @@ -186,7 +186,7 @@ % extendedchars=true, % - basicstyle=\footnotesize\ttfamily, + basicstyle=\footnotesize\ttfamily, % commentstyle=\slshape, % From 093d1ab0920361ff45ab31d8536b30bb063a9ad8 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:14:32 +0000 Subject: [PATCH 39/77] Update files based on generated files by template generator --- paper-en-default-listings.tex | 2 +- paper.tex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-en-default-listings.tex b/paper-en-default-listings.tex index 82b40b0..101c9e5 100644 --- a/paper-en-default-listings.tex +++ b/paper-en-default-listings.tex @@ -190,7 +190,7 @@ % extendedchars=true, % - basicstyle=\footnotesize\ttfamily, + basicstyle=\footnotesize\ttfamily, % commentstyle=\slshape, % diff --git a/paper.tex b/paper.tex index 82b40b0..101c9e5 100644 --- a/paper.tex +++ b/paper.tex @@ -190,7 +190,7 @@ % extendedchars=true, % - basicstyle=\footnotesize\ttfamily, + basicstyle=\footnotesize\ttfamily, % commentstyle=\slshape, % From 13a7642ea445e15d72044b3c862791aadc1ca74b Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:14:34 +0000 Subject: [PATCH 40/77] Update files based on generated files by template generator --- paper-en-times-listings.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-en-times-listings.tex b/paper-en-times-listings.tex index 81af884..a3feb4c 100644 --- a/paper-en-times-listings.tex +++ b/paper-en-times-listings.tex @@ -178,7 +178,7 @@ % extendedchars=true, % - basicstyle=\footnotesize\ttfamily, + basicstyle=\footnotesize\ttfamily, % commentstyle=\slshape, % From e3d8bdde36003f6851b404f1c91612e2da56cbe2 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 11:19:53 +0100 Subject: [PATCH 41/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 9a30195..2539e60 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 9a301952d810e66b15c1ccf8660f3fe80659abd3 +Subproject commit 2539e60a4056299401306f759c36b9c2a227d6d8 From 4ad749838115ff1892e9f89efe84470fd3718b39 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:20:35 +0000 Subject: [PATCH 42/77] Update files based on generated files by template generator --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index c85b5bf..8d0e63f 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,17 @@ To have minted running properly, you have to do following steps on Windows: 2. Install [pygments]: `pip instal pygments` - that uses the Pyhton package manager to install the pygments library 3. When latexing, use `-shell-escape`: `pdflatex -shell-escape paper`. You can also just execute `latexmk paper`. + +## Usage with docker + +The generated `Dockerfile` is based on the [Dockerfile by the Island of TeX](https://gitlab.com/islandoftex/images/texlive#tex-live-docker-image). + + docker run --rm -v "c:\users\example\latex-document:/workdir" latexmk + +Following one-time setup is required: + + docker build -t ltg . + ## FAQs ### Q: ShareLaTeX outputs a warning regarding the llncs class From 0be9e31965640085798da77f7eb58c03999a4202 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 11:26:53 +0100 Subject: [PATCH 43/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 2539e60..9d95cc3 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 2539e60a4056299401306f759c36b9c2a227d6d8 +Subproject commit 9d95cc3e33b14cfa62b0e45792e1c0ef450b4429 From e31c7fde7aa361600e9f36752fb881b7a8354dda Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:27:36 +0000 Subject: [PATCH 44/77] Update files based on generated files by template generator --- paper-en-times-minted.tex | 1 + 1 file changed, 1 insertion(+) diff --git a/paper-en-times-minted.tex b/paper-en-times-minted.tex index 42e3a87..4fd53aa 100644 --- a/paper-en-times-minted.tex +++ b/paper-en-times-minted.tex @@ -4,6 +4,7 @@ % LTeX: language=en-US % !TeX encoding = utf8 % !TeX program = lualatex +% !TeX TXS-program:compile = txs:///lualatex/[--shell-escape] % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- From f3c702dbcfdab1fda9139cba67e2c2612927ad5d Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:27:41 +0000 Subject: [PATCH 45/77] Update files based on generated files by template generator --- paper-en-default-minted.tex | 1 + 1 file changed, 1 insertion(+) diff --git a/paper-en-default-minted.tex b/paper-en-default-minted.tex index e815a5a..60ec61b 100644 --- a/paper-en-default-minted.tex +++ b/paper-en-default-minted.tex @@ -4,6 +4,7 @@ % LTeX: language=en-US % !TeX encoding = utf8 % !TeX program = lualatex +% !TeX TXS-program:compile = txs:///lualatex/[--shell-escape] % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- From 333b74923372e17e2acd0ea38c7a5b4c8708c3ae Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:27:42 +0000 Subject: [PATCH 46/77] Update files based on generated files by template generator --- paper-de-default-minted.tex | 1 + 1 file changed, 1 insertion(+) diff --git a/paper-de-default-minted.tex b/paper-de-default-minted.tex index d5e8a33..3903127 100644 --- a/paper-de-default-minted.tex +++ b/paper-de-default-minted.tex @@ -4,6 +4,7 @@ % LTeX: language=de-DE % !TeX encoding = utf8 % !TeX program = lualatex +% !TeX TXS-program:compile = txs:///lualatex/[--shell-escape] % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- From 4dabb938c1febf5e599a94dcba59618d3274b49e Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 10:27:41 +0000 Subject: [PATCH 47/77] Update files based on generated files by template generator --- paper-de-times-minted.tex | 1 + 1 file changed, 1 insertion(+) diff --git a/paper-de-times-minted.tex b/paper-de-times-minted.tex index 14a247d..fe0c82d 100644 --- a/paper-de-times-minted.tex +++ b/paper-de-times-minted.tex @@ -4,6 +4,7 @@ % LTeX: language=de-DE % !TeX encoding = utf8 % !TeX program = lualatex +% !TeX TXS-program:compile = txs:///lualatex/[--shell-escape] % !BIB program = bibtex % -*- coding:utf-8 mod:LaTeX -*- From 0acd510c181c98cd9c05cbff1a21a7962ab05725 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 11:32:39 +0100 Subject: [PATCH 48/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 9d95cc3..0ab70ff 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 9d95cc3e33b14cfa62b0e45792e1c0ef450b4429 +Subproject commit 0ab70ff7413a936c51f279ebcf7150bda73122b4 From 03688f64e1a92b9de6a7fea72c48eb2a8cb308a0 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 11:43:05 +0100 Subject: [PATCH 49/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 0ab70ff..25b6409 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 0ab70ff7413a936c51f279ebcf7150bda73122b4 +Subproject commit 25b6409e97b2852c6679f1f4e68cfba90cd5fe1a From 49698b65d9fa4254f66e0d95bd19cb9a624fec69 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 11:49:37 +0100 Subject: [PATCH 50/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 25b6409..9714620 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 25b6409e97b2852c6679f1f4e68cfba90cd5fe1a +Subproject commit 9714620c2c70fef584c00b3551c1c7b2e6f8e94b From e5a36626899c70f9eeacdd6fa37a7a91265d7039 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 11:57:18 +0100 Subject: [PATCH 51/77] Fix generation of _latexmkrc --- .github/workflows/update-files.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index 37e16cb..7d6c90c 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -73,12 +73,14 @@ jobs: # remove files which should not be overwritten + # _latexmkrc alternates between including and excluding "--shell-escape"; we just want to keep the minted + en version of it + if [ "${{ matrix.listings }}" != "minted" ] || [ "${{ matrix.lang }}" != "en" ]; then + rm _latexmkrc + fi + # the LICENSE of the repository should be kept rm LICENSE - # _latexmkrc alternates between including and excluding "--shell-escape"; we just want to keep one version of it - rm _latexmkrc - # copy everything cp -r * ${{ github.workspace }} From 9c0835304ceea71d658502d40ffc885a4162515c Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 12:08:22 +0100 Subject: [PATCH 52/77] Fix updates --- .github/workflows/update-files.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index 7d6c90c..db68bf3 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -101,13 +101,19 @@ jobs: runs-on: ubuntu-latest needs: [generatetex] steps: - - name: Set up Git repositor4 + - name: Set up Git repository uses: actions/checkout@v4 + with: + ref: '${{ github.event.pull_request.head.ref }}' - run: | + # ensure latest updates + git pull + cp paper-en-default-listings.tex paper.tex cp paper-en-default-minted.tex paper-minted.tex cp paper-en-times-listings.tex paper-newtx.tex cp paper-en-times-minted.tex paper-minted-newtx.tex + # use latexmkrc (which is disabled due to easy overleaf usage) cp _latexmkrc latexmkrc - name: Install TeX Live From 6bd44eae93828162876e3fe5f8b20d999b2e184c Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 12:16:39 +0100 Subject: [PATCH 53/77] Try other update --- .github/workflows/update-files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index db68bf3..4c6f5c0 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -96,7 +96,7 @@ jobs: push: false - name: Push changes run: | - parallel --retries 10 --delay 9 ::: "git status && git pull --rebase && git push" + parallel --retries 10 --delay 9 ::: "git pull --rebase; git push" publish: runs-on: ubuntu-latest needs: [generatetex] From a7005d0e477f657c6508195a876504c035207dfd Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 12:25:33 +0100 Subject: [PATCH 54/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 9714620..dbacad8 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 9714620c2c70fef584c00b3551c1c7b2e6f8e94b +Subproject commit dbacad8007fac63ccb9823cf534f768d8bd0cd0e From 5b57633bf16093bb92f71be2738310297bf536e8 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 11:26:17 +0000 Subject: [PATCH 55/77] Update files based on generated files by template generator --- paper-en-default-minted.tex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paper-en-default-minted.tex b/paper-en-default-minted.tex index 60ec61b..f24b3b7 100644 --- a/paper-en-default-minted.tex +++ b/paper-en-default-minted.tex @@ -354,7 +354,6 @@ % Enable correct jumping to figures when referencing \usepackage[all]{hypcap} - \usepackage[caption=false,font=footnotesize]{subfig} % Alternative for making subfigures: @@ -408,7 +407,7 @@ % Allows for defining commands that don't eat spaces. \usepackage{xspace} -% Adds compatibility to \xspace und \enquote kompatibel +% Adds compatibility to \xspace und \enquote \makeatletter \xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } \makeatother From e61e797914639acfe06d0c724468813aad65563e Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 11:26:19 +0000 Subject: [PATCH 56/77] Update files based on generated files by template generator --- paper-en-times-minted.tex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paper-en-times-minted.tex b/paper-en-times-minted.tex index 4fd53aa..2531dbc 100644 --- a/paper-en-times-minted.tex +++ b/paper-en-times-minted.tex @@ -342,7 +342,6 @@ % Enable correct jumping to figures when referencing \usepackage[all]{hypcap} - \usepackage[caption=false,font=footnotesize]{subfig} % Alternative for making subfigures: @@ -396,7 +395,7 @@ % Allows for defining commands that don't eat spaces. \usepackage{xspace} -% Adds compatibility to \xspace und \enquote kompatibel +% Adds compatibility to \xspace und \enquote \makeatletter \xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } \makeatother From 42a2c509c4929a7337cd75d00ef1bc772d13dcba Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 11:26:22 +0000 Subject: [PATCH 57/77] Update files based on generated files by template generator --- paper-en-default-listings.tex | 3 +-- paper.tex | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/paper-en-default-listings.tex b/paper-en-default-listings.tex index 101c9e5..3a1ac81 100644 --- a/paper-en-default-listings.tex +++ b/paper-en-default-listings.tex @@ -420,7 +420,6 @@ % Enable correct jumping to figures when referencing \usepackage[all]{hypcap} - \usepackage[caption=false,font=footnotesize]{subfig} % Alternative for making subfigures: @@ -472,7 +471,7 @@ % Allows for defining commands that don't eat spaces. \usepackage{xspace} -% Adds compatibility to \xspace und \enquote kompatibel +% Adds compatibility to \xspace und \enquote \makeatletter \xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } \makeatother diff --git a/paper.tex b/paper.tex index 101c9e5..3a1ac81 100644 --- a/paper.tex +++ b/paper.tex @@ -420,7 +420,6 @@ % Enable correct jumping to figures when referencing \usepackage[all]{hypcap} - \usepackage[caption=false,font=footnotesize]{subfig} % Alternative for making subfigures: @@ -472,7 +471,7 @@ % Allows for defining commands that don't eat spaces. \usepackage{xspace} -% Adds compatibility to \xspace und \enquote kompatibel +% Adds compatibility to \xspace und \enquote \makeatletter \xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } \makeatother From f76ce1fcc50198bfd957526a636410d5f1ce8291 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 11:26:22 +0000 Subject: [PATCH 58/77] Update files based on generated files by template generator --- paper-en-times-listings.tex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paper-en-times-listings.tex b/paper-en-times-listings.tex index a3feb4c..2f00472 100644 --- a/paper-en-times-listings.tex +++ b/paper-en-times-listings.tex @@ -408,7 +408,6 @@ % Enable correct jumping to figures when referencing \usepackage[all]{hypcap} - \usepackage[caption=false,font=footnotesize]{subfig} % Alternative for making subfigures: @@ -460,7 +459,7 @@ % Allows for defining commands that don't eat spaces. \usepackage{xspace} -% Adds compatibility to \xspace und \enquote kompatibel +% Adds compatibility to \xspace und \enquote \makeatletter \xspaceaddexceptions{\grqq \grq \csq@qclose@i \} } \makeatother From e99214ade8dc4ddf19b077e68281f1fb641028d7 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 12:41:45 +0100 Subject: [PATCH 59/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index dbacad8..9624d50 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit dbacad8007fac63ccb9823cf534f768d8bd0cd0e +Subproject commit 9624d50ac514a04174ee988e6b2d7d05bf9b1806 From d7b43b042f3906546c11ab403324128aa1315965 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 12:53:31 +0100 Subject: [PATCH 60/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 9624d50..dfabd16 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 9624d50ac514a04174ee988e6b2d7d05bf9b1806 +Subproject commit dfabd16f534e2a60ef3c131b1b8fd9df89305ca0 From b225e9332e4fa6213cb1c9780e48af74d526a64b Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 19:25:24 +0100 Subject: [PATCH 61/77] Fix update --- .github/workflows/update-files.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index 4c6f5c0..3351534 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -81,8 +81,13 @@ jobs: # the LICENSE of the repository should be kept rm LICENSE - # copy everything - cp -r * ${{ github.workspace }} + # We do not want to update GitHub workflows + rm -rf .github/workflows + + # Files are ready + # Overwrite old versions in $GITHUB_WORKSPACE + cp -r * $GITHUB_WORKSPACE + cp -r .* $GITHUB_WORKSPACE # output current status cd ${{ github.workspace }} From 4a7c74b44fd319ca526f130e37629ca6718ee394 Mon Sep 17 00:00:00 2001 From: koppor Date: Mon, 13 Jan 2025 18:26:12 +0000 Subject: [PATCH 62/77] Update files based on generated files by template generator --- .dockerignore | 431 +++++++++++++++++++++++++++++++++++++++++++++++++- .editorconfig | 3 - .gitignore | 275 ++++++++++++++++++++------------ 3 files changed, 607 insertions(+), 102 deletions(-) diff --git a/.dockerignore b/.dockerignore index cbe2c8c..5d8f9b6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,429 @@ -.github -generator-latex-template +Dockerfile + +main.pdf +main-*.pdf +graphics/*.pdf_tex +democode.tex + +# plantuml +*-plantuml.latex +*-plantuml.txt + +# latexindent +*.bak +*.bak? +*.bak?? + +# tex4ht +*.4ct +*.4tc + +# configured in packages_and_options.tex +*.code + +# IntelliJ +.idea/ + + + + +# Created by https://www.gitignore.io/api/code,latex,linux,emacs,jabref,windows,libreoffice,microsoftoffice +# Edit at https://www.gitignore.io/?templates=code,latex,linux,emacs,jabref,windows,libreoffice,microsoftoffice + +### Code ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +### Emacs ### +# -*- mode: gitignore; -*- +*~ +\#*\# +/.emacs.desktop +/.emacs.desktop.lock +*.elc +auto-save-list +tramp +.\#* + +# Org-mode +.org-id-locations +*_archive + +# flymake-mode +*_flymake.* + +# eshell files +/eshell/history +/eshell/lastdir + +# elpa packages +/elpa/ + +# reftex files +*.rel + +# AUCTeX auto folder +/auto/ + +# cask packages +.cask/ +dist/ + +# Flycheck +flycheck_*.el + +# server auth directory +/server/ + +# projectiles files +.projectile + +# directory configuration +.dir-locals.el + +# network security +/network-security.data + + +### JabRef ### +# JabRef - https://www.jabref.org/ +*.bak +*.sav + +### LaTeX ### +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# comment +*.cut + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.glsdefs + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Comment the next line if you want to keep your tikz graphics files +*.tikz +*-tikzDictionary + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices +*.xyc + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# KBibTeX +*~[0-9]* + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +### LaTeX Patch ### +# glossaries +*.glstex + +### LibreOffice ### +# LibreOffice locks +.~lock.*# + +### Linux ### + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### MicrosoftOffice ### +*.tmp + +# Word temporary +~$*.doc* + +# Word Auto Backup File +Backup of *.doc* + +# Excel temporary +~$*.xls* + +# Excel Backup File +*.xlk + +# PowerPoint temporary +~$*.ppt* + +# Visio autosave temporary files +*.~vsd* + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.gitignore.io/api/code,latex,linux,emacs,jabref,windows,libreoffice,microsoftoffice diff --git a/.editorconfig b/.editorconfig index ea55e5b..73db316 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,6 +6,3 @@ indent_style = space indent_size = 2 insert_final_newline = true trim_trailing_whitespace = true - -[*.yaml] -indent_size = 4 diff --git a/.gitignore b/.gitignore index 264e691..a7c1a25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,55 +1,97 @@ +paper.pdf +paper-*.pdf +graphics/*.pdf_tex +democode.tex + +# plantuml +*-plantuml.latex +*-plantuml.txt + +# latexindent *.bak *.bak? +*.bak?? -# downloaded from springer - must not be distributed anywhere else -llncs2e.zip - -# contents of llncs2e.zip -aliascnt.sty -history.txt -llncs.cls -llncs.dem -llncs.doc -llncs.dvi -llncs.ind -llncsdoc.pdf -llncsdoc.sty -readme.txt -remreset.sty -splncs.bst -splncs03.bst -splncs_srt.bst -sprmindx.sty -subjidx.ind - -# more contents of llncs2e.zip as of 2020-01-14 -fig1.eps -samplepaper.tex -splncs04.bst - -#The output should not be versioned -paper.pdf -paper-minted.pdf +# tex4ht +*.4ct +*.4tc + +# configured in packages_and_options.tex +*.code + +# IntelliJ +.idea/ -#temporary files by gradle -.gradle -#temporary file produced by lncs_as branch -latex.zip +# Created by https://www.gitignore.io/api/code,latex,linux,emacs,jabref,windows,libreoffice,microsoftoffice +# Edit at https://www.gitignore.io/?templates=code,latex,linux,emacs,jabref,windows,libreoffice,microsoftoffice + +### Code ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +### Emacs ### +# -*- mode: gitignore; -*- +*~ +\#*\# +/.emacs.desktop +/.emacs.desktop.lock +*.elc +auto-save-list +tramp +.\#* + +# Org-mode +.org-id-locations +*_archive + +# flymake-mode +*_flymake.* + +# eshell files +/eshell/history +/eshell/lastdir +# elpa packages +/elpa/ +# reftex files +*.rel +# AUCTeX auto folder +/auto/ +# cask packages +.cask/ +dist/ +# Flycheck +flycheck_*.el +# server auth directory +/server/ +# projectiles files +.projectile +# directory configuration +.dir-locals.el -# Created by https://www.gitignore.io/api/tex,windows,linux,macos,jabref,microsoftoffice +# network security +/network-security.data -### TeX ### + +### JabRef ### +# JabRef - https://www.jabref.org/ +*.bak +*.sav + +### LaTeX ### ## Core latex/pdflatex auxiliary files: *.aux *.lof @@ -62,9 +104,11 @@ latex.zip *.fot *.cb *.cb2 +.*.lb ## Intermediate documents: *.dvi +*.xdv *-converted-to.* # these rules might exclude image files for figures etc. # *.ps @@ -80,7 +124,6 @@ latex.zip *.blg *-blx.aux *-blx.bib -*.brf *.run.xml ## Build tool auxiliary files: @@ -91,6 +134,10 @@ latex.zip *.synctex.gz(busy) *.pdfsync +## Build tool directories for auxiliary files +# latexrun +latex.out/ + ## Auxiliary and intermediate files from other packages: # algorithms *.alg @@ -108,9 +155,18 @@ acs-*.bib *.snm *.vrb +# changes +*.soc + +# comment +*.cut + # cprotect *.cpt +# elsarticle (documentclass of Elsevier journals) +*.spl + # endnotes *.ent @@ -123,12 +179,12 @@ acs-*.bib *.t[1-9] *.t[1-9][0-9] *.tfm -*.[1-9] -*.[1-9][0-9] #(r)(e)ledmac/(r)(e)ledpar *.end *.?end +*.[1-9] +*.[1-9][0-9] *.[1-9][0-9][0-9] *.[1-9]R *.[1-9][0-9]R @@ -148,6 +204,9 @@ acs-*.bib *.gls *.glsdefs +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + # gnuplottex *-gnuplottex-* @@ -155,7 +214,16 @@ acs-*.bib *.gaux *.gtex +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + # hyperref +*.brf # knitr *-concordance.tex @@ -166,17 +234,22 @@ acs-*.bib # listings *.lol +# luatexja-ruby +*.ltjruby + # makeidx *.idx *.ilg *.ind -*.ist # minitoc *.maf *.mlf *.mlt *.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* # minted _minted* @@ -185,10 +258,16 @@ _minted* # morewrites *.mw -# mylatexformat - # nomencl +*.nlg *.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc # sagetex *.sagetex.sage @@ -211,6 +290,9 @@ sympy-plots-for-*.tex/ *.pytxcode pythontex-files-*/ +# tcolorbox +*.listing + # thmtools *.loe @@ -222,9 +304,19 @@ pythontex-files-*/ # todonotes *.tdo +# vhistory +*.hst +*.ver + # easy-todo *.lod +# xcolor +*.xcp + +# xmpincl +*.xmpi + # xindy *.xdy @@ -240,48 +332,38 @@ TSWLatexianTemp* ## Editors: # WinEdt -*.bak -*.sav # Texpad .texpadtmp +# LyX +*.lyx~ + # Kile *.backup # KBibTeX *~[0-9]* -# auto folder when using emacs and auctex -/auto/* +# auto folder when using emacs and auctex +./auto/* +*.el # expex forward references with \gathertags *-tags.tex -### Windows ### -# Windows thumbnail cache files -Thumbs.db -ehthumbs.db -ehthumbs_vista.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msm -*.msp +# standalone packages +*.sta -# Windows shortcuts -*.lnk +### LaTeX Patch ### +# glossaries +*.glstex +### LibreOffice ### +# LibreOffice locks +.~lock.*# ### Linux ### -*~ # temporary files which can be created if a process still has a handle open of a deleted file .fuse_hidden* @@ -295,42 +377,15 @@ $RECYCLE.BIN/ # .nfs files are created when an open file is removed but is still being accessed .nfs* - -### macOS ### -*.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon -# Thumbnails -._* -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - - -### JabRef ### -# JabRef - https://www.jabref.org/ - - ### MicrosoftOffice ### *.tmp # Word temporary ~$*.doc* +# Word Auto Backup File +Backup of *.doc* + # Excel temporary ~$*.xls* @@ -341,6 +396,32 @@ Temporary Items ~$*.ppt* # Visio autosave temporary files -*.~vsdx +*.~vsd* + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk -# End of https://www.gitignore.io/api/tex,windows,linux,macos,jabref,microsoftoffice +# End of https://www.gitignore.io/api/code,latex,linux,emacs,jabref,windows,libreoffice,microsoftoffice From 10f9b6cee4184f159d76fec602241346659574fa Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 19:36:31 +0100 Subject: [PATCH 63/77] Also update .github/workflows --- .github/workflows/update-files.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/update-files.yml b/.github/workflows/update-files.yml index 3351534..bca35dc 100644 --- a/.github/workflows/update-files.yml +++ b/.github/workflows/update-files.yml @@ -76,14 +76,12 @@ jobs: # _latexmkrc alternates between including and excluding "--shell-escape"; we just want to keep the minted + en version of it if [ "${{ matrix.listings }}" != "minted" ] || [ "${{ matrix.lang }}" != "en" ]; then rm _latexmkrc + rm -r .github/workflows fi # the LICENSE of the repository should be kept rm LICENSE - # We do not want to update GitHub workflows - rm -rf .github/workflows - # Files are ready # Overwrite old versions in $GITHUB_WORKSPACE cp -r * $GITHUB_WORKSPACE From 96817992ddf03d1f836669d8395c28eb3bf61372 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 13 Jan 2025 19:37:21 +0100 Subject: [PATCH 64/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index dfabd16..0901be6 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit dfabd16f534e2a60ef3c131b1b8fd9df89305ca0 +Subproject commit 0901be679fd4ab54bb7ccadbce9e13b6015a40e3 From ae723dd57810c6337f95367658abd2258b8774bf Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 14 Jan 2025 08:28:49 +0100 Subject: [PATCH 65/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 0901be6..744edf9 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 0901be679fd4ab54bb7ccadbce9e13b6015a40e3 +Subproject commit 744edf9ddc36a40fc3366e9b2c70ed1283e42a2f From 29daefc9c126fd3fa72ccb4955f1d827fd894fa2 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 14 Jan 2025 08:48:54 +0100 Subject: [PATCH 66/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 744edf9..e55fc2e 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 744edf9ddc36a40fc3366e9b2c70ed1283e42a2f +Subproject commit e55fc2ed4ac054ea28d3133ca9973630ffbfe903 From 83c606f95586f516d93c20bfd5dcd6d21ae61f97 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 14 Jan 2025 08:50:00 +0100 Subject: [PATCH 67/77] Add check.yml --- .github/workflows/check.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..1f53f8d --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,28 @@ +name: latexmk paper +on: + push: + workflow_dispatch: +concurrency: + group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}" + cancel-in-progress: true +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v4 + - name: Install TeX Live + uses: zauguin/install-texlive@v3 + with: + package_file: '${{ github.workspace }}/Texlivefile' + - name: Prepare latexmk + run: | + updmap -sys + texhash + tlmgr generate language --rebuild-sys + - run: latexmk paper + - uses: actions/upload-artifact@v4 + with: + name: test-result + path: | + paper.pdf From 6fff9209068141aaec56a75e7e01293245153de2 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 14 Jan 2025 09:36:43 +0100 Subject: [PATCH 68/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index e55fc2e..ad074fd 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit e55fc2ed4ac054ea28d3133ca9973630ffbfe903 +Subproject commit ad074fdaae8457e2f56d5902d4f7e933406f665c From 1ff7c087266e26cc59b95574410af435a5fb33c9 Mon Sep 17 00:00:00 2001 From: koppor Date: Tue, 14 Jan 2025 08:37:22 +0000 Subject: [PATCH 69/77] Update files based on generated files by template generator --- .dockerignore | 8 +++-- .gitignore | 92 +++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 84 insertions(+), 16 deletions(-) diff --git a/.dockerignore b/.dockerignore index 5d8f9b6..6b51a1b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,8 +1,10 @@ +.github Dockerfile +generator-latex-template -main.pdf -main-*.pdf -graphics/*.pdf_tex +paper.pdf +paper-*.pdf +figures/*.pdf_tex democode.tex # plantuml diff --git a/.gitignore b/.gitignore index a7c1a25..23b2411 100644 --- a/.gitignore +++ b/.gitignore @@ -25,15 +25,8 @@ democode.tex -# Created by https://www.gitignore.io/api/code,latex,linux,emacs,jabref,windows,libreoffice,microsoftoffice -# Edit at https://www.gitignore.io/?templates=code,latex,linux,emacs,jabref,windows,libreoffice,microsoftoffice - -### Code ### -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json +# Created by https://www.toptal.com/developers/gitignore/api/emacs,latex,linux,macos,jabref,windows,libreoffice,microsoftoffice +# Edit at https://www.toptal.com/developers/gitignore?templates=emacs,latex,linux,macos,jabref,windows,libreoffice,microsoftoffice ### Emacs ### # -*- mode: gitignore; -*- @@ -203,15 +196,25 @@ acs-*.bib *.glo *.gls *.glsdefs +*.lzo +*.lzs +*.slg +*.slo +*.sls # uncomment this for glossaries-extra (will ignore makeindex's style files!) # *.ist +# gnuplot +*.gnuplot +*.table + # gnuplottex *-gnuplottex-* # gregoriotex *.gaux +*.glog *.gtex # htlatex @@ -227,8 +230,8 @@ acs-*.bib # knitr *-concordance.tex -# TODO Comment the next line if you want to keep your tikz graphics files -*.tikz +# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files +# *.tikz *-tikzDictionary # listings @@ -258,6 +261,9 @@ _minted* # morewrites *.mw +# newpax +*.newpax + # nomencl *.nlg *.nlo @@ -277,6 +283,9 @@ _minted* # scrwfile *.wrt +# svg +svg-inkscape/ + # sympy *.sout *.sympy @@ -301,6 +310,9 @@ pythontex-files-*/ *.md5 *.auxlock +# titletoc +*.ptc + # todonotes *.tdo @@ -320,8 +332,9 @@ pythontex-files-*/ # xindy *.xdy -# xypic precompiled matrices +# xypic precompiled matrices and outlines *.xyc +*.xyd # endfloat *.ttt @@ -342,9 +355,15 @@ TSWLatexianTemp* # Kile *.backup +# gummi +.*.swp + # KBibTeX *~[0-9]* +# TeXnicCenter +*.tps + # auto folder when using emacs and auctex ./auto/* *.el @@ -355,7 +374,21 @@ TSWLatexianTemp* # standalone packages *.sta +# Makeindex log files +*.lpz + +# xwatermark package +*.xwm + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# option is specified. Footnotes are the stored in a file with suffix Notes.bib. +# Uncomment the next line to have this generated file ignored. +#*Notes.bib + ### LaTeX Patch ### +# LIPIcs / OASIcs +*.vtc + # glossaries *.glstex @@ -377,6 +410,39 @@ TSWLatexianTemp* # .nfs files are created when an open file is removed but is still being accessed .nfs* +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### macOS Patch ### +# iCloud generated files +*.icloud + ### MicrosoftOffice ### *.tmp @@ -424,4 +490,4 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk -# End of https://www.gitignore.io/api/code,latex,linux,emacs,jabref,windows,libreoffice,microsoftoffice +# End of https://www.toptal.com/developers/gitignore/api/emacs,latex,linux,macos,jabref,windows,libreoffice,microsoftoffice From f7f7d93a60dd9fd911822fe66166852b0866fdcb Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 14 Jan 2025 09:40:54 +0100 Subject: [PATCH 70/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index ad074fd..e2ff911 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit ad074fdaae8457e2f56d5902d4f7e933406f665c +Subproject commit e2ff911aba1a5ec2dab64f18bf4ed9fb482ef471 From 47fd34595013231453c5db64f77d860ec5fcfc40 Mon Sep 17 00:00:00 2001 From: koppor Date: Tue, 14 Jan 2025 08:41:35 +0000 Subject: [PATCH 71/77] Update files based on generated files by template generator --- .gitignore | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 23b2411..272203e 100644 --- a/.gitignore +++ b/.gitignore @@ -25,8 +25,8 @@ democode.tex -# Created by https://www.toptal.com/developers/gitignore/api/emacs,latex,linux,macos,jabref,windows,libreoffice,microsoftoffice -# Edit at https://www.toptal.com/developers/gitignore?templates=emacs,latex,linux,macos,jabref,windows,libreoffice,microsoftoffice +# Created by https://www.toptal.com/developers/gitignore/api/emacs,latex,linux,macos,jabref,windows,libreoffice,microsoftoffice,visualstudiocode +# Edit at https://www.toptal.com/developers/gitignore?templates=emacs,latex,linux,macos,jabref,windows,libreoffice,microsoftoffice,visualstudiocode ### Emacs ### # -*- mode: gitignore; -*- @@ -464,6 +464,25 @@ Backup of *.doc* # Visio autosave temporary files *.~vsd* +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + ### Windows ### # Windows thumbnail cache files Thumbs.db @@ -490,4 +509,4 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk -# End of https://www.toptal.com/developers/gitignore/api/emacs,latex,linux,macos,jabref,windows,libreoffice,microsoftoffice +# End of https://www.toptal.com/developers/gitignore/api/emacs,latex,linux,macos,jabref,windows,libreoffice,microsoftoffice,visualstudiocode From 3f41188017fd24f80a575bc50b30e8db856ccff5 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 14 Jan 2025 11:26:21 +0100 Subject: [PATCH 72/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index e2ff911..b8804dc 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit e2ff911aba1a5ec2dab64f18bf4ed9fb482ef471 +Subproject commit b8804dc9c120e9d05589759cb9fcbb4076a94a1b From 8ae93bb3424be678d58fa465dea12ab68ec7eb89 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 14 Jan 2025 12:27:11 +0100 Subject: [PATCH 73/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index b8804dc..a2614ce 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit b8804dc9c120e9d05589759cb9fcbb4076a94a1b +Subproject commit a2614ce88530892935ca86d957b33ee115506846 From 88b6663a6ce2ba71a608c607d718389e1e671e38 Mon Sep 17 00:00:00 2001 From: koppor Date: Tue, 14 Jan 2025 11:30:14 +0000 Subject: [PATCH 74/77] Update files based on generated files by template generator --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d0e63f..1c988f4 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ Note that this requires a working perl installation. latexmk paper +To enable this, please move `_latexmkrc` to `latexmkrc`. + In case something goes wrong, you can instruct the LaTeX compiler to stop at the first error: lualatex paper @@ -101,9 +103,9 @@ Following one-time setup is required: ## FAQs -### Q: ShareLaTeX outputs a warning regarding the llncs class +### Q: Overleaf outputs a warning regarding the llncs class -ShareLaTeX might output following warning: +Overleaf might output following warning: > LaTeX Warning: You have requested, on input line 8, version > 2018/03/10' of document class llncs, but only version 2004/08/17 v2.14 @@ -165,6 +167,12 @@ Yes. You can regenerate the template and choose "German" as language. Install the package `dehyph-exptl`. +### Q: I get ``! I can't find file `clmr28t10+20'.`` + +You seem to use `latexmk` locally. +Please move `_latexmkrc` to `latexmkrc` to get `latexmk` working. +If you don't do this, `latexmk` tries to execute `latex`, which tries to produce a DVI file (and not a PDF file). + ## Further information - tex.stackexchange.com questions regarding LNCS: From 71034451f9f7b658e4dfe561fc498bee12a8eb7d Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 14 Jan 2025 12:31:21 +0100 Subject: [PATCH 75/77] Create latexmkrc --- .github/workflows/check.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1f53f8d..24ef990 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -20,6 +20,9 @@ jobs: updmap -sys texhash tlmgr generate language --rebuild-sys + if [ ! -f "latexmkrc" ]; then + cp "_latexmkrc" "latexmkrc" + fi - run: latexmk paper - uses: actions/upload-artifact@v4 with: From e3f734c73a7604303fe5ab5e28a6d8f09e2642ae Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 14 Jan 2025 12:31:27 +0100 Subject: [PATCH 76/77] Update LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index a2614ce..3bc243a 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit a2614ce88530892935ca86d957b33ee115506846 +Subproject commit 3bc243a8bfcabe2a4a57ab2afa2ad93f8eaf298b From 1364b8f383dc7de2443cc780f462a6df46e93c2a Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 14 Jan 2025 20:07:21 +0100 Subject: [PATCH 77/77] Use 2025.1.4 of LTG --- generator-latex-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-latex-template b/generator-latex-template index 3bc243a..e869a7b 160000 --- a/generator-latex-template +++ b/generator-latex-template @@ -1 +1 @@ -Subproject commit 3bc243a8bfcabe2a4a57ab2afa2ad93f8eaf298b +Subproject commit e869a7b32bd07b8fc478df3a9dd21d07e5fe890a