From 0c2ada30f2180b8d0add9ba5e57869eaa3ffcf15 Mon Sep 17 00:00:00 2001
From: Sébastien Dailly <sebastien@dailly.me>
Date: Fri, 21 Mar 2025 10:13:33 +0100
Subject: Automatically starts the columns for all document with a sidebar

---
 model_4/resources/99_sidebar.tex | 28 +---------------------------
 1 file changed, 1 insertion(+), 27 deletions(-)

(limited to 'model_4/resources/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

