* 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 \usepackage[french]{babel} % langages
\frenchsetup{SmallCapsFigTabCaptions=false} \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 % \usepackage[ % change page dimensions
% a4paper, % a4paper,
% left=20mm, % left=20mm,
@ -16,21 +27,22 @@
% \usepackage{minted} % code integration % \usepackage{minted} % code integration
% \usemintedstyle{emacs} % \usemintedstyle{emacs}
\newcommand{\settitle}{TITLE} \newcommand{\mytitle}{TITLE}
\newcommand{\setauthor}{YOU} \newcommand{\myauthor}{YOU}
\newcommand{\setsubject}{SUBJECT} \newcommand{\mysubject}{SUBJECT}
\newcommand{\setlocation}{LOCATION} \newcommand{\mylocation}{LOCATION}
\newcommand{\setmail}{mailto:place@holder.com} \newcommand{\mymail}{mailto:place@holder.com}
\usepackage[ \usepackage[
pdfauthor={\setauthor}, % author metadata pdfauthor={\myauthor}, % author metadata
pdftitle={\settitle}, % title metadata pdftitle={\mytitle}, % title metadata
pdfsubject={\setsubject}, % subject metadata pdfsubject={\mysubject}, % subject metadata
hidelinks, % clickable links in table of contents hidelinks, % clickable links in table of contents
]{hyperref} ]{hyperref}
\title{\settitle} \title{\mytitle}
\author{\href{\setmail}{\setauthor}\\\setsubject~$\cdot$ \setlocation} \author{\href{\mymail}{\myauthor}}
\extra{\mysubject~$\cdot$ \mylocation}
\date{} \date{}
\begin{document} \begin{document}