X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=Utils%2FFormats.tex;fp=Utils%2FFormats.tex;h=aae99ed81a528fa3a3a335da9148c168d2a860aa;hp=993a9883a901bb16f35e440e19d7f50bccf73cea;hb=41753b358251eb737709bbc4172cb551ef41ef87;hpb=990efc0b29d23ad13b817fea96cf5fc6216ffc09 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}}}