{superscripts} are smaller characters appearing set slightly above the normal line.
72
votes
5answers
10k 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 ...
21
votes
3answers
413 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 ...
18
votes
1answer
17k 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 ...
14
votes
4answers
3k 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 ...
14
votes
3answers
499 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
3answers
250 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 ...
12
votes
1answer
215 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
6answers
812 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 ...
11
votes
5answers
614 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?
11
votes
2answers
130 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 ...
11
votes
3answers
392 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
499 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
2answers
3k 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 ...
10
votes
3answers
3k 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
\[
...
10
votes
3answers
11k 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
2answers
239 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
2k 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 ...
10
votes
1answer
81 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, ...
9
votes
6answers
200 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
1answer
153 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
85 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 ...
9
votes
1answer
205 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}
...
8
votes
2answers
265 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 ...
8
votes
3answers
152 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 ...
8
votes
5answers
3k 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
2answers
64 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
198 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
172 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
483 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
766 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
79 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
217 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, ...
7
votes
2answers
2k views
Using \textsuperscript to put commas between consecutive footnotes in amsart document
I'm trying to insert a comma between consecutive footnote markers in an amsart document. I'm trying to do this without using the footmisc package, since for some reason it causes the footnotes in my ...
7
votes
3answers
898 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?
7
votes
1answer
76 views
Can I detect whether my macro is being used inside a subscript or superscript?
I defined this macro:
\newcommand{\foldeq}[1]{\sim_{#1}}
Later on, I noticed that when it's used inside a subscript, it looks a little bit hard to tell whether it's $\sim f$ or $\sim_f$. ($\sim f$ ...
7
votes
1answer
674 views
Use hyperref to make bookmarks; how to include superscript
I used hyperref to make bookmarks. After reading hyperref's manual, I got this example and it worked:
\section{Pythagoras: \texorpdfstring{$ a^2 + b^2 = c^2 $}{ a\texttwosuperior\ + ...
6
votes
2answers
909 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 ...
6
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
54 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}
...
6
votes
1answer
74 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
1answer
201 views
Turn off superscript in todo package
Todo package by default can display todo notes either as a superscript or as a marginpar (the package has appropriate options). Is there a way to display todo notes as normal text (without patching ...
5
votes
4answers
962 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
70 views
\left( and \right) too big when surrounding a sum (etc.) with no superscript; exacerbated by substack
When I write
\varphi^{-1}\left(\bigcap_{\substack{\mathfrak{p} < B \\ p \text{ prime}}} \mathfrak{p}\right)
I get something like this:
Apparently it's leaving symmetric amounts of room for ...
5
votes
2answers
546 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 ...
5
votes
1answer
326 views
How to automatically add parentheses around fractions?
Is there any way to make LaTeX automatically put parentheses around a \frac if it is followed by a superscript expression?
5
votes
2answers
356 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, ...
5
votes
1answer
543 views
Spacing after footnote superscript
I'm writing my thesis for my Computer Science degree. I have a lot of footnotes and my advisor has told me to remove the spacing generated by the superscript of the footnote.
This footnotes are ...
5
votes
3answers
240 views
Emitting LaTeX a “token” at a time, handling superscripts
I am outputting LaTeX from another source language, but one that only gives me things a source-token at a time. Thus, I may get a token corresponding to “begin superscript” and then I will later get ...
5
votes
1answer
1k views
Writing (mixed) tensors
Does anybody know about a specific package for handling tensors? Consider, for example, a contraction of the type
...
5
votes
1answer
245 views
How to reduce the spacing between punctuation and the superscript citation
I'm using biblatex with the autocite=superscript option, so I can use \autocite to switch the interpunction and a superscript citation when the \autocite command is placed before an period or comma. ...
