I'd like to be able to create a customizable n-ary operator that behaves like \sum or \bigoplus but which takes an arbitrary symbol as an argument.

The closest that I have been able to come to achieving this is the following:



\[ \nop{argument}_{i\in I} g_i \]


Unfortunately the vertical spacing is, for lack of a better word, wrong and the space between the symbol and the limits is off as well. To see what's wrong with it try using \oplus as the argument and compare it to the output generated by \bigoplus_{i\in I} g_i. (If anyone knows how to fix the thickness that would be great too but it's not essential)

What I would like is something more along the lines of the code snippet in one of the answers on this page which is as follows:


(or the similar code on this page or this other page) but, unfortunately, I'm not sure of how to go about doing this.

(note: I'm using MiKTeX with TeXstudio)

I'd really appreciate the input of someone who is better versed in LaTeX than I am.


1 Answer 1


Do you mean like this?

  \nop{G}_{\text{no operation}} G^{\nop{A}_\text{no operation}}

enter image description here

  • Oh wow! I was really, really, close when I tried using the code snippet; I was just missing the math delimiters around #1. Thanks! I might do some messing around with the sizing to get it to match up with the other n-ary operators but that's fantastic :D
    – JessC
    Commented Jun 30, 2012 at 5:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .