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