diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c0e797e823e817272b3b631f0cbf6aadaca14fe6..ae1cb6f2b4427f62e35693015cc086b0bc9e90bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,7 +3,7 @@ image: bitnami/minideb:latest
 build:
   script:
     - apt update
-    - apt install -y python3-pip texlive-xetex texlive-latex-extra pandoc wget unzip fontconfig texlive-font-utils
+    - apt install -y --no-install-recommends python3-pip texlive-xetex texlive-latex-extra pandoc wget unzip fontconfig texlive-font-utils texlive-fonts-recommended ghostscript
     - pip3 install sphinx
     - wget https://github.com/rsms/inter/releases/download/v3.15/Inter-3.15.zip
     - mkdir -p ~/.local/share/fonts
diff --git a/src/build-pdf-book.sh b/src/build-pdf-book.sh
index 404513fea972e91903488232867e303bd14a6068..1941bc8e3f0d367b5685bfd24af5126d567b72de 100755
--- a/src/build-pdf-book.sh
+++ b/src/build-pdf-book.sh
@@ -32,10 +32,10 @@ done
 cat _tex/post.tex >>reform-handbook.tex
 
 # generate reform-handbook.pdf
-xelatex reform-handbook.tex
+xelatex --interaction=nonstopmode reform-handbook.tex
 # thrice to get the TOC right
-xelatex reform-handbook.tex
-xelatex reform-handbook.tex
+xelatex --interaction=nonstopmode reform-handbook.tex
+xelatex --interaction=nonstopmode reform-handbook.tex
 
 # clean up
 mv reform-handbook.pdf ../build/