Skip to content

Commit

Permalink
Refine ltg (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor authored Jan 16, 2025
1 parent c660806 commit 62443ea
Show file tree
Hide file tree
Showing 27 changed files with 153 additions and 24 deletions.
1 change: 0 additions & 1 deletion .github/generate-workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def stable_id(documentclass, ieeevariant, latexcompiler, bibtextool, texlive, la
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
""")
ymlmiktex = open("workflows/miktex-check-{}.yml".format(dashedPartMiktex), "w+", encoding="utf-8")
ymlmiktex.write("name: MiKTeX {}\n".format(dashedPartMiktex))
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check-acmart-both-bibtex-2024-false.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check-acmart-both-bibtex-2024-true.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
137 changes: 137 additions & 0 deletions .github/workflows/check-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Check docker images
on:
schedule:
- cron: "0 6 * * 5"
push:
branches:
- main
paths-ignore:
- '.editorconfig'
- '.eslintignore'
- '.gitpod.dockerfile'
- '.gitpod.yml'
- '.gitattributes'
- '.gitignore'
- '.markdownlint.yml'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'generate-texlivefile.sh'
- 'LICENSE'
- 'README.md'
- 'setup-do.sh'
- 'user-data.sh'
- 'docs/**'
- '.vscode/**'
pull_request:
branches:
- main
paths-ignore:
- '.editorconfig'
- '.eslintignore'
- '.gitpod.dockerfile'
- '.gitpod.yml'
- '.gitattributes'
- '.gitignore'
- '.markdownlint.yml'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'generate-texlivefile.sh'
- 'LICENSE'
- 'README.md'
- 'setup-do.sh'
- 'user-data.sh'
- 'docs/**'
- '.vscode/**'
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.actor_id }}
cancel-in-progress: true
jobs:
check-reitzig:
name: Create reitzig
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Set up Git repository
uses: actions/checkout@v4
with:
path: 'code'
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: 'code/package-lock.json'
- run: npm ci
working-directory: ${{ github.workspace }}/code
- run: npm install -g yo
- name: Create lncs-reitzig
run: yo ${{ github.workspace }}/code/generators/app/index.js --documentclass=lncs --papersize=a4 --latexcompiler=pdflatex --bibtextool=bibtex --texlive=2024 --docker=reitzig --overleaf=no --lang=en --font=default --listings=minted --enquotes=csquotes --tweakouterquote=babel --todo=pdfcomment --examples=true --howtotext=true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
- name: Build Docker image
uses: docker/build-push-action@v6
with:
push: true
provenance: false
context: .
tags: localhost:5000/name/app:latest
- run: mkdir /tmp/out
- 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"
- uses: actions/upload-artifact@v4
with:
name: result-reitzig
path: /tmp/out
check-iot-dante:
runs-on: ubuntu-latest
name: Create ${{ matrix.docker }}
strategy:
matrix:
docker: ["iot", "dante"]
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Set up Git repository
uses: actions/checkout@v4
with:
path: 'code'
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: 'code/package-lock.json'
- run: npm ci
working-directory: ${{ github.workspace }}/code
- run: npm install -g yo
- name: Create lncs-${{ matrix.docker }}
run: yo ${{ github.workspace }}/code/generators/app/index.js --documentclass=lncs --papersize=a4 --latexcompiler=pdflatex --bibtextool=bibtex --texlive=2024 --docker=${{ matrix.docker }} --overleaf=no --lang=en --font=default --listings=minted --enquotes=csquotes --tweakouterquote=babel --todo=pdfcomment --examples=true --howtotext=true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
- name: Build Docker image
uses: docker/build-push-action@v6
with:
push: true
provenance: false
context: .
tags: localhost:5000/name/app:latest
- name: Build paper.tex
run: docker run -v $(pwd):/workdir localhost:5000/name/app:latest latexmk paper.tex
- uses: actions/upload-artifact@v4
with:
name: result-${{ matrix.docker }}
path: paper.pdf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check-lncs-both-bibtex-2024-false.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check-lncs-both-bibtex-2024-true.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check-lncs-pdflatex-bibtex-2024-true.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm install -g yo
- run: mkdir /tmp/out
- name: Summary table heading
run: |
TABLE='| documentclass | latexcompiler | bibtextool | texlive | lang | font | listing | enquote | tweakouterquote | todo | example | howtotext | link |'
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ We use dots as date separators, because it is supported in `package.json` (and d

## [Unreleased]

### Fixed

- Fixed tag for iot Docker image.

## [2025.1.14]

### Added
Expand Down
1 change: 1 addition & 0 deletions generators/app/templates/Dockerfile.dante
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM danteev/texlive:<% switch (texlive) {
case 2024: %>edge<% break;
case 2023: %>edge<% break;
// 2022 does not exist - see https://github.com/dante-ev/docker-texlive/blob/main/CHANGELOG.md
case 2021: %>2021-D<% break;
Expand Down
2 changes: 1 addition & 1 deletion generators/app/templates/Dockerfile.iot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM registry.gitlab.com/islandoftex/images/texlive:<% switch (texlive) {
case 2024: %>latest-latest<% break;
case 2024: %>latest<% break;
case 2023: %>TL2023-historic<% break;
} -%>

Expand Down
4 changes: 2 additions & 2 deletions generators/app/templates/Dockerfile.reitzig
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ RUN tlmgr update --self --repository https://mirrors.ctan.org/systems/texlive/tl
COPY Texlivefile /work/src
RUN xargs tlmgr install --repository https://mirrors.ctan.org/systems/texlive/tlnet/<%= texlive %>/tlnet-final < "/work/src/Texlivefile" &&\
<% } else { -%>
RUN tlmgr update --self --repository https://ctan.org/tex-archive/systems/texlive/tlnet
RUN tlmgr update --self --repository https://mirror.typesetting.eu
COPY Texlivefile /work/src
RUN xargs tlmgr install --repository https://ctan.org/tex-archive/systems/texlive/tlnet < "/work/src/Texlivefile" &&\
RUN xargs tlmgr install --repository https://mirror.typesetting.eu < "/work/src/Texlivefile" &&\
<% } -%>
sha256sum "/work/src/Texlivefile" > "/work/tmp/Texlivefile.sha" &&\
# make <% if (bibtextool == "biblatex") { %>biber, <% } %>latexmk and texlogsieve available
Expand Down
8 changes: 8 additions & 0 deletions generators/app/templates/font.preamble.en.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
%% !!! If you change the font, be sure that words such as "workflow" can
%% !!! still be copied from the PDF. If this is not the case, you have
%% !!! to use glyphtounicode. See comment at cmap package.
%%
%% Background: "workflow" contains "fl" which is a ligature, which in turn
%% is rendered as one character in the PDF and needs to be split
%% whily copying.

<% if (documentclass == 'ustutt') { -%>
%% Clashes with mathdesign
% \PreventPackageFromLoading{amssymb,amsfont}
Expand Down

0 comments on commit 62443ea

Please sign in to comment.