diff --git a/latex/document/document.tex b/latex/document/document.tex index 76c8e46..ef826e0 100644 --- a/latex/document/document.tex +++ b/latex/document/document.tex @@ -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}