From 6350f40e31524ebce4280780000bbac55122ffc8 Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Sun, 24 Jan 2016 22:39:29 +0100 Subject: [PATCH] tituly | oprava tak, aby lidi bez titulu nemeli MM --- seminar/templates/seminar/archiv/tituly.tex | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/seminar/templates/seminar/archiv/tituly.tex b/seminar/templates/seminar/archiv/tituly.tex index 0720e736..72b1cdde 100644 --- a/seminar/templates/seminar/archiv/tituly.tex +++ b/seminar/templates/seminar/archiv/tituly.tex @@ -7,8 +7,14 @@ {% load tex %} {% for r in resitele %} - {% spaceless %} -\def\{{r.ascii}}{\titul{{r.titul|sloz}}\relax} - {% endspaceless %} + {% if r.titul == '' %} + {% spaceless %} + \def\{{r.ascii}}{} + {% endspaceless %} + {% else %} + {% spaceless %} + \def\{{r.ascii}}{\titul{{r.titul|sloz}}\relax} + {% endspaceless %} + {% endif %} {% endfor %} {% endautoescape %}