diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2025-03-21 10:13:33 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2025-03-21 10:13:33 +0100 |
commit | 0c2ada30f2180b8d0add9ba5e57869eaa3ffcf15 (patch) | |
tree | ef753bd2513f24da4431cf612ebaf8d5ece3b43e /model_4/resources | |
parent | 17b234852e45b333ec638ecb3a38848bd4305f44 (diff) |
Automatically starts the columns for all document with a sidebar
Diffstat (limited to 'model_4/resources')
-rwxr-xr-x | model_4/resources/00_preamble.tex | 1 | ||||
-rwxr-xr-x | model_4/resources/99_sidebar.tex | 28 |
2 files changed, 2 insertions, 27 deletions
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} -} |