Nové tituly
This commit is contained in:
parent
9a50805a69
commit
e8c5141408
1 changed files with 16 additions and 0 deletions
|
@ -12,6 +12,22 @@ POZOR! Kolize jmen! Dva řešitelé mají stejné makro!
|
|||
{% autoescape off %}
|
||||
{% load tex %}
|
||||
|
||||
\ExplSyntaxOn
|
||||
\char_set_catcode_other:n{32}% Odsud dál do \char_set_catcode_space:n{32} nesmí být za žádnou cenu jiná mezera (tj. i zlom řádku) než ty mezi jménem a příjmením
|
||||
\prop_const_linked_from_keyval:Nn\g_tituly%
|
||||
{%
|
||||
{% for r in resitele %}{{r|sloz}}={% if r.titul == '' %}{}{% else %}{\titul{{r.titul|sloz}}}{% endif %},%
|
||||
{% endfor %}}%
|
||||
\char_set_catcode_space:n{32}
|
||||
|
||||
\DeclareDocumentCommand\Titul{mO{#1}}{%
|
||||
\prop_if_in:NnTF\g_tituly{#1}%
|
||||
{\prop_item:Nn\g_tituly{#1}}%
|
||||
{\ClassError{mam}{Titul pro #1 nenalezen!}{}}%
|
||||
#2%
|
||||
}
|
||||
\ExplSyntaxOff
|
||||
|
||||
{% for r in resitele %}
|
||||
{% if r.titul == '' %}
|
||||
{% spaceless %}
|
||||
|
|
Loading…
Reference in a new issue