* use my* instead of set*
* add \extra info to title
This commit is contained in:
parent
90a1610f25
commit
f2aabbf7c5
1 changed files with 22 additions and 10 deletions
|
@ -7,6 +7,17 @@
|
|||
\usepackage[french]{babel} % langages
|
||||
\frenchsetup{SmallCapsFigTabCaptions=false}
|
||||
|
||||
% Add \extra info to title
|
||||
\makeatletter
|
||||
\providecommand{\extra}[1]{
|
||||
\apptocmd{\@author}{
|
||||
\end{tabular}
|
||||
\par\vspace*{0.7em}
|
||||
\begin{tabular}[t]{c}
|
||||
#1}{}{}
|
||||
}
|
||||
\makeatother
|
||||
|
||||
% \usepackage[ % change page dimensions
|
||||
% a4paper,
|
||||
% left=20mm,
|
||||
|
@ -16,21 +27,22 @@
|
|||
% \usepackage{minted} % code integration
|
||||
% \usemintedstyle{emacs}
|
||||
|
||||
\newcommand{\settitle}{TITLE}
|
||||
\newcommand{\setauthor}{YOU}
|
||||
\newcommand{\setsubject}{SUBJECT}
|
||||
\newcommand{\setlocation}{LOCATION}
|
||||
\newcommand{\setmail}{mailto:place@holder.com}
|
||||
\newcommand{\mytitle}{TITLE}
|
||||
\newcommand{\myauthor}{YOU}
|
||||
\newcommand{\mysubject}{SUBJECT}
|
||||
\newcommand{\mylocation}{LOCATION}
|
||||
\newcommand{\mymail}{mailto:place@holder.com}
|
||||
|
||||
\usepackage[
|
||||
pdfauthor={\setauthor}, % author metadata
|
||||
pdftitle={\settitle}, % title metadata
|
||||
pdfsubject={\setsubject}, % subject metadata
|
||||
pdfauthor={\myauthor}, % author metadata
|
||||
pdftitle={\mytitle}, % title metadata
|
||||
pdfsubject={\mysubject}, % subject metadata
|
||||
hidelinks, % clickable links in table of contents
|
||||
]{hyperref}
|
||||
|
||||
\title{\settitle}
|
||||
\author{\href{\setmail}{\setauthor}\\\setsubject~$\cdot$ \setlocation}
|
||||
\title{\mytitle}
|
||||
\author{\href{\mymail}{\myauthor}}
|
||||
\extra{\mysubject~$\cdot$ \mylocation}
|
||||
\date{}
|
||||
|
||||
\begin{document}
|
||||
|
|
Loading…
Reference in a new issue