Make pret-lam preserve alignment using whitespace.
[matthijs/master-project/report.git] / Utils / Formats.tex
index 993a9883a901bb16f35e440e19d7f50bccf73cea..aae99ed81a528fa3a3a335da9148c168d2a860aa 100644 (file)
@@ -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}}}