X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=Utils%2FFormats.tex;h=eb30bc72f341b1163e654a5e784a9c08aeef80c7;hp=63a58dfce4ad938b5c6f673c7ce6e92019001d8d;hb=0ab64c5ce2ab968001c96475b310cf6f020bd475;hpb=1108517b5c84c5fc7c8aa21ac60cd33e28487519 diff --git a/Utils/Formats.tex b/Utils/Formats.tex index 63a58df..eb30bc7 100644 --- a/Utils/Formats.tex +++ b/Utils/Formats.tex @@ -17,7 +17,7 @@ } % Define a \strikethrough command. For some reason, this does blue -strikethrough, sometime that still needs fixing. +% strikethrough, sometime that still needs fixing. \definetextbackground [strikethrough] [location=text, @@ -25,3 +25,19 @@ strikethrough, sometime that still needs fixing. 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] + +% Use the c alternative for the toc, which uses dots between the section +% name and the page number. +\setupcombinedlist [content][alternative=c] + +% vim: set sw=2 sts=2 expandtab: