Skip to content

Commit 36be7da

Browse files
committed
Ubuntu 24.04 for LaTeX
docker build now requires "." requires texlive-lang-greek
1 parent 714a835 commit 36be7da

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/make-pdf-1-select.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Print selection
1717
run: |

.github/workflows/make-pdf-6-parallel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
build-and-release:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010
strategy:
1111
matrix:
1212
part: [hpmor-1, hpmor-2, hpmor-3, hpmor-4, hpmor-5, hpmor-6]

.github/workflows/make-pdf-all-serial.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010
steps:
1111
- name: Check out repository
1212
uses: actions/checkout@v4

.github/workflows/make-pdf-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- name: Print start date
1313
run: date +%Y-%m-%d_%H:%M

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22

33
# base image
4-
FROM ubuntu:22.04
4+
FROM ubuntu:24.04
55

66
# set timezone
77
ENV TZ=Europe/Berlin
@@ -15,7 +15,7 @@ RUN apt-get dist-upgrade -y
1515
RUN apt-get install -y python3 git
1616

1717
# for pdf, copied from scripts/install_requirements_pdf.sh
18-
RUN apt-get install -y texlive-xetex texlive-lang-german latexmk
18+
RUN apt-get install -y texlive-xetex texlive-lang-greek texlive-lang-german latexmk
1919
# for ebook, copied from scripts/install_requirements_ebook.sh
2020
RUN apt-get install -y texlive-extra-utils pandoc calibre imagemagick ghostscript
2121

@@ -30,7 +30,7 @@ VOLUME /app
3030

3131
# 1. preparation
3232
# 1.1 build/update image from Dockerfile
33-
# docker build -t hpmor
33+
# docker build -t hpmor .
3434

3535
# 1.2 create container that mounts current working dir to /app
3636
# docker run --name hpmor-de -it --mount type=bind,src="$(pwd)",dst=/app hpmor bash

scripts/ebook/step_6.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def fix_ellipsis(s: str) -> str:
6262
count=1,
6363
)
6464

65-
# now done via pandoc -V lang=de in 5.sh
65+
# now done via pandoc -V lang=de in step_5.sh
6666
# # set language
6767
# cont = re.sub(
6868
# r'(<html [^>]*) lang="" xml:lang=""',
@@ -93,13 +93,13 @@ def fix_ellipsis(s: str) -> str:
9393

9494
# remove ids from chapters since umlaute cause problem
9595
cont = re.sub(
96-
r'(<h\d) id="[^"]+"',
96+
r'(<h\d)\s+id="[^"]+"',
9797
r"\1",
9898
cont,
9999
flags=re.DOTALL | re.IGNORECASE,
100100
)
101101
cont = re.sub(
102-
r'(<h\d class="unnumbered") id="[^"]+"',
102+
r'(<h\d\s+class="unnumbered")\s+id="[^"]+"',
103103
r"\1",
104104
cont,
105105
flags=re.DOTALL | re.IGNORECASE,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
sudo apt-get install texlive-xetex texlive-lang-german latexmk
3+
sudo apt-get install texlive-xetex texlive-lang-greek texlive-lang-german latexmk

0 commit comments

Comments
 (0)