Réorganise les options du template
This commit is contained in:
parent
9c3d988348
commit
57e2e50547
1 changed files with 13 additions and 7 deletions
|
@ -449,37 +449,43 @@ $endif$
|
||||||
$endif$
|
$endif$
|
||||||
pdfcreator={LaTeX via pandoc}}
|
pdfcreator={LaTeX via pandoc}}
|
||||||
|
|
||||||
|
\usepackage{etoolbox}
|
||||||
$if(title)$
|
$if(title)$
|
||||||
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
|
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(subtitle)$
|
$if(subtitle)$
|
||||||
$if(beamer)$
|
$if(beamer)$
|
||||||
$else$
|
$else$
|
||||||
\usepackage{etoolbox}
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
|
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
|
||||||
\apptocmd{\@title}{\par {\large #1 \par}}{}{}
|
\apptocmd{\@title}{\par {\large #1 \par}}{}{}
|
||||||
}
|
}
|
||||||
\providecommand{\version}[1]{% add version to \maketitle
|
|
||||||
\apptocmd{\@date}{ -- {\normalsize version #1}}{}{}
|
|
||||||
}
|
|
||||||
\providecommand{\authorMail}[1]{% add mail author to \maketitle
|
|
||||||
\apptocmd{\@author}{\\ {\normalsize \href{mailto:#1}{#1}}}{}{}
|
|
||||||
}
|
|
||||||
\makeatother
|
\makeatother
|
||||||
$endif$
|
$endif$
|
||||||
\subtitle{$subtitle$}
|
\subtitle{$subtitle$}
|
||||||
$endif$
|
$endif$
|
||||||
|
$if(author)$
|
||||||
|
\makeatletter
|
||||||
|
\providecommand{\authorMail}[1]{% add mail author to \maketitle
|
||||||
|
\apptocmd{\@author}{\\ {\normalsize \href{mailto:#1}{#1}}}{}{}
|
||||||
|
}
|
||||||
|
\makeatother
|
||||||
\author{$for(author)$$author$$sep$ \and $endfor$}
|
\author{$for(author)$$author$$sep$ \and $endfor$}
|
||||||
$if(authorMail)$
|
$if(authorMail)$
|
||||||
\authorMail{$authorMail$}
|
\authorMail{$authorMail$}
|
||||||
$endif$
|
$endif$
|
||||||
|
$endif$
|
||||||
$if(date)$
|
$if(date)$
|
||||||
\date{$date$}
|
\date{$date$}
|
||||||
$else$
|
$else$
|
||||||
\date{\today}
|
\date{\today}
|
||||||
$endif$
|
$endif$
|
||||||
$if(version)$
|
$if(version)$
|
||||||
|
\makeatletter
|
||||||
|
\providecommand{\version}[1]{% add version to \maketitle
|
||||||
|
\apptocmd{\@date}{ -- {\normalsize version #1}}{}{}
|
||||||
|
}
|
||||||
|
\makeatother
|
||||||
\version{$version$}
|
\version{$version$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(beamer)$
|
$if(beamer)$
|
||||||
|
|
Loading…
Reference in a new issue