Skip to content
Snippets Groups Projects
Commit b2dd78b5 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Fix tex error by switching to LuaLaTeX and using a django-tex version with improved escaping

parent f520b547
No related branches found
No related tags found
No related merge requests found
\documentclass[aspectratio=169]{beamer} \documentclass[aspectratio=169]{beamer}
\usetheme[numbering=fraction, progressbar=foot]{metropolis} \usetheme[numbering=fraction, progressbar=foot]{metropolis}
\usepackage[utf8]{inputenc} \usepackage{fontspec}
\usepackage{fontawesome5} \usepackage{fontawesome5}
\title{ {{- title -}} } \title{ {{- title -}} }
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
{%for category, ak_list in categories_with_aks %} {%for category, ak_list in categories_with_aks %}
\section{ {{- category.name | latex_escape_utf8 -}} } \section{ {{- category.name -}} }
{% for ak, next_aks in ak_list %} {% for ak, next_aks in ak_list %}
...@@ -38,12 +38,12 @@ ...@@ -38,12 +38,12 @@
%\setbeamertemplate{frame footer}{} %\setbeamertemplate{frame footer}{}
\begin{frame}[shrink=15] \begin{frame}
\frametitle{ {{- ak.name | latex_escape_utf8 -}} } \frametitle{ {{- ak.name | latex_escape -}} }
\vspace{1em} \vspace{1em}
\faUser~ {{ ak.owners_list | latex_escape_utf8 }} \faUser~ {{ ak.owners_list | latex_escape }}
\faClock~ {{ak.durations_list}} \faClock~ {{ak.durations_list}}
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
\faScroll \faScroll
{% endif %} {% endif %}
{{ ak.description | truncatechars(400) | latex_escape_utf8 }} {{ ak.description | truncatechars(280) | latex_escape }}
\vspace{2em} \vspace{2em}
...@@ -77,18 +77,18 @@ ...@@ -77,18 +77,18 @@
%\setbeamertemplate{frame footer}{} %\setbeamertemplate{frame footer}{}
\begin{frame}[shrink=15] \begin{frame}
\frametitle{ {{- ak.name | latex_escape_utf8 -}} } \frametitle{ {{- ak.name | latex_escape -}} }
\vspace{1em} \vspace{1em}
\faFilter~ {{ ak.category.name | latex_escape_utf8 }} \faFilter~ {{ ak.category.name | latex_escape }}
\faUser~ \faUser~
\faClock~ \faClock~
{{ ak.description | truncatechars(400) | latex_escape_utf8 }} {{ ak.description | truncatechars(280) | latex_escape }}
\vspace{2em} \vspace{2em}
......
...@@ -147,7 +147,7 @@ LANGUAGES = [ ...@@ -147,7 +147,7 @@ LANGUAGES = [
INTERNAL_IPS = ['127.0.0.1', '::1'] INTERNAL_IPS = ['127.0.0.1', '::1']
LATEX_INTERPRETER = 'pdflatex' LATEX_INTERPRETER = 'lualatex'
LATEX_RUN_COUNT = 2 LATEX_RUN_COUNT = 2
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
......
...@@ -12,7 +12,7 @@ AKPlanning has two types of requirements: System requirements are dependent on o ...@@ -12,7 +12,7 @@ AKPlanning has two types of requirements: System requirements are dependent on o
* Python 3.7 incl. development tools * Python 3.7 incl. development tools
* Virtualenv * Virtualenv
* pdflatex & beamer class (`texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-extra`) * pdflatex & beamer class (`texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-extra texlive-luatex`)
* for production using uwsgi: * for production using uwsgi:
* C compiler e.g. gcc * C compiler e.g. gcc
* uwsgi * uwsgi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment