X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=Utils%2FFormats.tex;h=9efeaf4a39414849e3999b28f8631482ffe9aea2;hp=993a9883a901bb16f35e440e19d7f50bccf73cea;hb=ccfb49592db010ff58398c4f644ebe093d31c7d5;hpb=f9bffdc572bf7657f969b82a372339a640f0844a diff --git a/Utils/Formats.tex b/Utils/Formats.tex index 993a988..9efeaf4 100644 --- a/Utils/Formats.tex +++ b/Utils/Formats.tex @@ -25,3 +25,13 @@ background=, frame=off] +\def\setwidthof#1\to#2% +{\bgroup +\setbox\scratchbox\hbox{#1}% +\expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}} + +% Allow \emph{foo} (and {\emph foo}, but that's not really needed). +\definealternativestyle[emph][\em][] + +% Put a bit of space betwen paragraphs, to make them easier to distinguish. +\setupwhitespace[small]