diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2019-08-16 10:35:52 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2019-08-16 10:35:52 +0200 |
commit | fd67f410b29933b2b1d9861af0c9ce12dd297ba9 (patch) | |
tree | 931904834606afd1915bd5e845adcbcae0713186 /example_1/resources/99_sidebar.tex | |
parent | 42e21fdaf26219f844ea626ae5df6010712fed04 (diff) |
Provide new example
Diffstat (limited to 'example_1/resources/99_sidebar.tex')
-rwxr-xr-x | example_1/resources/99_sidebar.tex | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/example_1/resources/99_sidebar.tex b/example_1/resources/99_sidebar.tex new file mode 100755 index 0000000..2b41d2a --- /dev/null +++ b/example_1/resources/99_sidebar.tex @@ -0,0 +1,33 @@ +\newlength{\notesep} + +\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.25cm} +\columnratio{0.75} + +\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 + \ifdefinedcolor{textsidecolor}{\color{black}}{} +} + +\AtBeginDocument{% + \begin{paracol}{2} +} +\AtEndDocument{% + % Make the column go to the bottom + %\flushpage + \end{paracol} +} |