[texhax] Prime on \sum

Michael Barr barr at math.mcgill.ca
Sat Jan 9 22:52:47 CET 2010

Here are macros I have worked up to put a prime on a summation.


\setbox\sumstrutbox = \hbox{\vrule height \ht0 width 0pt depth \dp0}





Note that a subscript, if any, must come first and then a superscript, if 
there is one.  You cannot write \sumprime^\infty_{n=1}.  I think there is 
some way of parsing the latter, but I don't know how.  The similarity of 
\sumstrut to Knuth's \strut will be obvious.

Michael Barr

More information about the texhax mailing list