This commit is contained in:
2024-10-23 15:56:17 +02:00
parent bd19d043f8
commit bd4f683e4d
4 changed files with 66 additions and 70 deletions

View File

@@ -1,8 +1,3 @@
% Changes
\usepackage[draft, defaultcolor=Blue, xcolor=dvipsnames]{changes} % Track changes
\definechangesauthor[color=RawSienna]{CP}
\newcommand{\CP}[1]{\comment[id=CP]{#1}}
% Images
\usepackage{graphicx}
\usepackage{caption}% Point references to the figure not the caption
@@ -15,6 +10,15 @@
\usepackage{pdflscape}% Landscape pages
\usepackage{afterpage}% Execute command after the next page break
% Floatings (images and tables) : less restrictive constraints (https://robjhyndman.com/hyndsight/latex-floats/index.html)
\setcounter{topnumber}{2}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4}
\renewcommand{\topfraction}{0.85}
\renewcommand{\bottomfraction}{0.85}
\renewcommand{\textfraction}{0.15}
\renewcommand{\floatpagefraction}{0.7}
% Formatting
\usepackage[autostyle]{csquotes}% For quotes
\usepackage[dvipsnames]{xcolor}% More colors
@@ -25,6 +29,12 @@
\usepackage[hang]{footmisc}
\setlength{\footnotemargin}{3mm}% Margin between footnote number and text
% Less hbox/vbox badness messages
\hfuzz=20pt
\vfuzz=20pt
\hbadness=2000
\vbadness=\maxdimen
% Links
\usepackage{hyperref}
\hypersetup{

View File

@@ -19,7 +19,7 @@
%\usepackage{libertinust1math}% Libertinus math font
\fi
\usepackage[english]{babel} % Typographical rules
\usepackage[main=english,french]{babel}% Typographical rules
\usepackage{microtype}% Micro-typography improvements (slightly more compact, better to read)
% Fonts: Use sans-serif for sections
@@ -33,7 +33,7 @@
% Parts, chapters and sections
\NewCommandCopy{\oldchapter}{\chapter}
\RenewDocumentCommand{\chapter}{s o m}{% #1 = star (no number), #2 = short title, #3 = title
\RenewDocumentCommand{\chapter}{s o m}{% #1 = star, #2 = short title, #3 = title
\IfBooleanTF{#1}{%
\oldchapter*{#3}% Starred chapter
\addcontentsline{toc}{chapter}{#3}% Add to the table of contents
@@ -76,9 +76,3 @@
}
\setlength{\headheight}{14pt}
% Less hbox/vbox badness messages
\hfuzz=20pt
\vfuzz=20pt
\hbadness=2000
\vbadness=\maxdimen

View File

@@ -13,15 +13,6 @@
\singlespacing
}{}
% Floatings (images and tables) : less restrictive constraints (https://robjhyndman.com/hyndsight/latex-floats/index.html)
\setcounter{topnumber}{2}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4}
\renewcommand{\topfraction}{0.85}
\renewcommand{\bottomfraction}{0.85}
\renewcommand{\textfraction}{0.15}
\renewcommand{\floatpagefraction}{0.7}
% Images
% example: \fig[1]{filename}{Caption}[Additional caption text, not shown in the list of figures]
% reference later with: \figref{filename}
@@ -141,8 +132,6 @@
% Local table of contents
\usepackage{titletoc}
\newcommand{\chaptertoc}{% Print the table of contents for the chapter
%\hypersetup{linkcolor=black}%
\section*{Contents}% Add a section title
\vspace{-1.5em}%
\horizontalrule%
@@ -155,3 +144,6 @@
\horizontalrule%
\vspace{2em}%
}
\newcommand{\nochaptertoc}{%
\stopcontents%
}