init-projects/latex/document/document.tex

64 lines
1.2 KiB
TeX
Raw Normal View History

2024-04-21 10:27:00 +02:00
\DocumentMetadata{testphase = {phase-III,math,firstaid}}
2023-10-03 12:08:51 +02:00
\documentclass{article}
\usepackage[T1]{fontenc} % encoding
\renewcommand{\familydefault}{\sfdefault} % sans-serif font
2024-04-20 15:25:46 +02:00
% Langages
\usepackage[french]{babel}
2023-10-03 12:08:51 +02:00
\frenchsetup{SmallCapsFigTabCaptions=false}
2024-04-21 10:32:49 +02:00
\usepackage{csquotes}
\MakeOuterQuote{"}
2023-10-03 12:08:51 +02:00
% Add \extra info to title
\makeatletter
\providecommand{\extra}[1]{
\apptocmd{\@author}{
\end{tabular}
\par\vspace*{0.7em}
\begin{tabular}[t]{c}
#1}{}{}
}
\makeatother
2024-04-20 15:25:46 +02:00
% Change page dimensions
% \usepackage[
2024-02-01 15:27:23 +01:00
% a4paper,
% left=20mm,
% top=20mm,
% ]{geometry}
2024-04-20 15:25:46 +02:00
% Code integration
% \usepackage{minted}
2024-02-01 15:27:23 +01:00
% \usemintedstyle{emacs}
2024-04-20 15:25:46 +02:00
% Metadatas
\def\docTitle{TITLE}
\def\docAuthor{YOU}
\def\authorMail{mailto:place@holder.com}
\def\docSubject{SUBJECT}
\def\docLocation{LOCATION}
2023-10-03 12:08:51 +02:00
2024-01-12 01:58:21 +01:00
\usepackage[
2024-04-20 15:25:46 +02:00
pdfauthor={\docAuthor}, % author metadata
pdftitle={\docTitle}, % title metadata
pdfsubject={\docSubject}, % subject metadata
hidelinks, % clickable links in table of contents
2024-01-12 01:58:21 +01:00
]{hyperref}
2024-04-20 15:25:46 +02:00
\title{\docTitle}
\author{\href{\authorMail}{\docAuthor}}
\extra{\docSubject~$\cdot$ \docLocation}
2023-10-03 12:08:51 +02:00
\date{}
\begin{document}
\maketitle
\flushbottom
2023-10-03 12:08:51 +02:00
\tableofcontents
\clearpage
\section{SECTION}
Hello, world!
\end{document}