没有数学模式的LaTeX中的指数

时间:2018-01-26 17:35:03

标签: latex

我想知道是否有办法在没有数学模式的情况下在LaTeX中编写指数?

数学模式将文本放在纸张中间,这对我试图写的纸张来说不方便。

2 个答案:

答案 0 :(得分:3)

您可以在数学模式之外使用\textsuperscript{...}来执行此操作。例如:

n\textsuperscript{2}为n平方,

n\textsuperscript{th}代表第n。

我的理解是\textsuperscript\textsubscript曾经是fixltx2e包的一部分,直到2015年,当他们和其他一些命令直接添加到LaTeX中时,因此不需要包。

答案 1 :(得分:2)

我建议使用$ .... $

\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}

代码的第一部分在文本流程中为您提供了一个Exponent。第二个在左边创建一个指数。

相关问题