* llap, rlap, clap equivalent for math
@ 2007-04-18 23:31 Aditya Mahajan
0 siblings, 0 replies; only message in thread
From: Aditya Mahajan @ 2007-04-18 23:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
Inspired by Alexander Perlis' macros in
http://www.tug.org/TUGboat/Articles/tb22-4/tb72perlS.pdf
can we have the math equivalent of llap etc. in ConTeXt.
Ideally, \llap etc. should be modified so that they work in math mode
also (just like \smash and \phantom). If not, we can have the
following simple definitions:
\def\mathclap{\mathpalette\domathclap}
\def\domathclap#1#2{\clap{$\m@th#1#2$}}
\def\mathllap{\mathpalette\domathllap}
\def\domathllap#1#2{\llap{$\m@th#1#2$}}
\def\mathrlap{\mathpalette\domathrlap}
\def\domathrlap#1#2{\rlap{$\m@th#1#2$}}
Usage:
\startformula
A = \sum_{\mathclap{1 \le i \le N}} a_i
\stopformula
Aditya
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-18 23:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-18 23:31 llap, rlap, clap equivalent for math Aditya Mahajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).