From 0c2ada30f2180b8d0add9ba5e57869eaa3ffcf15 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 21 Mar 2025 10:13:33 +0100 Subject: Automatically starts the columns for all document with a sidebar --- model_4/resources/00_preamble.tex | 1 + model_4/resources/99_sidebar.tex | 28 +--------------------------- 2 files changed, 2 insertions(+), 27 deletions(-) (limited to 'model_4') diff --git a/model_4/resources/00_preamble.tex b/model_4/resources/00_preamble.tex index c92dc33..d6d7875 100755 --- a/model_4/resources/00_preamble.tex +++ b/model_4/resources/00_preamble.tex @@ -23,3 +23,4 @@ \input{../common/10_lists.tex} \input{../common/10_nowidows.tex} \input{../common/10_levels.tex} +\input{../common/99_sidebar.tex} diff --git a/model_4/resources/99_sidebar.tex b/model_4/resources/99_sidebar.tex index 36bc102..6f3d42f 100755 --- a/model_4/resources/99_sidebar.tex +++ b/model_4/resources/99_sidebar.tex @@ -1,30 +1,4 @@ -\newlength{\notesep} - -\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]} -\let\endchangemargin=\endlist - \ifdefinedcolor{backsidecolor}{% \backgroundcolor{c[1]}{backsidecolor} + \backgroundcolor{c[0]}{white} }{} - -% Une commande dédiée pour les notes de marge -\newcommand{\DUsidebar}[1]{% - \switchcolumn[0] - \begin{changemargin}{0.5cm}{1cm} - \AltFont\selectfont - \ifdefinedcolor{textsidecolor}{\color{textsidecolor}}{} - #1 - \end{changemargin} - \vspace{\notesep} - \switchcolumn - \ifdefinedcolor{textsidecolor}{\color{black}}{} -} - -\AtBeginDocument{% - \begin{paracol}{2} -} -\AtEndDocument{% - % Make the column go to the bottom - \flushpage - \end{paracol} -} -- cgit v1.2.3