Réorganise les headers et footers

This commit is contained in:
Gregory Trolliet 2023-10-02 20:51:24 +02:00
parent cb71b44c6a
commit 42972b2b57

View file

@ -463,7 +463,7 @@ $else$
\providecommand{\version}[1]{% add version to \maketitle
\apptocmd{\@date}{ -- {\normalsize version #1}}{}{}
}
\providecommand{\authorMail}[1]{% add version to \maketitle
\providecommand{\authorMail}[1]{% add mail author to \maketitle
\apptocmd{\@author}{\\ {\normalsize \href{mailto:#1}{#1}}}{}{}
}
\makeatother
@ -471,13 +471,17 @@ $endif$
\subtitle{$subtitle$}
$endif$
\author{$for(author)$$author$$sep$ \and $endfor$}
$if(authorMail)$
\authorMail{$authorMail$}
$endif$
$if(date)$
\date{$date$}
$else$
\date{\today}
$endif$
$if(version)$
\version{$version$}
$endif$
$if(beamer)$
$if(institute)$
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
@ -514,11 +518,14 @@ $endif$
$if(header)$
\fancyhead[CO,CE]{$header$}
$endif$
\fancyhead[RO,RE]{v$version$}
\fancyfoot[LO,RE]{$title$}
$if(version)$
\fancyhead[RO,LE]{v$version$}
$endif$
\fancyfoot[LO,RE]{$footer$}
\fancyfoot[CE,CO]{$title$}
% Total page without link (because of the * on pageref)
\fancyfoot[CE,CO]{\thepage / \pageref*{LastPage}}
\fancyfoot[RO,LE]{$footer$}
\fancyfoot[RO,LE]{\thepage / \pageref*{LastPage}}
\fancypagestyle{firstpage}{%
\fancyhead{}%
@ -579,6 +586,8 @@ $if(linestretch)$
$endif$
$if(has-frontmatter)$
\mainmatter
\thispagestyle{fancy}
$endif$
$body$