more conditions for dynamic title
This commit is contained in:
@@ -25,5 +25,5 @@ contributes:
|
||||
type-document:
|
||||
cours: false
|
||||
exercice: false
|
||||
actvite: false
|
||||
activite: false
|
||||
|
||||
|
||||
@@ -1,11 +1,25 @@
|
||||
%% DYNAMIC TITLE
|
||||
|
||||
$if(type-document.cours)$
|
||||
$if(subtitle)$
|
||||
\rohead*[Cours]{Cours - $subtitle$}
|
||||
$else$
|
||||
\rohead*[Cours]{Cours}
|
||||
$endif$
|
||||
$elseif(type-document.exercice)$
|
||||
$if(subtitle)$
|
||||
\rohead*[Exercices]{Exercices - $subtitle$}
|
||||
$else$
|
||||
\rohead*[Exercices]{Exercices}
|
||||
$endif$
|
||||
$elseif(type-document.activite)$
|
||||
$if(subtitle)$
|
||||
\rohead*[Activité]{Activité - $subtitle$}
|
||||
$else$
|
||||
\rohead*{$subtitle$}
|
||||
\rohead*[Activité]{Activité}
|
||||
$endif$
|
||||
$elseif(subtitle)$
|
||||
\rohead*{$subtitle$}
|
||||
$else$
|
||||
\rohead*{}
|
||||
$endif$
|
||||
BIN
template.pdf
BIN
template.pdf
Binary file not shown.
@@ -39,6 +39,10 @@ Ce document est un exemple d'usage de ce template.
|
||||
\end{tblr}
|
||||
\end{center}
|
||||
|
||||
# Besoin de sauter une page
|
||||
|
||||
\lipsum
|
||||
|
||||
# More Information
|
||||
|
||||
You can learn more about controlling the appearance of PDF output here: <https://quarto.org/docs/output-formats/pdf-basics.html>
|
||||
|
||||
Reference in New Issue
Block a user