From f83e8b39df08ea9e9ca130a4578c749d48d55844 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 10 Aug 2019 20:36:56 +0200 Subject: First commit --- model_3/resources/99_sidebar.tex | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 model_3/resources/99_sidebar.tex (limited to 'model_3/resources/99_sidebar.tex') diff --git a/model_3/resources/99_sidebar.tex b/model_3/resources/99_sidebar.tex new file mode 100755 index 0000000..d9fe38e --- /dev/null +++ b/model_3/resources/99_sidebar.tex @@ -0,0 +1,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}% +} -- cgit v1.2.3