diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2025-03-21 14:22:07 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2025-03-21 14:22:07 +0100 |
commit | 869728581626dd361d7c3c9bd8d4804b72850c5e (patch) | |
tree | 0b2a46269b26fdd13b2e17e6b41259dd2fa7a3a7 /common | |
parent | 0c2ada30f2180b8d0add9ba5e57869eaa3ffcf15 (diff) |
Diffstat (limited to 'common')
-rwxr-xr-x | common/99_sidebar.tex | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/common/99_sidebar.tex b/common/99_sidebar.tex index 5bc96cd..57d76ad 100755 --- a/common/99_sidebar.tex +++ b/common/99_sidebar.tex @@ -26,6 +26,17 @@ % this template. % % \def\nocolumns{} +% +% The column is supposed to be on the left on the document, with the index 0. You +% can change this by defining a counter sidebarindex with +% +% \newcounter{sidebarindex} +% \setcounter{sidebarindex}{1} + +\ifdefined\sidebarindex +\else + \newcommand\sidebarindex{0} +\fi \ifdefined\nocolumns \else @@ -38,12 +49,12 @@ \let\endchangemargin=\endlist \ifdefinedcolor{backsidecolor}{% - \backgroundcolor{c[0]}{backsidecolor} + \backgroundcolor{c[\sidebarindex]}{backsidecolor} }{} % Une commande dédiée pour les notes de marge \newcommand{\DUsidebar}[1]{% - \switchcolumn[0] + \switchcolumn[\sidebarindex] \begin{changemargin}{0.7cm}{0.7cm} % Sélectionne la police alternative \AltFont\selectfont |