From f2aabbf7c519e9f03329f84615055f67e74183ce Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 26 Mar 2024 21:09:51 +0100 Subject: [PATCH] * use my* instead of set* * add \extra info to title --- latex/document/document.tex | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) 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}