aboutsummaryrefslogtreecommitdiff
path: root/model_1/resources/99_sidebar.tex
blob: 470f4c222cd7d26cdd1e1f6d33a52485899da336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\newlength{\notesep}

\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
\let\endchangemargin=\endlist 

% Une commande dédiée pour les notes de marge
\setlength{\columnsep}{0.25cm}
\columnratio{0.25}

\ifdefinedcolor{backsidecolor}{%
  \backgroundcolor{c[0]}{backsidecolor}
}{}

\newcommand{\DUsidebar}[1]{%
  \switchcolumn[0]
  \begin{changemargin}{0.7cm}{0.7cm} 
  \LibertineFont\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}
}