diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index 4bbda8d226d9caa92960f344992f48d6169c888a..f17324d48ed297b57a5fc86796f3d8b0fc4ea132 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}