Change names of document's type

This commit is contained in:
Jeff Lance 2019-12-15 19:47:24 +01:00
parent 4b312fde26
commit de1fc15444

View File

@ -73,7 +73,7 @@
% %
% %
\DeclareOptionX{type}[cours]{% \DeclareOptionX{type}[crs]{%
\def\type{#1}% \def\type{#1}%
} }
@ -122,7 +122,7 @@
%% %%
\ohead{} \ohead{}
\ifthenelse{ \equal{\type}{activity} }{ \ifthenelse{ \equal{\type}{act} }{
\IfNoValueTF{ \subtitle }{ \IfNoValueTF{ \subtitle }{
% \cohead[\@title]{\@title} % \cohead[\@title]{\@title}
% \rohead[Activité]{Activité} % \rohead[Activité]{Activité}
@ -135,7 +135,7 @@
\rohead[]{Activité - \@subtitle} \rohead[]{Activité - \@subtitle}
} }
}{ }{
\ifthenelse{ \equal{\type}{exercise} }{ \ifthenelse{ \equal{\type}{exe} }{
% \cohead[\@title]{\@title} % \cohead[\@title]{\@title}
% \rohead[Exercices]{Exercices} % \rohead[Exercices]{Exercices}
\IfNoValueTF{ \subtitle }{ \IfNoValueTF{ \subtitle }{
@ -146,7 +146,7 @@
\rohead[]{Exercices - \@subtitle} \rohead[]{Exercices - \@subtitle}
} }
}{ }{
\ifthenelse{ \equal{\type}{auto} }{ \ifthenelse{ \equal{\type}{aut} }{
% \cohead[\@title]{\@title} % \cohead[\@title]{\@title}
% \rohead[Rappels]{Rappels - \@subtitle} % \rohead[Rappels]{Rappels - \@subtitle}
\cohead[]{\@title} \cohead[]{\@title}