aboutsummaryrefslogtreecommitdiff
path: root/model_3
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2025-03-21 10:13:33 +0100
committerSébastien Dailly <sebastien@dailly.me>2025-03-21 10:13:33 +0100
commit0c2ada30f2180b8d0add9ba5e57869eaa3ffcf15 (patch)
treeef753bd2513f24da4431cf612ebaf8d5ece3b43e /model_3
parent17b234852e45b333ec638ecb3a38848bd4305f44 (diff)
Automatically starts the columns for all document with a sidebar
Diffstat (limited to 'model_3')
-rwxr-xr-xmodel_3/resources/99_sidebar.tex21
1 files changed, 3 insertions, 18 deletions
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}
-}