Questions tagged [superscripts]
{superscripts} are smaller characters appearing set slightly above the normal line.
612
questions
5
votes
3
answers
152
views
How to make indices (math mode super- and sub-script) uniform size?
I use Latex primarily to write tensor algebra, typically with a variety of latin and greek indices depending on the context. Normally this is fine, but I have noticed that occasionally some of the ...
5
votes
2
answers
237
views
Space too small before word-starting subscripted symbol (LuaLaTeX only)
I use \textsuperscript at the beginning of words and I have noticed that, as seen on the picture below, the space between the previous word and the superscripted symbol, in case of shrinking, becomes ...
2
votes
1
answer
81
views
How to show ORCID ID with a centered icon?
From How to add Orcid ID in LaTex article?, they suggest to display the ORCID icon with the following package:
\documentclass{article}
\usepackage{orcidlink}
\begin{document}
\orcidlink{https://orcid....
1
vote
2
answers
30
views
Custom asterisk for amino acid names
I am writing a report where I would like to reduce the time taken to format amino acids and use for the rest of my PhD. I created a command that takes 2 arguments and one optional to format amino acid ...
0
votes
1
answer
30
views
How to get table note labels to appear in normal but not superscript text using the threeparttable package?
I want the notes in my table to appear in normal text and one after the other without the classic line break.
In the tablenotes environment I used the online and para options, but it didn't have the ...
2
votes
1
answer
208
views
LuaLaTeX, with TeX Live 2022 and fourier-otf, fails to superscript en-dashes
After updating to TeX Live 2022, I am unable to produce superscript en-dashes, with fourier-otf. \textsuperscript{1--3}, simply produces superscript numerals, with a non-superscript, regular en-dash, ...
2
votes
3
answers
272
views
Is there a way to make large symbols look better in superscripts and subscripts?
I want to include a summation in the exponent. The following code I use now produce a somewhat uncanny-looking result:
\begin{align*}
$x^{\displaystyle\sum_{i=0}^{k}}$ \\
$x_{\displaystyle\...
0
votes
1
answer
24
views
Biblatex and chem-angew - add dots in abbreviations
my professor is a bit picky about my bibliography: He needs the abbreviation of every journal with dots. Additionally he'd like the numeric citation in superscript when it is mentioned in text.
For ...
0
votes
1
answer
35
views
Typesetting: Lining up footnote marker with cap or ascender line of the text (FN too high)
How can I line up the footnote marks with the cap or ascender line (see https://en.wikipedia.org/wiki/Baseline_(typography)) of a text? Usually LaTex would use superscripts, which appear to be placed ...
8
votes
3
answers
352
views
Why does \mathchoice mess with my redefined superscript?
I redefined ^ to give different colors depending on whether it is a superscript, supersuperscript, etc using the following:
\catcode`^\active
\def^#1{%
\mathchoice{%
\sp{\color{red}#1}%
...
0
votes
1
answer
60
views
How to create a custom font size like \tiny that horizontally squishes font?
The appearance of double sub/superscripts is extremely horizontally squished. For example, x^{2^{k^\alpha+1}} yields
I would like to create a custom font that "squishes" the k^\alpha+1 ...
3
votes
1
answer
269
views
Can superscripts only be used in $-delimited mathematical formulas? [duplicate]
A^{\dag} got error "Missing $ inserted"
Is there a way to use superscripts not in mathematical formulas?
3
votes
1
answer
52
views
\mathrel used in-line and in sub/superscript
I would like to define a \mathrel symbol composed of some text. For instance I would like to do something like
\DeclareMathSymbol\myrel{\mathrel}{???}{rel}
or perhaps another macro/custom symbol in ...
0
votes
0
answers
48
views
is it good practice to have a text over a symbol which contains both super- and subscript?
My problem involves the Greek letter $\Psi$ which is a sum of two parts - a volumetric (vol) part and a deviatoric (part). I have to associate a superscript $h$ and optionally a subscript $a$ to $\psi$...
0
votes
0
answers
54
views
Custom limit locations
How are big operators defined?
Starting with something like the above, I want to place the lower limit in a displaymath-size symbol below it and the upper limit to the right side (essentially middle ...
0
votes
1
answer
66
views
How to change the superscripted bibliographic citation number to a normal size number in specific cases?
I am using this journal template where all bibliographic citations are superscripted such as:
This is true.4
With the corresponding script being:
This is true.\cite{paper_4}
However, I would like ...
0
votes
0
answers
36
views
beamer how to control subscript vertical position
subscript and superscript position depend in the presence of both.
How can I control only the position of subscript (or superscript) vertically without added both?
I'm using Beamer, although the same ...
0
votes
0
answers
35
views
biblatex autocite superscript is pushed out into the page margin
I am currently writing a tex document, for which I used the superscript autocite style like so:
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[...
0
votes
0
answers
40
views
How to add more then one superscript like this in journal paper?
I want to add a superscript like this in the image below but in my template, there is one option for superscript how can I add the other one.
0
votes
0
answers
31
views
Lower the superscript of a hat variable
I have an inline math expression involving a superscript and a hat:
\documentclass{article}
\usepackage{lipsum}
\usepackage{amssymb,amsmath,amsthm}
\setlength{\parindent}{0pt}
\begin{document}
\...
0
votes
0
answers
50
views
\DeclareMathSizes changing font size of regular superscripted text
The font I'm using in Math Mode is displays a little to small for me when dealing with exponents. So, I'm using \DeclareMathSizes to change the superscript math font size, like this:
\documentclass[...
4
votes
2
answers
158
views
`\left` `\right` not working properly with `\mathchoice`
I try to define \norm which gives \left\|#1\right\| in display math, while \|#1\| in inline math. I then use \mathchoice to implement this, but the final command doesn't work properly: the position of ...
10
votes
2
answers
403
views
Why does (my user-defined) command for superscript (inverse) fail next to a prime (quotation) symbol?
Minimum working example (I will refer to the lines based on the first letter A-E):
\documentclass{article}
\newcommand{\inv}{^{-1}}
\begin{document}
$A^{-1}$
$B\inv$
$C'^{-1}$
% $D'_1^{-1}$ % fails
% $...
1
vote
1
answer
45
views
biblatex-musuos: edition as superscript in front of year with crossref
I have a question related to this one: biblatex-verbose: edition as superscript in front of year
I'm using biblatex-musuos and that solution works for it as well, but only for normal entries. Child ...
0
votes
0
answers
36
views
Persistent subscript placement with ot without superscript
I have hit a problem regarding the consistency of subscripts, specifically while superscripting at the same element, i.e.
$a^{b}_{m+1}$
It seems that the subscript doesn´t have the same placement if ...
0
votes
0
answers
118
views
How to make a superscript number outside the hyperlink box?
This is a minimal working example (in XeLaTeX):
\documentclass[12pt]{ctexart}
\usepackage{circledsteps, hyperref}
\usepackage{lipsum}
\begin{document}
This is \hyperlink{1}{the first link}.
\lipsum[1]...
0
votes
0
answers
33
views
double dot above r [duplicate]
I'd like to type the double dots above $r$ as in the last line of the snippet.
How ?
2
votes
1
answer
109
views
Parse subscript and superscript in command
I am using quite a lot of notation in my text.
Thus, I decided to write some commands such as:
\newcommand{\struct}[1]{\mathsf{#1}}
The typical use is as follows:
Let $(\struct{A}_n)$ be a sequence ...
11
votes
3
answers
1k
views
Minus sign not aligning with fraction
When I use subscripts and superscript with \frac the numerator and denominator looks very tight,
\documentclass[a4paper,12pt]{article}
\usepackage{mathtools,amssymb}
\begin{document}
\[e^{-\frac{(x-\...
3
votes
1
answer
82
views
Vertically align super and subscript in columns
I have a symbol that always has two upper and two lower indices, so think of it like two index columns. I'd like to have them aligned with each other.
\newcommand{\cg}[5]{{\scriptstyle{#1}}^{#2 #4}_{#...
0
votes
0
answers
48
views
(Luatex makes) newtx superscript number font different from text number
The newtx package somehow uses a font with noticeably greater weight for superscript (footnote) numbers. How can I force it to use the same one as in the text?
\documentclass{article}
\usepackage{...
0
votes
0
answers
119
views
Can anything be done to add superscript letters to words, without messing up PDF Search functionality?
I am creating a PDF Bible for personal use; it includes both footnotes (which are superscripted numbers appended to the end of certain words), and margin cross-references (which are superscripted ...
0
votes
0
answers
61
views
Matrix super script interferes with subscript
I'm using a simple $\boldsymbol{X}_{\tau(t)}^+\boldsymbol{X}_{\tau(t)}$ equation.
However, the subscript of the left matrix gets "pushed" downwards because of the superscript.
Is there a way ...
5
votes
2
answers
484
views
A prime in parentheses
I would like the prime in $\mathfrak E ^{(')}$ to look like the normal prime in $\mathfrak E'$.
Also I might like smaller parentheses around the prime.
1
vote
1
answer
303
views
biblatex \cite as superscript brackets
I have a question according to my citation and the bibliography:
How did it got printed in the text is:
A[18] instead of A^[18] also A[18][20][19] results not in A^[18-20]
with
[18] J. Hua, X. Li, Y.-...
0
votes
2
answers
76
views
Is there a way to prevent \mathchoice from resetting the bounds of its contents (with respect to superscript/subscript placement)?
I have a series of norm macros that I want to expand to \left\| ...\right\| in display math but remain as \| ... \| in inline math. Each norm has a subscript unique to the macro:
\newcommand {\...
0
votes
1
answer
40
views
i Needed to solve the problem plz help [closed]
\usepackage{amsmath}
\begin{document}
\begin{equation}
RresT (u) =
\begin{cases}
1 & \text{\RresT (u)= \Bigg\{ 1, \text{ if Pos. {Arcs_{v_{\xrightarrow[]{}}u \ (u)} > Neg.Arcs_{v_{...
0
votes
1
answer
222
views
\textsuperscript does not work
I am writing my thesis using a template and have a problem with the function \textsuperscript. For whatever reason it is not working and instead it writes "germanb".
I mean, if I write in ...
0
votes
1
answer
43
views
Allow consecutive subscript
Apparently, LaTeX does not like x_a_b. This is an issue when I want to type \game{1}_Z as depending on the way \game is defined, it may finish with a subscript like Game_1. I tried to define \game ...
1
vote
0
answers
36
views
Increase horizontal spacing of (all) superscripts
I am using a TrueType font with XeLaTeX and unicode-math, and I noticed that, because italic letters are very slanted, in math formulas superscripts are too close, sometimes they touch the letter. The ...
0
votes
2
answers
74
views
How can I combine superscript, math symbols together? For instance, Trex1−/−
I was using this command to have my output "Trex1−/−", where -/- will be in a superscript and TREX emphasized/italic.
My command is \emph{Trex1} $^${\num{-}}$/$ $^${\num{-}}
I get error ...
1
vote
2
answers
95
views
Conflict between subscript and superscript under summation
I would like the subscript of my sum to look better:
$$
\sum_{d \mid p_j^{m_j}} f(d)
$$
creates the output
but i would like the exponent m_j to be further down and closer p_j.
0
votes
1
answer
51
views
How to make this superscript position lower?
I have seen this symbol in a textbook.
I tried \overline{\mathbb R}^+, but the plus sign position is higher than as in the picture.
Could you elaborate on this issue?
3
votes
2
answers
62
views
Centering sub/superscript of operator after scaling
I would like to make the sub-/supperscript smaller 10% and use package scalerel to do that.
Everything is fine until I find out that the sub-/superscript in operators are also scaled but they are not ...
0
votes
0
answers
33
views
Lowering superscript to match elements without tilde
Consider:
\[
\mathrm{A}^{+}\tilde{\mathrm{A}}^{+}
\]
\[
\mathrm{Aa}^{+}\tilde{\mathrm{Aa}}^{+}
\]
Is there a simple way to lower the final plus-sign, so that it aligns with the first three?
(This is ...
0
votes
1
answer
250
views
How to italicize superscripts and subscripts in math mode?
I'm pretty new in LaTeX, but I was surprised when in math mode subscripts and superscripts weren't italic. How can I solve this issue?
Here's my code:
$(Z(\bm{\mathrm{s}}\textsubscript{1}), ...,
Z(\bm{...
1
vote
2
answers
49
views
Write punctuation after citation using superscript style with biblatex
I am using the superscript style in biblatex and it writes the citation number after the punctuation. How can I force to locate the punctuation (point or comma) before the citation number? Please see ...
1
vote
1
answer
39
views
Different superscripts in a list
In a previous question from mine (see here) I asked about adding superscripts to numbered lists in order tho acknowledge authorship of some exercises. I accepted campa's suggestion of defining a new ...
1
vote
1
answer
37
views
Adding a superscript to a numbered list
I've defined a theorem-like environment called ex for exercises for my students. Some of them are taken from other authors and I'd like to give them credit. In order to do that, I was thinking of ...
2
votes
1
answer
43
views
Is it advisable to always include an empty group to avoid double superscript error for math accents?
This very helpful answer
https://tex.stackexchange.com/a/582444/239563
describes a way to avoid a double superscript error by including an empty group:
${{}\dot{y}^a}^\top$
My question is: is there ...