Skip to content
Snippets Groups Projects
Commit 2fbffc27 authored by Frank Poetzsch-Heffter's avatar Frank Poetzsch-Heffter
Browse files

formatting tex code and colornames

parent 018330a8
No related branches found
No related tags found
No related merge requests found
...@@ -25,37 +25,26 @@ ...@@ -25,37 +25,26 @@
\textbf{Klassen} & \textbf{Std.} & \textbf{Lehrer} & \textbf{Fach} & \textbf{Raum} & \textbf{Hinweis}\\\hline \textbf{Klassen} & \textbf{Std.} & \textbf{Lehrer} & \textbf{Fach} & \textbf{Raum} & \textbf{Hinweis}\\\hline
\endhead \endhead
{% for sub in subs %} {% for sub in subs %}
{# ------------------------------ #}
{# Color groups of classes in grey/white #} {# Color groups of classes in grey/white #}
{% if last_classes != sub.classes %} {% if last_classes != sub.classes %}
{% if color_background %} {% if color_background %}{% set color_background = 0 %}
{% set color_background = 0 %} {% else %}{% set color_background = 1 %}
{% else %}
{% set color_background = 1 %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% set last_classes = sub.classes %} {% set last_classes = sub.classes %}
{# Background color #} {# Background color #}
{% if color_background %} {% if color_background %}\rowcolor{ grey }{% endif %}
\rowcolor{grey}
{% endif %}
{# ------------------------------ #}
{% with c=sub.color %} {% with c=sub.color %}
{# Display classes #} {# Display classes #}
\color{ {{c}}} \color{ {{c}} }\textbf{ {{ sub.classes }} } &
\textbf{ {{ sub.classes }} } &
{# Display lesson number #} {# Display lesson number #}
\color{ {{c}}} \color{ {{c}} } {{ sub.lesson }} &
{{ sub.lesson }} & \color{ {{c}} } {% include "timetable/latex/teacher.tex" %} &
\color{ {{c}}} {% include "timetable/latex/teacher.tex" %} & \color{ {{c}} } {% include "timetable/latex/subject.tex" %} &
\color{ {{c}}} {% include "timetable/latex/subject.tex" %} & \color{ {{c}} } {% include "timetable/latex/room.tex" %} &
\color{ {{c}}} {% include "timetable/latex/room.tex" %} &
{# Display badge (for cancellations) #} {# Display notice and new line #} {# Display badge (for cancellations) #} {# Display notice and new line #}
{% if sub.badge %} {% if sub.badge %} \footnotesize\badge{ {{ sub.badge }} } {% endif %}
\footnotesize\badge{ {{ sub.badge }} } \color{ {{c}} } \large\textit{ {{sub.text|default:""|safe|texify|safe}} } \\
{% endif %} \color{ {{c}}} \large\textit{ {{sub.text|default:""|safe|texify|safe}} } \\
{% endwith %} {% endwith %}
{% endfor %} {% endfor %}
\end{longtable} \end{longtable}
......
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