From ebbd7133d44b57d2d22139fd0773c962c653c60e Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Thu, 26 Sep 2024 21:06:34 +0200 Subject: [PATCH] Doc \importchapter --- config/thesis_commands.tex | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/config/thesis_commands.tex b/config/thesis_commands.tex index d3b4f0d..d6cec46 100644 --- a/config/thesis_commands.tex +++ b/config/thesis_commands.tex @@ -1,9 +1,11 @@ -% Content +% Chapters \newcommand{\importchapter}[2]{% Load a chapter (#2) in a path (#1) - \cleardoublepage% after a clear double page - \graphicspath{{#1/figures/}}% with figures - \glsresetall% reset the acronyms - \includefrom{#1}{#2}% and relative paths \input in the chapter + \glsresetall% Reset the acronyms + \graphicspath{{#1/figures/}}% Enable relative paths for images + + \cleardoublepage% Start on a right page + \includefrom{#1}{#2}% Include with relative paths \input in the chapter +} } \newcommand{\noindentskip}{\bigskip\noindent} % Skip a line and remove the indent