From f83e8b39df08ea9e9ca130a4578c749d48d55844 Mon Sep 17 00:00:00 2001
From: Sébastien Dailly <sebastien@chimrod.com>
Date: Sat, 10 Aug 2019 20:36:56 +0200
Subject: First commit

---
 model_2/resources/99_sidebar.tex | 48 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100755 model_2/resources/99_sidebar.tex

(limited to 'model_2/resources/99_sidebar.tex')

diff --git a/model_2/resources/99_sidebar.tex b/model_2/resources/99_sidebar.tex
new file mode 100755
index 0000000..a415a9f
--- /dev/null
+++ b/model_2/resources/99_sidebar.tex
@@ -0,0 +1,48 @@
+\usepackage{eso-pic}
+\usetikzlibrary{calc}
+
+\newlength{\notesep}
+
+\newlength{\sideBottomMargin}
+\setlength{\sideBottomMargin}{0.2cm}
+
+\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.5cm}
+\columnratio{0.29}
+
+\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
+}
+\usepackage[many]{tcolorbox}
+
+\newcommand{\DUtitletitle}[1]{%
+    \begin{tcolorbox}[colback=sidecolor, sharp corners]%
+    \begin{center}%
+        \begin{CaviarDreamsBoldFont}%
+        {\textbf\selectfont\color{white}{\scriptsize\uppercase{#1}}}%
+        \end{CaviarDreamsBoldFont}%
+  \end{center}
+    \end{tcolorbox}
+ }
+
+
+\AtEndDocument{
+  \flushpage
+  \end{paracol}
+}
+\let\oldtitle\maketitle
+\renewcommand{\maketitle}{{\oldtitle}\begin{paracol}{2}}
-- 
cgit v1.2.3

