code harmonization
This commit is contained in:
parent
f84cbb80dd
commit
e213dad6b3
5 changed files with 59 additions and 20 deletions
|
@ -7,31 +7,54 @@
|
|||
\usepackage[T1]{fontenc} % encoding
|
||||
\renewcommand{\familydefault}{\sfdefault} % sans-serif font
|
||||
|
||||
\usepackage[french]{babel} % langages
|
||||
% Langages
|
||||
\usepackage[french]{babel}
|
||||
\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
|
||||
|
||||
% Change page dimensions
|
||||
% \usepackage[
|
||||
% a4paper,
|
||||
% left=20mm,
|
||||
% top=20mm,
|
||||
% ]{geometry}
|
||||
|
||||
% Bibliography
|
||||
\bibliographystyle{unsrt}
|
||||
\nocite{*}
|
||||
|
||||
% Metadata
|
||||
\def\docTitle{Title}
|
||||
\def\docAuthor{Author}
|
||||
% Metadatas
|
||||
\def\docTitle{TITLE}
|
||||
\def\docAuthor{YOU}
|
||||
\def\authorMail{mailto:place@holder.com}
|
||||
\def\docSubject{SUBJECT}
|
||||
\def\docLocation{LOCATION}
|
||||
|
||||
% Dependencies
|
||||
\usepackage[
|
||||
pdfauthor={\docAuthor},
|
||||
pdftitle={\docTitle},
|
||||
pdfsubject={\docSubject}, % subject metadata
|
||||
hidelinks,
|
||||
]{hyperref}
|
||||
|
||||
|
||||
\title{\docTitle}
|
||||
\author{\docAuthor}
|
||||
\extra{\docSubject~$\cdot$ \docLocation}
|
||||
\date{}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
\flushbottom
|
||||
\tableofcontents
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
\documentclass[class=article]{standalone}
|
||||
|
||||
% Code integration
|
||||
% \usepackage{minted}
|
||||
% \usemintedstyle{emacs}
|
||||
|
||||
\begin{document}
|
||||
|
||||
Here is the first section.
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
\documentclass[class=article]{standalone}
|
||||
|
||||
% Code integration
|
||||
% \usepackage{minted}
|
||||
% \usemintedstyle{emacs}
|
||||
|
||||
\begin{document}
|
||||
|
||||
Here is the second section.
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
\documentclass[class=article]{standalone}
|
||||
|
||||
% Code integration
|
||||
% \usepackage{minted}
|
||||
% \usemintedstyle{emacs}
|
||||
|
||||
\begin{document}
|
||||
|
||||
Here is the third section.
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
\usepackage[T1]{fontenc} % encoding
|
||||
\renewcommand{\familydefault}{\sfdefault} % sans-serif font
|
||||
|
||||
\usepackage[french]{babel} % langages
|
||||
% Langages
|
||||
\usepackage[french]{babel}
|
||||
\frenchsetup{SmallCapsFigTabCaptions=false}
|
||||
|
||||
% Add \extra info to title
|
||||
|
@ -18,31 +19,34 @@
|
|||
}
|
||||
\makeatother
|
||||
|
||||
% \usepackage[ % change page dimensions
|
||||
% Change page dimensions
|
||||
% \usepackage[
|
||||
% a4paper,
|
||||
% left=20mm,
|
||||
% top=20mm,
|
||||
% ]{geometry}
|
||||
|
||||
% \usepackage{minted} % code integration
|
||||
% Code integration
|
||||
% \usepackage{minted}
|
||||
% \usemintedstyle{emacs}
|
||||
|
||||
\newcommand{\mytitle}{TITLE}
|
||||
\newcommand{\myauthor}{YOU}
|
||||
\newcommand{\mysubject}{SUBJECT}
|
||||
\newcommand{\mylocation}{LOCATION}
|
||||
\newcommand{\mymail}{mailto:place@holder.com}
|
||||
% Metadatas
|
||||
\def\docTitle{TITLE}
|
||||
\def\docAuthor{YOU}
|
||||
\def\authorMail{mailto:place@holder.com}
|
||||
\def\docSubject{SUBJECT}
|
||||
\def\docLocation{LOCATION}
|
||||
|
||||
\usepackage[
|
||||
pdfauthor={\myauthor}, % author metadata
|
||||
pdftitle={\mytitle}, % title metadata
|
||||
pdfsubject={\mysubject}, % subject metadata
|
||||
pdfauthor={\docAuthor}, % author metadata
|
||||
pdftitle={\docTitle}, % title metadata
|
||||
pdfsubject={\docSubject}, % subject metadata
|
||||
hidelinks, % clickable links in table of contents
|
||||
]{hyperref}
|
||||
|
||||
\title{\mytitle}
|
||||
\author{\href{\mymail}{\myauthor}}
|
||||
\extra{\mysubject~$\cdot$ \mylocation}
|
||||
\title{\docTitle}
|
||||
\author{\href{\authorMail}{\docAuthor}}
|
||||
\extra{\docSubject~$\cdot$ \docLocation}
|
||||
\date{}
|
||||
|
||||
\begin{document}
|
||||
|
|
Loading…
Reference in a new issue