From f1e83ef38a7857a0be2d0f5d7d744fbb874c7c07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Benjamin=20H=C3=A4ttasch?=
 <benjamin.haettasch@fachschaft.informatik.tu-darmstadt.de>
Date: Sat, 8 May 2021 19:16:26 +0200
Subject: [PATCH] Use fork of django-tex that allows multiple consecutive runs
 of latex compile command

Additionally, this provides better escaping of user content
Set setting for consecutive runs to 2
---
 AKPlanning/settings.py | 3 ++-
 requirements.txt       | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/AKPlanning/settings.py b/AKPlanning/settings.py
index f01056ac..380475ae 100644
--- a/AKPlanning/settings.py
+++ b/AKPlanning/settings.py
@@ -92,7 +92,7 @@ TEMPLATES = [
         'APP_DIRS': True,
         'OPTIONS': {
             'environment': 'AKModel.environment.improved_tex_environment',
-        }
+        },
     },
 ]
 
@@ -147,6 +147,7 @@ LANGUAGES = [
 INTERNAL_IPS = ['127.0.0.1', '::1']
 
 LATEX_INTERPRETER = 'pdflatex'
+LATEX_RUN_COUNT = 2
 
 # Static files (CSS, JavaScript, Images)
 # https://docs.djangoproject.com/en/2.2/howto/static-files/
diff --git a/requirements.txt b/requirements.txt
index c4d0c932..55307ddc 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -8,6 +8,6 @@ django-simple-history==3.0.0
 django-registration-redux==2.9
 django-debug-toolbar==3.2.1
 django-bootstrap-datepicker-plus==3.0.5
-django-tex==1.1.8.post1
+django-tex @ git+https://github.com/bhaettasch/django-tex.git@91db2dc814a35c6e1d4a4b758a1a7b56822305b5
 mysqlclient==2.0.3  # for production deployment
 pytz==2021.1
-- 
GitLab