Exponents in Latex Without Math Mode

Exponents in Latex Without Math Mode

I was wondering if there was a way to write exponents in LaTeX without Math Mode?

Math Mode centers the text in the middle of the paper, which is inconvenient for the paper I am trying to write.

2

2 Answers

You can use \textsuperscript{...} outside of math mode to do this. For example:

n\textsuperscript{2} for n-squared,

n\textsuperscript{th} for n-th.

My understanding is that both \textsuperscript and \textsubscript used to be part of the fixltx2e package until 2015 when they and some other commands were added directly into LaTeX so no package was needed.

1

I'd suggest to use $....$:

\documentclass[a4paper, ngerman, 12pt]{scrreprt}
\begin{document}
This is a blind text trying to write exponents in a textline. $a^{2}$  This is a blind text trying to write exponents in a textline.

$a^{2}$
\end{document}

The first part of the code gives you an exponent during textflow. The second part creates an exponent on the left.

Your Answer

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

Chloe Bennett
Author

Chloe Bennett

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.