* use my* instead of set*

* add \extra info to title
This commit is contained in:
Mylloon 2024-03-26 21:09:51 +01:00
parent 90a1610f25
commit f2aabbf7c5
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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}