X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=Utils%2FFormats.tex;h=aae99ed81a528fa3a3a335da9148c168d2a860aa;hb=eca644f36a8fc0b7cc7abd985ef3c3779a0de712;hp=993a9883a901bb16f35e440e19d7f50bccf73cea;hpb=f9bffdc572bf7657f969b82a372339a640f0844a;p=matthijs%2Fmaster-project%2Freport.git diff --git a/Utils/Formats.tex b/Utils/Formats.tex index 993a988..aae99ed 100644 --- a/Utils/Formats.tex +++ b/Utils/Formats.tex @@ -25,3 +25,7 @@ background=, frame=off] +\def\setwidthof#1\to#2% +{\bgroup +\setbox\scratchbox\hbox{#1}% +\expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}}