diff --git a/.github/workflows/print.yml b/.github/workflows/print.yml index ea98cda..b488419 100644 --- a/.github/workflows/print.yml +++ b/.github/workflows/print.yml @@ -2,9 +2,12 @@ name: Print Book on: push: - branches: [ "main" ] + branches: + - main + - 'feat/*' pull_request: - branches: [ "main" ] + branches: + - main jobs: @@ -14,9 +17,17 @@ jobs: steps: - uses: actions/checkout@v4 + with: + # rebases and merge verifying + fetch-depth: 0 + - name: print book inside docker container run: make inside + - name: verify commit signature + # ensure that every commit has a signature + run: git log -1 --show-signature + - name: export pdf uses: actions/upload-artifact@v4 with: diff --git a/Makefile b/Makefile index 6b2b1cb..791b3c6 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ IMAGE_NAME = facile:latest CONTAINER_NAME = builder +ARTEFACT = ./tmp/book.pdf + docker-build: docker build -t $(IMAGE_NAME) . @@ -18,5 +20,8 @@ clean: inside: clean docker-run mkdir -p tmp - docker cp $(CONTAINER_NAME):/work/output/main.pdf ./tmp/book.pdf + docker cp $(CONTAINER_NAME):/work/output/main.pdf ${ARTEFACT} docker cp $(CONTAINER_NAME):/work/output/main.log ./tmp/book.log + +quick: inside + xdg-open ${ARTEFACT} diff --git a/book/chapters/01_einleitung.tex b/book/chapters/01_einleitung.tex index 25562f0..586d3db 100644 --- a/book/chapters/01_einleitung.tex +++ b/book/chapters/01_einleitung.tex @@ -1,9 +1,39 @@ \chapter{Einleitung} -\selectlanguage{ngerman} -Dies ist die deutsche Einleitung. -\selectlanguage{latin} -Brevis est velit, sed verae litterae manent. +\begin{center} +\includegraphics[width=0.8\textwidth]{images/intro.png} +\end{center} -\selectlanguage{ngerman} -Weitere Hinweise auf die Edition. +% \textbf{Mater:} Salve, parva.\\ +% \textbf{Parva:} Salve, Mater.\\ + +% \textbf{Mater:} Ecce pila.\\ +% \textbf{Parva:} Pila!\\ + +% \textbf{Mater:} Pila magna est.\\ +% \textbf{Parva:} Magna pila.\\ + +% \textbf{Mater:} Ludamus pila.\\ +% \textbf{Parva:} Ludere pila!\\ + +% \textbf{Mater:} Pilam volvo.\\ +% \textbf{Parva:} Pila venit!\\ + +% \textbf{Mater:} Pilam pulsas.\\ +% \textbf{Parva:} Pulsare pila.\\ + +% \textbf{Mater:} Pila longe it.\\ +% \textbf{Parva:} Vale, pila!\\ + +% \textbf{Mater:} Bene lusisti, parva.\\ + +% \selectlanguage{ngerman} +% Dies ist die deutsche Einleitung. + +% \selectlanguage{latin} +% Brevis est velit, sed verae litterae manent. + +% \selectlanguage{ngerman} +% Weitere Hinweise auf die Edition. + +\newpage diff --git a/book/chapters/03_abschluss.tex b/book/chapters/03_abschluss.tex index 93be15c..52e2e30 100644 --- a/book/chapters/03_abschluss.tex +++ b/book/chapters/03_abschluss.tex @@ -1,3 +1,23 @@ \chapter{Abschluss} -\selectlanguage{ngerman} -Schlussbemerkungen und Danksagung. + +\begin{center} +\includegraphics[width=0.8\textwidth]{images/outro.png} +\end{center} + +% Lepus: Salve! +% Ursus: Salve! +% Anas: Salve! +% Lepus: Esurio. +% Ursus: Ego quoque. +% Anas: Ego quoque. +% Lepus: Carotam habeo. +% Ursus: Mel habeo. +% Anas: Panem habeo. +% Lepus: Partimur? +% Ursus: Ita! +% Anas: Ita! +% Lepus: Hoc bonum est. +% Ursus: Amici boni sunt. +% Anas: Amici sumus! + +\newpage diff --git a/book/images/intro.png b/book/images/intro.png new file mode 100644 index 0000000..9c955d1 Binary files /dev/null and b/book/images/intro.png differ diff --git a/book/images/outro.png b/book/images/outro.png new file mode 100644 index 0000000..1012f09 Binary files /dev/null and b/book/images/outro.png differ diff --git a/book/main.tex b/book/main.tex index e3f06d9..cea27e9 100644 --- a/book/main.tex +++ b/book/main.tex @@ -17,6 +17,7 @@ \usepackage{microtype} \usepackage{graphicx} +\graphicspath{{book/images/}} \usepackage{biblatex} \addbibresource{bibliography.bib}