[comp.text.tex] A tricky sum

dynamics@janus.Berkeley.EDU (Dynamics Group) (07/05/90)

I need some help with the following display.  I want:

    N
  ____
  \    E             That is, I want to annotate the summation sign with
   \                 an E.
  /___
  i = 2

I tried

	\mathop{{\sum}^E}_{i=2}^N

which is fine except that the N is centered over the sum and the E,
so it is too far to the right.  I also tried

	{\sum_{i=2}^N}^E

which puts the E too far from the summation sign.

Is there a simple solution?

Chris Goedde
dynamics@janus.berkeley.edu

duchier@cs.yale.edu (Denys Duchier) (07/05/90)

In article <37404@ucbvax.BERKELEY.EDU> dynamics@janus.Berkeley.EDU (Dynamics Group) writes:
 >       N
 >     ____
 >     \    E             That is, I want to annotate the summation sign with
 >      \                 an E.
 >     /___
 >     i = 2
 >
 >   I tried
 >
 >	   \mathop{{\sum}^E}_{i=2}^N

How about: \sum_{i=2}^N{}^E
is this close enough?

--Denys

dynamics@janus.Berkeley.EDU (Dynamics Group) (07/05/90)

In article <DUCHIER.90Jul4211410@albania.cs.yale.edu> duchier-denys@cs.yale.edu writes:
    In article <37404@ucbvax.BERKELEY.EDU> I wrote

         How do I do this sum?

             N
           ____
           \    E             That is, I want to annotate the summation with
            \                 an E.
           /___
           i = 2
      
         I tried
      
      	   \mathop{{\sum}^E}_{i=2}^N

         which centers the N too far to the right.
 
>How about: \sum_{i=2}^N{}^E
>is this close enough?
>
>--Denys

No, unfortunately it leaves the E hanging out in the middle of nowhere.

Chris Goedde
dynamics@janus.berkeley.edu

duchier@cs.yale.edu (Denys Duchier) (07/05/90)

 >    Unfortunately, \sum_{i=2}^N{}^E leaves the E hanging out in the middle
 > of nowhere.  This could be because I actually have \sum_{i,i'=1}^N, and
 > the i,i"=1 extends beyond the sum.

Well, how about this:

  \mathop{\sum\nolimits^{%
    \hbox to 0pt{\smash{$\scriptstyle E$}}}}%
  _{i,i'=1}^N

--Denys

dynamics@janus.Berkeley.EDU (Dynamics Group) (07/07/90)

In article <DUCHIER.90Jul4222846@albania.cs.yale.edu> duchier-denys@cs.yale.edu writes:
> I wrote:
> >    Unfortunately, \sum_{i=2}^N{}^E leaves the E hanging out in the middle
> > of nowhere.  This could be because I actually have \sum_{i,i'=1}^N, and
> > the i,i"=1 extends beyond the sum.
>
Thanks to all who answered.  What I finally used was:


  \mathop{{\sum}^\rlap{\scriptstyle$E$}}_{i=1}^N

Chris Goedde
dynamics@janus.berkeley.edu