\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{DUsidebar}[2017/04/16 Docutils sidebar] \RequirePackage{kvoptions} \RequirePackage{mdframed} \RequirePackage{ifthen} % Option for the color line ( \DeclareStringOption {linecolor}[blue] \ProcessKeyvalOptions* % Défini une note de marge entourée d'un petit cadre % \ifthenelse{\equal{\DUsidebar@linecolor}{}}{% % Node bar colored defined, juste put the note in the margin \newcommand{\DUsidebar}[1]{\marginpar{\small#1}}% }{% \newcommand{\DUsidebar}[1]{% \marginpar[{\begin{mdframed}[topline=false,% bottomline=false,% leftline=false,% linecolor=\DUsidebar@linecolor,% innerrightmargin=2pt,% linewidth=.4pt]% {\small#1}% \end{mdframed}% }]{\begin{mdframed}[topline=false,% bottomline=false,% rightline=false,% linecolor=\DUsidebar@linecolor,% innerleftmargin=2pt,% linewidth=.4pt]% {\small#1}% \end{mdframed}% }% }% }% % % Permet de créer une note en utilisant le rôle « note » % % .. role:: note % % :note:`Ceci est un test` \newcommand{\DUrolenote}[1]{\marginpar{#1}}