X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=Utils%2FFormats.tex;h=93e9d67bff859a0376ad0920b2f38cf55f1f8c51;hp=5dc0158c23bba389bce649bb20fec58094313049;hb=b2047c9f1622d62aecc6708dd19c38b14810f275;hpb=43d50fb84915e330993e9ef04c1c380709b903e0 diff --git a/Utils/Formats.tex b/Utils/Formats.tex index 5dc0158..93e9d67 100644 --- a/Utils/Formats.tex +++ b/Utils/Formats.tex @@ -15,3 +15,25 @@ % a bunch of empty space at the start of the frame. \framed[offset=0mm,location=middle,strut=no,align=right,frame=off]{#1} } + +% Define a \strikethrough command. For some reason, this does blue +% strikethrough, sometime that still needs fixing. +\definetextbackground + [strikethrough] + [location=text, + alternative=4, + 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] + +% vim: set sw=2 sts=2 expandtab: