projects
/
matthijs
/
master-project
/
report.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Define \epmh{foo} for easy emphasis.
[matthijs/master-project/report.git]
/
Utils
/
Formats.tex
diff --git
a/Utils/Formats.tex
b/Utils/Formats.tex
index 993a9883a901bb16f35e440e19d7f50bccf73cea..d42a496126d87afcc12bdf55d3c162435637472d 100644
(file)
--- a/
Utils/Formats.tex
+++ b/
Utils/Formats.tex
@@
-25,3
+25,10
@@
background=,
frame=off]
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][]