{superscripts} are smaller characters appearing set slightly above the normal line.

learn more… | top users | synonyms (1)

98
votes
6answers
24k views

What's the quickest way to write “2nd” “3rd” etc in LaTeX?

If I want to use abbreviations for second, third and so on in my LaTeX documents, I am currently doing this: 2$^{nd}$ which seems unsatisfactory. Is there a macro I'm missing? I'm sure I could define ...
8
votes
3answers
3k views

Superscripts before a letter in math

I was writing this formula: $$^gp = ^gR^l_l+^go_l$$ $g$ are superscripts, but they should be close to other letters. How can I solve this problem?
6
votes
1answer
761 views

superscripts with xelatex? (footnotes, natbib)

This example illustrates some conflict between xelatex and natbib- and footnote-generated superscripts. The semi-colon between distinct citations is not typeset as a superscript, nor is the dagger. ...
3
votes
2answers
955 views

How to change parameters for \textsuperscript{} in french?

I try to put \textsuperscript{ère} with Roman digits everywhere in document but as I understood the command \textsuperscript{} in French makes effect for all symbols except of "è"? This solution ...
13
votes
5answers
1k views

Double superscript error involving tilde

When I write {{\tilde{C}}^{0}_{har}}^{\Gamma} (or the same with fewer curly brackets) in Tex I obtain a double superscript error and I can't solve it. Does someone know how to fix this?
61
votes
3answers
63k views

Superscript outside math mode

What is the easiest way to superscript text outside of math mode? For example, let's say I want to write the $n^{th}$ element, but without the math mode's automatic italicization of the th. And what ...
16
votes
4answers
6k views

How to typeset indices before a symbol?

I know how to write a usual index with the help of the underscore, but I seem to be unable to find out how to write an (upper/lower) index in front of a letter/text. These kind of indices are common ...
22
votes
3answers
1k views

maths nested superscripts and subscripts displayed incorrectly inline

I am having a strange bug when using nested superscripts and subscripts in inline math (displaystyle works fine). This behaviour is the same independently of the font used or the compiler (orginally ...
10
votes
2answers
584 views

Weird relative positioning of superscript and subscript with \dot, \bar

Minimal working example: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \[ {A^\mu}_\nu \] \[ {\bar{A}^\mu}_\nu \] \end{document} The result is. Why is the placement of ...
9
votes
2answers
154 views

recursive multiple subscript and superscript with xparse

How can I define a new command with xparse, something like this: \NewDocumentCommand\tensorkor{ m >{\SplitList{,}}o >{\SplitList{,}}o } { ????? } that i can execute $ ...
8
votes
1answer
1k views

Temporarily disable superscript in citation

I use superscripted citation style by using \setcitestyle{super} in LaTeX preamble, which done the job as I wanted. However, there are several region, in which I need to temporarily disable the ...
6
votes
1answer
379 views

Redefine the default depth of superscript and subscript document-wide

The behavior of subscript and supscript operator _ and ^ is like a blackbox to me, I am curious if I could redefine the behavior of them globally for a document. I searched the forum and found ...
6
votes
4answers
2k views

Problem adding subscripts and superscripts [duplicate]

Possible Duplicate: Cursive text after _ I need to have some subscripted and superscripted text in my thesis document. But when I try to do it the way as H_{2O} or S^{2}. I get an error at ...
5
votes
2answers
566 views

Superscript page numbers with natbib

I'm with an annoying problem with natbib. When the super parameter is used, the citation happily goes superscript but the page or chapter number doesn't. \documentclass{article} \usepackage[numbers, ...
18
votes
2answers
300 views

How to prevent superscripts from moving under \sqrt?

When I put an expression with superscripts under a \sqrt, the superscripts (here "vis") move down a bit. How can I prevent that, so that it looks consistent no matter whether it's under a root or not? ...
12
votes
2answers
406 views

Differences in vertical positioning of superscripts and subscripts depending on grouping (`{ }`): Why? Caveats? Workarounds?

This question about {(x+y)}^2 vs (x+y)^2 drew my attention to the slightly different vertical positioning of super- and subscripts for such expressions. Compare (x+y)^8_8 (left) and {(x+y)}^8_8 ...
13
votes
1answer
329 views

How do you get a scriptscriptstyle-sized prime?

As you go from \displaystyle to \scriptstyle to \scriptscriptstyle, letters and numbers, for instance, shrink. Weirdly, to my mind, the prime symbol (') shrinks from \displaystyle to \scriptstyle, ...
14
votes
3answers
657 views

Adjust box around hyperref footnote links

Is it possible to adjust the size of the box around the footnote links produced by hyperref? Specifically, I would like to move the base of the box closer to the base of the object inside. ...
7
votes
1answer
208 views

Endnotes numbered by regular arabic numbers (instead of superscripts) and without indentation

The Latex document below (from my earlier question Chapter name appearing in the endnotes) produces endnotes which are numbered by arabic numbers in the superscript, and there is indentation for each ...
6
votes
2answers
300 views

The \prescript command from the mathtools package gives incorrect alignment

The spacing I'm getting with the \prescript command from the mathtools package seems wrong. Here is a MWE: \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} ...
12
votes
3answers
21k views

Superscript and Subscript together

I would like to show both super and subscript together some text. I tried this sometext\textsuperscript{1}\textsubscript{2} But 2 does not show up right below 1. Thanks for your help. Also ...
10
votes
1answer
154 views

Capture a macro's subscripts/superscripts by the macro

Is it possible to capture sub-/superscripts added to a macro by the macro itself? Consider the following example: \newcommand{\fx}[1]{f(x)} \fx{x} % -> f(x) \fx{x}^2 % -> f(x)² Now the ...
8
votes
1answer
1k views

Trick LaTeX into doing double superscripts

I have a function in my .sty sheet that does a second partial derivative: \newcommand{\hpartdsq}[2]{\dfrac{\partial^2 #1}{\partial #2 ^2}} But I'd like to pass it something that already has a ...
6
votes
2answers
1k views

Superscripts in verbatim environment

I have some lines in a verbatim environment ... \begin{verbatim} line 1 * line 2 line 3 * line 4 line 5 \end{verbatim} ... at the beginning of some lines I want to add a number ...
4
votes
1answer
842 views

Fraction in Superscript

\documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{fontspec} \setmainfont[Script=Devanagari]{Sanskrit 2003} \newcommand\sufr[2]{\textsuperscript{$\frac{#1}{#2}$}} \begin{document} ...
14
votes
3answers
417 views

By default, how much do ^ and _ raise and lower the text box in superscript and subscript respectively?

I'm trying to define a set of commands for superscript and subscript, but cannot use the characters ^ and _ in doing so. I've been able to define the correct font size by using ...
8
votes
1answer
228 views

Enriching \to^*

I am trying to enrich $\to^*$ with a $w$ above it, and the cleanest look I could get was with the {\smash {\overset w \rightarrow}}^* command. However, I believe this to be a pretty ugly solution, and ...
5
votes
1answer
162 views

\vphantom and superscripts

The superscripts position is exactly the same for these two statements: \vphantom{\int}^S and {}^S How can I get the superscript higher up? Edit The \intis just an example. Here is another one: ...
5
votes
0answers
360 views

How to lower the superscripts (and raise the subscripts) [duplicate]

Possible Duplicate: tex4ht problems with footnotes I am preparing a document using XeLaTeX, unicode-math and Asana Math OTF (turned on by \setmathfont{Asana-Math.otf}). I've noticed that ...
4
votes
1answer
349 views

Why doesn't math \fontdimen's work with XeTeX?

Why doesn't the \fontdimen-command change anything with XeTeX? \input pgffor \def\chfndims#1{\foreach\dim in{13,...,19}{\fontdimen\dim#1=20pt}} \font\mymathfn="XITS Math:script=math" at 10pt ...
4
votes
2answers
1k views

Position of superscript when superscriptd item has \hat over it

I am trying to typeset he following inline math for a camera-ready document: $\hat{\boldsymbol \Sigma}_{P}^{-1} \hat{\boldsymbol \Sigma}_{G}$ It appears that the superscript -1 is aligned ...
3
votes
2answers
143 views

XeLaTeX textsuperscript issue [duplicate]

In XeLaTeX I have a \textsuperscript issue with all fonts I've tested, with regard to the dash. As opposed to what happens in LaTeX, in XeLaTeX the dash does not get superscripted. This is a MWE: ...
3
votes
1answer
756 views

Combining Textstyle and Displaystyle

In my mathematics writing, I often use both superscripts and subscripts on the probability operator. The subscripts are generally lengthy, and I would like for them to appear underneath the operator, ...
3
votes
1answer
760 views

Defining a newcommand with sub- or superscript and avoiding “double subscript” error

I often use shortcuts defined via \newcommand. However sometimes it causes a "double subscript" problem if a shortcut contains a subscript and I try to add one more subscript when using it. I am ...
1
vote
1answer
672 views

Position of Exponent Relative to Base

I'm having a problem in that the position of an exponent, relative to the base, is too low. For example, with capital letters or mathbb the top of the exponent is almost in line with the top of the ...
-1
votes
2answers
414 views

How to represent this superscript?

I am trying to write this command below but it doesnt work. $$\triangle$^m$