TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's say I want to write N^{eT}, but have N^e as a predefined command \Ne. Thus, I want to append the character T to the superscript of \Ne. Is this possible?

(Note that I don't want to write {\Ne}^T, since that will result in the T being one level above the e. This was adressed in Trick LaTeX into doing double superscripts by the way)

share|improve this question
It may help to explain how you intend to use the macro. Something along the lines of \def\Ne#1{$N^{e#1}$} is acceptable in your case? (usage: \Ne T) – guillem Apr 19 '12 at 14:46
What about using $\Ne{}^T$ (maybe putting it into a box to prevent a break between e and T)? – Stephen Apr 19 '12 at 18:08
Haha, I actually didn't know that was possible, Stephen. Thanks! – andreasdr Apr 19 '12 at 19:54
Similar question has been answered some time ago: tex.stackexchange.com/questions/33261/… – amorua Apr 19 '12 at 20:45
up vote 14 down vote accepted

Or what about an empty optional argument?


Which you can use

$\Ne$ or $\Ne[T]$
share|improve this answer
Accepted for conciseness. Thanks to all responders! – andreasdr Apr 19 '12 at 15:18
By the way, what does the asterisk after "\newcommand" do? – andreasdr Apr 19 '12 at 15:45
@andreasdr: The starred variant of \newcommand removes the capability to include lengthy arguments (like paragraphs). Surely, since your superscripts will only contain characters (not paragraphs), using \newcommand* is appropriate. – Werner Apr 19 '12 at 16:12
@andreasdr: A more detailed explanation of \newcommand* can be found at tex.stackexchange.com/questions/1050/… – Jake Apr 24 '12 at 10:40

Here is a "clever hack" inspired by (read: shamelessly copied from) the definition of math prime:



\Ne^T \Ne^T_5

You can do \Ne^{}_{} but not \Ne_{}^{}, otherwise the positioning is exactly as N^{}_{}

share|improve this answer

I would define \Ne in the following way:


This ensures that any following superscripts start at the same height as regular superscripts to N, but also trick TeX in thinking that it's not doubling a superscript:

enter image description here

\Ne\ $\Ne^T$\ $N^{eT}$

Note that this will not work properly for subscripts, since the placement will be off. It would require more effort to make that work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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