[texhax] Prime on \sum

Philip G. Ratcliffe philip.ratcliffe at fastwebnet.it
Sun Jan 10 12:33:29 CET 2010

> 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 following solves the ordering problem:


> The similarity of 
> \sumstrut to Knuth's \strut will be obvious.

And this is a slightly more economical and general sum strut:


Note, however, there is extra horizontal space between the sum and prime
with respect to what is obtained from \sum\nolimits', which my first
solution avoided. Note also what happens to, eg,
$$\sumprime^{\infty\times\infty}$$; again, my first solution avoids this
problem, as does the following (which also solves the height problem):


Cheers,  Phil 

More information about the texhax mailing list