projects
/
matthijs
/
master-project
/
report.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eca644f
)
Define \epmh{foo} for easy emphasis.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 2 Sep 2009 09:15:28 +0000
(11:15 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 2 Sep 2009 09:15:28 +0000
(11:15 +0200)
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.
Utils/Formats.tex
patch
|
blob
|
history
diff --git
a/Utils/Formats.tex
b/Utils/Formats.tex
index aae99ed81a528fa3a3a335da9148c168d2a860aa..d42a496126d87afcc12bdf55d3c162435637472d 100644
(file)
--- 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][]