Texlive build context

This commit is contained in:
Benjamin Bohard 2020-09-02 14:57:04 +02:00
parent 822dc3617c
commit 5676297827
3 changed files with 38 additions and 2 deletions

View File

@ -1,4 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd src cd /src
make presentations/modules_EOLE_envole/support.pdf project_name=$(tamarin_db get project_name)
for tex in $project_name/*.tex
do
rubber --inplace --module=xelatex "$tex"
cp "${tex#.tex}.pdf" /dist/
# faire quelque chose pour le programme de la formation
done

View File

@ -7,4 +7,5 @@ echo 'RUN apt-get update && apt-get install --yes --no-install-recommends texliv
echo 'RUN apt-get update && apt-get install --yes --no-install-recommends make' >> Dockerfile echo 'RUN apt-get update && apt-get install --yes --no-install-recommends make' >> Dockerfile
echo 'RUN apt-get update && apt-get install --yes --no-install-recommends fonts-liberation fonts-liberation2' >> Dockerfile echo 'RUN apt-get update && apt-get install --yes --no-install-recommends fonts-liberation fonts-liberation2' >> Dockerfile
echo 'RUN apt-get update && apt-get install --yes --no-install-recommends python3-pygments' >> Dockerfile echo 'RUN apt-get update && apt-get install --yes --no-install-recommends python3-pygments' >> Dockerfile
echo 'RUN apt-get update && apt-get install --yes --no-install-recommends rubber' >> Dockerfile
echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile

28
profiles/texlive.conf Normal file
View File

@ -0,0 +1,28 @@
# Configuration générale du profil
[profile]
# Image Docker par défaut
default_image=ubuntu:focal
# Configuration de létape de pré-construction du conteneur
[containerbuild]
hooks=
containerbuild/texlive/add-packages,
containerbuild/texlive/add-ressources,
# Configuration de létape de pré-compilation des documents
[prebuild]
hooks=
prebuild/debian/copy-sources-to-workspace,
prebuild/debian/run-project-hooks,
prebuild/debian/load-project-db,
prebuild/texlive/complete-project-db,
# Configuration de létape de compilation du document
[build]
hooks=build/texlive/xelatex
# Configuration de létape de post-compilation du document
[postbuild]
hooks=
postbuild/debian/run-project-hooks,
postbuild/texlive/export-dist,