Joseph Wright mentions in an comment to this tex.SE answer that it is possible to “hook into” the \( and \) commands to change their behaviour. Say that I'd like to force a cramped style on all inline equations by e.g. wrapping them in \cramped (from the mathtools package) by hooking into the \( and \) commands. How would I do that? Or is there perhaps an easier way to force a cramped style?
Asked
Active
Viewed 182 times
6
1 Answers
12
I would say
\def\(#1\){$\cramped{#1}$}
Perhaps too simplistic, but it should work.
egreg
- 1,121,712
\defscans its definition tokens greedily without parsing) – Konrad Rudolph Jul 20 '11 at 07:14\(...\). – egreg Jul 20 '11 at 07:38