diff options
| author | Sébastien Dailly <sebastien@chimrod.com> | 2017-12-17 21:14:09 +0100 | 
|---|---|---|
| committer | Sébastien Dailly <sebastien@chimrod.com> | 2017-12-17 21:14:09 +0100 | 
| commit | 110af509a41e8c3bbc8f282be70a5d746423548f (patch) | |
| tree | cf716db3fe56c59af6cdd30180f894d836f0527e /latex_docutils/texmf/tex/latex/docUtils/DUsidebar | |
| parent | 5776999cb5862e41e408996cb2cc09a69a4265cc (diff) | |
Update latex conf
Diffstat (limited to 'latex_docutils/texmf/tex/latex/docUtils/DUsidebar')
| -rw-r--r-- | latex_docutils/texmf/tex/latex/docUtils/DUsidebar/DUsidebar.sty | 48 | 
1 files changed, 48 insertions, 0 deletions
| diff --git a/latex_docutils/texmf/tex/latex/docUtils/DUsidebar/DUsidebar.sty b/latex_docutils/texmf/tex/latex/docUtils/DUsidebar/DUsidebar.sty new file mode 100644 index 0000000..20defda --- /dev/null +++ b/latex_docutils/texmf/tex/latex/docUtils/DUsidebar/DUsidebar.sty @@ -0,0 +1,48 @@ +\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}} + | 
