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

learn more… | top users | synonyms (1)

108
votes
6answers
30k 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 ...
75
votes
3answers
77k 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 ...
36
votes
6answers
1k views

How do I typeset a tenfold powering (a tower-of-powers) with LaTeX?

How do I write x^x^x^x^x^x^x^x^x^x? My LaTeX distribution doesn't wanna eat it, it stops swallowing stuff at the double power x^x^x. What I'm aiming at is essentially building a telescope out of X's ...
24
votes
3answers
673 views

Strange default exponent positioning?

Why is this red exponent so far away from the right parenthesis? To my eye it is too far away. \documentclass{article} \usepackage{xcolor} \begin{document} ...
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 ...
19
votes
6answers
673 views

How to let three subscripts and three superscripts to be aligned

Suppose I need to get a formula like $L^{2,3/4,5/6}_{1,2,3}$ in Latex. Then $2$--$1$, $3/4$--$2$, $5/6$--$3$ is not aligned. See Then how can I let these three to be aligned?
19
votes
3answers
23k views

vector arrow with superscript

I want to have a vector with a superscript: \vec{o}^t But this gives very bad results: the t is overlapping with the vector arrow. How do I fix this (and why does this give bad results in the first ...
19
votes
2answers
332 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? ...
16
votes
4answers
8k 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 ...
15
votes
3answers
10k views

Double superscript error

I'm a relative beginner with Lyx. When I type in this code I'm hoping for T' to be followed by superscripts and subscripts. Instead I get a "double superscript" error when I try to view the pdf \[ ...
15
votes
3answers
706 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. ...
14
votes
6answers
7k views

How should imaginary numbers be typeset?

I've never had to typeset complex numbers before and I'm finding that I'm uncertain about what best-practices are. My question is really about typesetting just i. (Hence my title referring to ...
14
votes
3answers
473 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 ...
14
votes
1answer
277 views

Etiquette for math subscripts and superscripts

It is my first question here, I hope it is not too stupid... I am writing my thesis in math and I need a lot of subscripts and superscripts. My problem arises since in subscripts and superscripts ...
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?
13
votes
3answers
472 views

Raised ellipsis

What's next in the following sequence of LaTeX commands: \ldots, \cdots? That is, I want an ellipsis at the top instead of in the middle or the bottom. The specific situation I have is ...
13
votes
1answer
9k views

normal high asterisk in equation mode

I was looking back at some of the equations that I had written and noticed that the asterisks weren't behaving how I was expecting it to (I also understand that my expectations may differ from other ...
13
votes
1answer
425 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, ...
12
votes
3answers
250 views

How can I make something like a superscript that doesn't go as high?

The \textsuperscript command makes the superscripted text go above the top of capital letters. Here's an example showing what I mean: \textsuperscript{3} И сказ As you can see, the superscripted ...
12
votes
3answers
25k 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 ...
12
votes
2answers
491 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 ...
12
votes
1answer
240 views

Is there a way to stop the vertical spread of multiple super- and sub-scripts?

I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically. That is, so that in the output of ${x^2_4}^6_8$, the 2 and 6 were ...
11
votes
2answers
4k views

My prime symbol is not superscript

I'm learning math mode and having an issue here with the prime symbol. $y\in[0,1]^{d\prime}$ In this inline math formula, the prime symbol is supposed to be superscript, but it shows up at the ...
11
votes
3answers
276 views

Avoiding overlapping superscripts and subscripts in matrices

I was working on some calculus today and tried to typeset a matrix of partial derivatives and ran into some trouble. Here is my code: \documentclass{minimal} \usepackage{mathtools} \begin{document} ...
11
votes
3answers
1k views

Statistical significance stars

What's wrong with my code for three stars (***)? It's so ugly compared to my ** and *. \documentclass{article} \newcommand{\oneS}{\ensuremath{{}^{\textstyle *}}} ...
11
votes
4answers
948 views

Multiple tensor indices with breqn package

When I try to use the tensor style file to create multiple tensor indices with the breqn style file, I run into the following problem shown in this (minimal) code: \documentclass{article} ...
11
votes
1answer
105 views

Size of indices (sub- and super- scripts)

I've been looking around for a way to change the size of indices (all through the manuscript). I found a lot of stuff, which could work, but I refuse to use without understandind. (See for example ...
10
votes
2answers
655 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 ...
10
votes
1answer
177 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 ...
10
votes
1answer
569 views

Fractions in superscripts are placed too low

I have noticed that "tall" superscripts seem to be placed awkwardly low in math mode; their baseline is so close to the main baseline that confusion has happened. \documentclass{article} ...
10
votes
1answer
318 views

Arrow with superscript in tikz-cd

I need my tikz-cd diagrams to have arrows (vertical and horizontal) that mimic \mapsto^* to match the relation in the text. The closest I've managed is to add a label {*} at [pos=1]: ...
9
votes
2answers
346 views

Is there a convention for making text as an index in math

Taking an example from category theory, given a category "C", the opposite category is usually denoted "C^op". Where "op" is an abbreviation for opposite. Now there are three ways to put this in ...
9
votes
3answers
180 views

Is appending superscripts possible?

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 ...
9
votes
6answers
292 views

math shorthand macro: avoid extra space from empty superscript

I find myself writing $\{0,1\}^x$ a whole lot, so I want to define a shorthand macro: \def\zo#1{\{0,1\}^{#1}} However, sometimes I need $\{0,1\}$ with no superscript. If I write \zo{} I get a tiny ...
9
votes
2answers
170 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 $ ...
9
votes
1answer
183 views

Best and recommended way to write prime on i in $i^{th}$

I have two $i^{th}$ and $i^{\prime th}$ and it is hard to see prime in $i^{\prime th}$. I would like to know the opinion of expert LaTeX users about this. I wonder what is the best and recommend way ...
9
votes
1answer
263 views

Consistent vertical positioning of superscripts

This is somehow a follow-up question to this one. I've got the following math expression: \nabla_y u_0^{(i)}\nabla_y v^{(i)} However, no matte, whether I enclose the v in curly brackets or not (as ...
8
votes
2answers
1k views

Subscript vertical position dependent on presence of superscript - how to change? [duplicate]

Possible Duplicate: Subscripts for primed variables If I have a variable which is always subscripted but only sometimes superscripted, the vertical position of the subscript varies. For ...
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?
8
votes
5answers
6k views

How to properly subscript in a superscripted fraction?

the title says it all. It attached a MWE to display the different relative sizes of a subscript within a normal fraction and a superscripted fraction. As you can see, in the superscripted fraction the ...
8
votes
1answer
2k 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 ...
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 ...
8
votes
1answer
246 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 ...
8
votes
1answer
762 views

Superscripts and bold math

I'm writing the transpose of a matrix that is denoted by a bold capital letter. This looks fine when the matrix is denoted by B, but when the matrix is denoted by A, the transpose superscript is too ...
8
votes
1answer
972 views

biblatex: How to remove the comma before ed./eds.?

How can I remove the comma before ed. or eds. and put this abbreviation in parentheses? I'm using biblatex. For example this reference: Dozy, Reinhart, ed.: Supplément aux dictionnaires arabes. ...
8
votes
1answer
237 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 ...
8
votes
1answer
198 views

Why doesn't \mathord work to turn an Acc atom into Ord?

Writing ${\dot X^a}^b$ produces a very cryptic "double superscript" error: this has been explained here on this forum: the reason is that {\dot X}^a generates an Acc atom and that, for a reason that ...
8
votes
1answer
257 views

Nice-looking $x_i^j$

When I write $x_i^j$, the j is very high up, and it looks ugly. (This problem is especially apparent in the New Century Schoolbook font.) I know that TeX is capable of automatically lowering it, ...
8
votes
0answers
180 views

Einstein summation convention [closed]

In Einstein's summation convention, it is sometimes necessary to have subscript and superscript indices in a certain order. If you just use ^ and _, these indices would appear on top of one another, ...
7
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 ...