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_3/resources/99_sidebar.tex | 21 +++------------------
 1 file changed, 3 insertions(+), 18 deletions(-)

(limited to 'model_3/resources/99_sidebar.tex')

diff --git a/model_3/resources/99_sidebar.tex b/model_3/resources/99_sidebar.tex
index fb98c57..d8ecbfd 100755
--- a/model_3/resources/99_sidebar.tex
+++ b/model_3/resources/99_sidebar.tex
@@ -1,17 +1,8 @@
-\newlength{\notesep}
-
-\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
-\let\endchangemargin=\endlist 
-
-
-\ifdefinedcolor{backsidecolor}{%
-  \backgroundcolor{c[1]}{backsidecolor}
-}{}
-
-\setlength{\columnseprule}{0.2pt}
+\def\nocolumns{}
+\input{../common/99_sidebar.tex}
 
 % Une commande dédiée pour les notes de marge
-\newcommand{\DUsidebar}[1]{%
+\renewcommand{\DUsidebar}[1]{%
   \switchcolumn[1]
   \begin{changemargin}{0.5cm}{0.0cm}
   \small
@@ -22,9 +13,3 @@
   \switchcolumn
   \ifdefinedcolor{textsidecolor}{\color{black}}{}
 }
-
-\AtEndDocument{%
-  % Make the column go to the bottom
-  \flushpage
-  \end{paracol}
-}
-- 
cgit v1.2.3

