From 1768ce1d95183a34b9bfb8097df79d5fa3b89f2b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 May 2025 21:52:55 +0200 Subject: [PATCH] topic/settings --- cnam.marc/thesis/topic/settings.tex | 78 +++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 cnam.marc/thesis/topic/settings.tex diff --git a/cnam.marc/thesis/topic/settings.tex b/cnam.marc/thesis/topic/settings.tex new file mode 100644 index 0000000..7986231 --- /dev/null +++ b/cnam.marc/thesis/topic/settings.tex @@ -0,0 +1,78 @@ +% variables +\def\first{\ml{First}{Prénom}} +\def\last{\ml{LAST}{NOM}} +\def\org{\ml{Organization}{Organisme}} +\def\role{\ml{Role}{Fonction}} +\def\tt{\ml{Title}{Civilité}} + +% acronyms, glossary +\usepackage[acronym,toc]{glossaries} +\makeglossaries + +% tune table of contents +\usepackage{tocloft} +\setcounter{secnumdepth}{3} +\setcounter{tocdepth}{3} + +% links +\hypersetup{ +pdfinfo={ +Title={\titlelong\ - \titlesub}, +Author={\authorlong}, +Creator={XeLaTeX / report}, +}, +colorlinks, +citecolor=blue, +filecolor=blue, +linkcolor=blue, +urlcolor=blue, +} + +% adjust chapter titles +\usepackage{etoolbox} +\makeatletter +\patchcmd{\@makechapterhead}{50\p@}{0pt}{}{} +\patchcmd{\@makeschapterhead}{50\p@}{0pt}{}{} +\makeatother + +% set paper geometry +\usepackage{geometry} +\geometry{a4paper,portrait,top=20mm,bottom=20mm,left=20mm,right=20mm} + +% images +\usepackage{graphicx} + +% set fonts +\usepackage{fontspec} +% set relative sizes +\usepackage{relsize} +\setlength{\parindent}{0em} +\setlength{\parskip}{1em} +\setmainfont{DejaVu Sans} +\setmonofont{DejaVu Sans Mono} + +% set spacings +\usepackage{setspace} + +% lists of figures, tables +\usepackage{tocbibind} + +% references after polyglossia +\usepackage[sorting=anyt]{biblatex} +\bibliography{\name} + +% commands + +\newcommand{\cnam}{\includegraphics[height=1in]{../../cnam}} + +\newcommand{\hr}{\rule{\textwidth}{1pt}} + +\newcommand{\hrq}{\rule{.25\textwidth}{1pt}} + +% environments + +\newenvironment{itmz}{\begin{itemize} +%\setlength{\itemsep}{0em} +%\setlength{\parsep}{0em} +%\setlength{\parskip}{0em} +}{\end{itemize}}