Réorganise les headers et footers
This commit is contained in:
parent
cb71b44c6a
commit
42972b2b57
1 changed files with 14 additions and 5 deletions
|
@ -463,7 +463,7 @@ $else$
|
||||||
\providecommand{\version}[1]{% add version to \maketitle
|
\providecommand{\version}[1]{% add version to \maketitle
|
||||||
\apptocmd{\@date}{ -- {\normalsize version #1}}{}{}
|
\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}}}{}{}
|
\apptocmd{\@author}{\\ {\normalsize \href{mailto:#1}{#1}}}{}{}
|
||||||
}
|
}
|
||||||
\makeatother
|
\makeatother
|
||||||
|
@ -471,13 +471,17 @@ $endif$
|
||||||
\subtitle{$subtitle$}
|
\subtitle{$subtitle$}
|
||||||
$endif$
|
$endif$
|
||||||
\author{$for(author)$$author$$sep$ \and $endfor$}
|
\author{$for(author)$$author$$sep$ \and $endfor$}
|
||||||
|
$if(authorMail)$
|
||||||
\authorMail{$authorMail$}
|
\authorMail{$authorMail$}
|
||||||
|
$endif$
|
||||||
$if(date)$
|
$if(date)$
|
||||||
\date{$date$}
|
\date{$date$}
|
||||||
$else$
|
$else$
|
||||||
\date{\today}
|
\date{\today}
|
||||||
$endif$
|
$endif$
|
||||||
|
$if(version)$
|
||||||
\version{$version$}
|
\version{$version$}
|
||||||
|
$endif$
|
||||||
$if(beamer)$
|
$if(beamer)$
|
||||||
$if(institute)$
|
$if(institute)$
|
||||||
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
|
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
|
||||||
|
@ -514,11 +518,14 @@ $endif$
|
||||||
$if(header)$
|
$if(header)$
|
||||||
\fancyhead[CO,CE]{$header$}
|
\fancyhead[CO,CE]{$header$}
|
||||||
$endif$
|
$endif$
|
||||||
\fancyhead[RO,RE]{v$version$}
|
$if(version)$
|
||||||
\fancyfoot[LO,RE]{$title$}
|
\fancyhead[RO,LE]{v$version$}
|
||||||
|
$endif$
|
||||||
|
|
||||||
|
\fancyfoot[LO,RE]{$footer$}
|
||||||
|
\fancyfoot[CE,CO]{$title$}
|
||||||
% Total page without link (because of the * on pageref)
|
% Total page without link (because of the * on pageref)
|
||||||
\fancyfoot[CE,CO]{\thepage / \pageref*{LastPage}}
|
\fancyfoot[RO,LE]{\thepage / \pageref*{LastPage}}
|
||||||
\fancyfoot[RO,LE]{$footer$}
|
|
||||||
|
|
||||||
\fancypagestyle{firstpage}{%
|
\fancypagestyle{firstpage}{%
|
||||||
\fancyhead{}%
|
\fancyhead{}%
|
||||||
|
@ -579,6 +586,8 @@ $if(linestretch)$
|
||||||
$endif$
|
$endif$
|
||||||
$if(has-frontmatter)$
|
$if(has-frontmatter)$
|
||||||
\mainmatter
|
\mainmatter
|
||||||
|
|
||||||
|
\thispagestyle{fancy}
|
||||||
$endif$
|
$endif$
|
||||||
$body$
|
$body$
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue