diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 823ebdb873754d086ac1af95f9b3214bd4ff24f0..137cc5cae7f95b72a82b0af2a2e6f4827ac0485a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,7 +9,8 @@ build:
     - echo $SHELL
     - source /root/.bashrc
     - sage -pip install "pseudowalls==0.0.3" --extra-index-url https://gitlab.com/api/v4/projects/43962374/packages/pypi/simple
-    - make main.pdf || echo make failed
+    - make tilt.rs
+    - latexmk -use-make
   artifacts:
     paths:
       - main.pdf
diff --git a/Makefile b/Makefile
index 3e31a5c2a60e4f3ab5f189491edfbe8335e960a2..76d4646f765646166023bf50f5e2d7a8bd8c583c 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,10 @@ BIBFILES = $(addsuffix /references.bib, ${CHAPTERDIRS})
 
 SAGESCRIPT = main.sagetex.sage
 
-main.pdf: ${TEXFILES} ${BIBFILES} ${PREAMBLEFILES} main.sagetex.sout.tmp tilt.rs notebook_tex
+main.pdf: ${TEXFILES} ${BIBFILES} ${PREAMBLEFILES} main.sagetex.sout tilt.rs notebook_tex
 	latexmk || echo this fails but seems to produce pdf correctly
 
-main.sagetex.sout.tmp: ${SAGESCRIPT} chapter_py_libs
+main.sagetex.sout: ${SAGESCRIPT} chapter_py_libs
 	PYTHONPATH=`echo $(CHAPTERDIRS) | sed 's/ \+/:/g'` sage ${SAGESCRIPT}
 
 ${SAGESCRIPT}: ${TEXFILES}
diff --git a/latexmkrc b/latexmkrc
index e6d305a60dba99beae7d9c4ddc047b092ed92a77..e1b86fa934b5defb15b3b98cd7426fd317ea4c18 100644
--- a/latexmkrc
+++ b/latexmkrc
@@ -2,4 +2,5 @@ ensure_path("TEXINPUTS","edinburgh-math-latex/");
 @default_files = ('main.tex');
 $pdf_mode = 1;
 $pdflatex = 'lualatex -shell-escape -interaction=nonstopmode';
+$max_repeat = 8;
 @generated_exts = (@generated_exts, 'synctex.gz');
diff --git a/main.tex b/main.tex
index eebe192740520a51dbc70c69f7f45245e9fdcea9..27f2364b7d21a007cae0c71e4ff3877c6fa33a1f 100644
--- a/main.tex
+++ b/main.tex
@@ -40,7 +40,7 @@ sorting=ynt
 		{\scriptsize
 		\input{notebook-commands.tex}
 		\import{max-destabilizer-rank/}{characteristic_curves}
-		\import{max-destabilizer-rank/}{rank_zero_case}
+		%\import{max-destabilizer-rank/}{rank_zero_case}
 		}
 		\egroup