Clean some portion of code concerning footer and header
This commit is contained in:
parent
f9a462e2ac
commit
bbea8188a2
@ -127,12 +127,12 @@
|
|||||||
\IfNoValueTF{ \subtitle }{
|
\IfNoValueTF{ \subtitle }{
|
||||||
% \cohead[\@title]{\@title}
|
% \cohead[\@title]{\@title}
|
||||||
% \rohead[Activité]{Activité}
|
% \rohead[Activité]{Activité}
|
||||||
\cohead[]{\@title}
|
% \cohead[]{\@title}
|
||||||
\rohead*[]{Activité}
|
\rohead*[]{Activité}
|
||||||
}{
|
}{
|
||||||
% \cohead[\@title]{\@title}
|
% \cohead[\@title]{\@title}
|
||||||
% \rohead[Activité]{Activité - \@subtitle}
|
% \rohead[Activité]{Activité - \@subtitle}
|
||||||
\cohead[]{\@title}
|
% \cohead[]{\@title}
|
||||||
\rohead*[]{Activité - \@subtitle}
|
\rohead*[]{Activité - \@subtitle}
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
@ -140,23 +140,23 @@
|
|||||||
% \cohead[\@title]{\@title}
|
% \cohead[\@title]{\@title}
|
||||||
% \rohead[Exercices]{Exercices}
|
% \rohead[Exercices]{Exercices}
|
||||||
\IfNoValueTF{ \subtitle }{
|
\IfNoValueTF{ \subtitle }{
|
||||||
\cohead[]{\@title}
|
% \cohead[]{\@title}
|
||||||
\rohead*[]{Exercices}
|
\rohead*[]{Exercices}
|
||||||
}{
|
}{
|
||||||
\cohead[]{\@title}
|
% \cohead[]{\@title}
|
||||||
\rohead*[]{Exercices - \@subtitle}
|
\rohead*[]{Exercices - \@subtitle}
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
\ifthenelse{ \equal{\type}{q} }{
|
\ifthenelse{ \equal{\type}{q} }{
|
||||||
% \cohead[\@title]{\@title}
|
% \cohead[\@title]{\@title}
|
||||||
% \rohead[Rappels]{Rappels - \@subtitle}
|
% \rohead[Rappels]{Rappels - \@subtitle}
|
||||||
\cohead*[]{\@title}
|
% \cohead*[]{\@title}
|
||||||
\rohead*[]{Rappels - \@subtitle}
|
\rohead*[]{Rappels - \@subtitle}
|
||||||
}{
|
}{
|
||||||
\ifthenelse{ \equal{\type}{n} }{
|
\ifthenelse{ \equal{\type}{n} }{
|
||||||
% \cohead[\@title]{\@title}
|
% \cohead[\@title]{\@title}
|
||||||
% \rohead[Rappels]{Rappels - \@subtitle}
|
% \rohead[Rappels]{Rappels - \@subtitle}
|
||||||
\cohead*[]{\@title}
|
% \cohead*[]{\@title}
|
||||||
\rohead*[]{}
|
\rohead*[]{}
|
||||||
}{
|
}{
|
||||||
\rohead*[Cours]{Cours - \@subtitle}
|
\rohead*[Cours]{Cours - \@subtitle}
|
||||||
@ -165,14 +165,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% define the page numbering style
|
||||||
\pagenumbering{arabic}
|
\pagenumbering{arabic}
|
||||||
%\ofoot*{\pagemark}% pagenumber in the outer footer with scrheadings and plain style
|
% clear the defauls page header and footer, so the standard page numbering
|
||||||
%\ohead[]{\headmark}% headmark only with scrheadings
|
% \clearpairofpagestyles
|
||||||
|
|
||||||
|
% set my own numbering form for the footer
|
||||||
\cofoot[\thepage\ /\ \pageref{LastPage}]{\thepage\ /\ \pageref{LastPage}}
|
\cofoot[\thepage\ /\ \pageref{LastPage}]{\thepage\ /\ \pageref{LastPage}}
|
||||||
\cefoot[\thepage\ /\ \pageref{LastPage}]{\thepage\ /\ \pageref{LastPage}}
|
\cefoot[\thepage\ /\ \pageref{LastPage}]{\thepage\ /\ \pageref{LastPage}}
|
||||||
|
|
||||||
%\clearpairofpagestyles% removes the default page header and footer entries
|
|
||||||
\pagestyle{scrheadings}
|
\pagestyle{scrheadings}
|
||||||
\setkomafont{pagehead}{\normalfont\bfseries}
|
\setkomafont{pagehead}{\normalfont\bfseries}
|
||||||
\setkomafont{pagefoot}{\normalfont}
|
\setkomafont{pagefoot}{\normalfont}
|
||||||
|
Loading…
Reference in New Issue
Block a user