From: Matthijs Kooijman Date: Wed, 2 Sep 2009 09:15:28 +0000 (+0200) Subject: Define \epmh{foo} for easy emphasis. X-Git-Tag: final-thesis~267 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=commitdiff_plain;h=5b689412be9865239fa0ad0303f36e21963a6adf Define \epmh{foo} for easy emphasis. Normally, only {\em foo} works, but that is ugly and can add whitespace in some cases (such as at the start of a line). The solution for the latter, {\em{}foo} is even uglier. --- diff --git a/Utils/Formats.tex b/Utils/Formats.tex index aae99ed..d42a496 100644 --- a/Utils/Formats.tex +++ b/Utils/Formats.tex @@ -29,3 +29,6 @@ {\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][]