aboutsummaryrefslogtreecommitdiff
path: root/model_3/resources/99_sidebar.tex
blob: d9fe38e92f7bfba48ba4a4e87711db1ba8b5156b (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
34
35
36
37
38
39
40
41
42
43
\newlength{\notesep}

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

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

\setlength{\columnseprule}{0.2pt}

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

\newcommand{\DUsidebar}[1]{%
  \switchcolumn[1]
  \begin{changemargin}{0.5cm}{0.0cm}
  \small
  \ifdefinedcolor{textsidecolor}{\color{textsidecolor}}{}
  #1
  \end{changemargin}
  \vspace{\notesep}
  \switchcolumn
}

\newcommand{\DUtitletitle}[1]{%
        \begin{CaviarDreamsFont}%
        \textbf\selectfont\color{sidecolor}{\uppercase{#1}}%
        \end{CaviarDreamsFont}%
 }

\AtEndDocument{%
  \flushpage
  \end{paracol}
}

\let\oldtitle\maketitle
\renewcommand{\maketitle}{%
  \oldtitle
  \thispagestyle{fancy}
  \begin{paracol}{2}%
}