I have the following Latexcode:

\mathscr{G} = A_{polygon} - \sum \limits_{C \in \Xi} A(C)

However, the sum index looks bad in my eyes, as the "is element of" sign is a little lower than the other two letters. It looks badly aligned. Is there a way to fix this? I don't want to change to to smaller case letters as I have a convention for letter cases in my document.

edit: I've added a picture

Picture of the rendered latexcode.

I'd like the element sign to be above the red line i.e. vertically centered with C and Ξ.

  • 1
    That is basically just how it looks in the standard font. It looks differently in other fonts. BTW: please remember to post full minimal examples instead of sniplets. Not everyone knows where \mathscr comes from – daleif Aug 24 '16 at 9:33
  • I should be \mathscr{G} = A_{\mathrm{polygon}} - \sum_{C \in \Xi} A(C), but, in any case, I don't think it looks bad. – Manuel Aug 24 '16 at 9:44
  • @JnxF. no please don't promote this, \text is for textual comments, polygon is not a comment but an index. Plus if the textual context is italic then so is the outout from \text which is not what you want here. – daleif Aug 24 '16 at 9:54
  • Thank you for your comments. I've added an image to make it more cleared what I want. – infinitezero Aug 24 '16 at 11:34

While the "does not look good" is in my opinion quite a matter of taste, you can easily define a new version by putting the \in in a box and raising the box by its depth:




Original: $A\in B$, $\displaystyle\sum_{A\in B}$
New: $A\myin B$, $\displaystyle\sum_{A\myin B}$


enter image description here

  • Of course, looks are always a matter of taste. Thank you for fulfilling my expectations :-) I'd upvote but I'm still collecting the required rep. – infinitezero Aug 24 '16 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.