diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index 42e83ebc157f0bcfc7e884fe80a18d512bca9efe..deb019934bfb5b304874c13f0532bf7f317f6170 100644 --- a/workshops/latex/latex.tex +++ b/workshops/latex/latex.tex @@ -28,10 +28,14 @@ \newcommand\marginbox[3][2pt]{ + % USAGE: \marginbox[margin width]{width}{content} + % TODO: width is set manually such that it fits real width! + \newlength\marginwidth + \setlength\marginwidth{#1} \begin{tikzpicture}[even odd rule, scale=1] \node[anchor=north west] (text) {% - \begin{minipage}{#1}% - #2% + \begin{minipage}{#2-2\marginwidth-10pt}% + #3% \end{minipage}% }; \begin{pgfonlayer}{background}