This question already has an answer here:

How do i use superscript without using math mode?

I want to write 2 m^{2} (2 squaremeters).

When i use the command m^{2} I get the following error: "Command \ae invalid in mode"

I'm writing my thesis in danish, and have a lot of danish references. Writing the danish letter Æ is only possible using the \ae command in citations.




marked as duplicate by Andrew Swann, egreg, user13907, Svend Tveskæg, Andrew Jun 2 '15 at 10:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    tex.stackexchange.com/questions/47324/… perhaps? But you have shown us nothing about your bibliography related content. There might be other/better(?) solutions than \textsuperscript – user31729 Jun 2 '15 at 9:11
  • @ChristianHupfer - Perfect! \textsuperscript{ ... } helped me! – Anders Jun 2 '15 at 9:15
  • 1
    You should use siunitx to get the proper spacing, 2 m^2 (in text mode) will not have the proper spacing between the value and the unit. – daleif Jun 2 '15 at 9:21

Using the command \textsuperscript{ ... } solved the problem.

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