more conditions for dynamic title
This commit is contained in:
@@ -25,5 +25,5 @@ contributes:
|
|||||||
type-document:
|
type-document:
|
||||||
cours: false
|
cours: false
|
||||||
exercice: false
|
exercice: false
|
||||||
actvite: false
|
activite: false
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,25 @@
|
|||||||
%% DYNAMIC TITLE
|
%% DYNAMIC TITLE
|
||||||
|
|
||||||
$if(type-document.cours)$
|
$if(type-document.cours)$
|
||||||
|
$if(subtitle)$
|
||||||
\rohead*[Cours]{Cours - $subtitle$}
|
\rohead*[Cours]{Cours - $subtitle$}
|
||||||
|
$else$
|
||||||
|
\rohead*[Cours]{Cours}
|
||||||
|
$endif$
|
||||||
$elseif(type-document.exercice)$
|
$elseif(type-document.exercice)$
|
||||||
|
$if(subtitle)$
|
||||||
\rohead*[Exercices]{Exercices - $subtitle$}
|
\rohead*[Exercices]{Exercices - $subtitle$}
|
||||||
|
$else$
|
||||||
|
\rohead*[Exercices]{Exercices}
|
||||||
|
$endif$
|
||||||
$elseif(type-document.activite)$
|
$elseif(type-document.activite)$
|
||||||
|
$if(subtitle)$
|
||||||
\rohead*[Activité]{Activité - $subtitle$}
|
\rohead*[Activité]{Activité - $subtitle$}
|
||||||
$else$
|
$else$
|
||||||
\rohead*{$subtitle$}
|
\rohead*[Activité]{Activité}
|
||||||
|
$endif$
|
||||||
|
$elseif(subtitle)$
|
||||||
|
\rohead*{$subtitle$}
|
||||||
|
$else$
|
||||||
|
\rohead*{}
|
||||||
$endif$
|
$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{tblr}
|
||||||
\end{center}
|
\end{center}
|
||||||
|
|
||||||
|
# Besoin de sauter une page
|
||||||
|
|
||||||
|
\lipsum
|
||||||
|
|
||||||
# More Information
|
# More Information
|
||||||
|
|
||||||
You can learn more about controlling the appearance of PDF output here: <https://quarto.org/docs/output-formats/pdf-basics.html>
|
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