To save some typing, I want to abbreviate \displaystyle to \ds. Thus,
I do:
MathJax.Hub.Config({
MMLorHTML: { prefer: {Firefox: "HTML", MSIE: "MML", other:
"HTML"} },
TeX: {
Macros: { ds: '{\\displaystyle}' }
}
});
But this does not seem to work as intended. For instance, \( \ds \int
\) fails to produce a large integral sign.
See
http://www.math.umbc.edu/~rouben/zz.html for a sample.
I may have misunderstood MathJax's syntax. Please correct me.
-- Rouben Rostamian
PS: Changing the definition of \ds to:
Macros: { ds: ['{\\displaystyle #1}',1] }
sort of solves the problem. But this makes \ds into what Lamport
calls a "command" as opposed to a "declaration" (page 27 of the
LaTeX2e manual).