Nové tituly
This commit is contained in:
parent
9a50805a69
commit
6fb42fa076
1 changed files with 16 additions and 0 deletions
|
@ -12,6 +12,22 @@ POZOR! Kolize jmen! Dva řešitelé mají stejné makro!
|
||||||
{% autoescape off %}
|
{% autoescape off %}
|
||||||
{% load tex %}
|
{% 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}}={\titul{{r.titul|sloz}}},%
|
||||||
|
{% 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 %}
|
{% for r in resitele %}
|
||||||
{% if r.titul == '' %}
|
{% if r.titul == '' %}
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
|
Loading…
Reference in a new issue