From ea179f430fb7070c733534a9ce1715c75255c16b Mon Sep 17 00:00:00 2001 From: valentin <valentinb@fsmpi.rwth-aachen.de> Date: Mon, 20 May 2019 19:40:31 +0200 Subject: [PATCH] partially fixed \marginbox --- workshops/latex/latex.tex | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index 42e83eb..deb0199 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} -- GitLab