From 42972b2b5781a6d7605f14b55ed9419fa4c39f4d Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Mon, 2 Oct 2023 20:51:24 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9organise=20les=20headers=20et=20footers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template.latex | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/template.latex b/template.latex index 5080f40..b171454 100644 --- a/template.latex +++ b/template.latex @@ -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$