Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [superscripts]

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

2
votes
1answer
50 views

Adjust spacing between preceded superscript and base

Depending on the letter in the base there is space to the preceded superscript. Letters like T, W, Y use ink in the top left corner, so there is no space, but when using I, D, E, ... (these letters ...
1
vote
0answers
48 views

Kerning of superscripted recto, verso and full stop/comma in biblatex-dw

I've created three commands for biblatex-dw to typeset \recto \verso and \rectoverso references. If one of these commands is followed by a full stop or comma the horizontal spacing between the ...
3
votes
1answer
59 views

Sups in ConTeXt

In LuaLaTeX I can use the realscripts package to use superior figures as footnote marks. How can I use superior figures as footnote marks in ConTeXt?
3
votes
2answers
87 views

Number within Circle as an Exponent on Text

I need to put a number within a circle on top of a text (i.e., as an exponent). How to go about it? I am doing something like \raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {8}}} but unable to make ...
3
votes
1answer
28 views

horizontal shift of sub- and superscript for \chi

I get a small horizontal displacement of sub- and superscript when using the letter \chi. It does not seem to appear for other letters. Does anybody know how to fix this? MWE: \documentclass{article}...
2
votes
4answers
96 views

Changing the effect of a command in another

I'm currently trying to define commands such that: \x{F}{a} gives F^{(x=a)} \y{F}{b} gives F^{(y=b)} This I can do fairly easily: \newcommand{\x}[2]{\ensuremath{{#1}^{(x={#2})}}} However, I ...
4
votes
0answers
66 views

Typesetting a symbol with both a subscript and an exponent

Suppose I take the variable $X_a$ and square it. To be clear, the _a is part of the variable's name, whereas the ^2 will denote the mathematical operation of squaring. I could typeset this as $X_a^2$...
1
vote
1answer
31 views

How to superscript text on \rightarrowtail?

How to get superscripted text on \rightarrowtail? I have included mathtools package, but there isn't any command like \xrightarrowtail[]{}.
1
vote
1answer
60 views

^ started producing literal ^ instead of superscript [closed]

I've been using Lyx for years and one of the most basic shortcuts is that ^ doesn't appear literally in math-mode but is displayed as an empty box in the superscript position. A couple of months ago ...
1
vote
1answer
35 views

How to write the superscript above the subscript in newcommand?

I want to create a command for adding a superscript * to a variable, indicating its "optimal" value. However, when I do this, the superscript is added after the subscript instead of right above: \...
3
votes
1answer
124 views

Align subscript and superscript in math mode

I'm having issues with aligning superscript with subscript in math mode. My MWE is: % arara: xelatex \documentclass[preview,8pt,varwidth=true]{standalone} \usepackage{amsmath} \usepackage{mathspec} \...
3
votes
1answer
59 views

get width and height of character in the power

I want to create a "minus-sign" in a superscript of a letter in math mode using \rule{width}{height} to get control over the look of it. In principle, I get something to my liking, but I fail to make ...
7
votes
2answers
171 views

Place a given symbol inside \cup like \uplus

does any know how I can create a command that places a symbol given as an argument inside \cup? For instance, the command \uplus has the symbol '+' inside \cup. I would like to be able to place any ...
1
vote
2answers
46 views

How to get the numeric subscript and superscript to scale correctly using specific font

In the code below, the numeric superscript and subscript do not scale correctly or looks "not nice" when the font is scaled down. Is there a way to have the superscript and subscript scale nicely or ...
1
vote
0answers
30 views

Left sub/superscript in exponents

I have a small problem with left sub- and superscripts. In my work, I have two regularly occurring indices, that should be distinct from one another. As I have to use exponents of some of these ...
1
vote
1answer
54 views

Add parentheses if double superscript

I'd like to set up a macro able to add parenthesis if the argument has already one superscript. It similar to this question, unfortunately the compilation of the following MWE doesn't end… \...
3
votes
1answer
62 views

Curly bracket around iterated exponentials

I believe this problem must already have a solution but I cannot find one on the Internet. Consider the following code. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{...
1
vote
1answer
28 views

edition in superscript before author in citations

it's me again. My advisor looked through my first drafts for my thesis and was overall very pleased but pointed out that she wants to see the edition of a work (@book or @collection) in superscript ...
0
votes
2answers
51 views

caret (circumflex/hat/^) turns into superscript

I'm using ShareLaTeX on my Chromebook. I'd like to write m² in LaTeX (m^2), but the hat does not come out in the source code, instead it just turns everything into a superscript directly. How can ...
3
votes
1answer
223 views

Mismatched braces in subscript and superscript

There is mismatch in the braces when used as subscript or superscript \textit{ $ R(p_(a ),p_(b ) )=e^{(|(-\gamma {\lVert p_(a) - p_(b) \rVert})^2| )}$}
2
votes
2answers
121 views

Taking the transpose of a matrix with superscripts and subscripts

What is the best way to take a transpose of a matrix with superscripts and subscripts, when the subscript is long? Neither $A_{ijk}^{a\top}$ $A_{ijk}^{a^{\top}}$ ${A_{ijk}^{a}}^{\top}$ ${A^{a}}^{...
4
votes
1answer
46 views

Using math accents/diacritics as standalone symbols

Suppose I have an operation on a set X which I want to denote with something like $X^\prime$, $X^\bullet$, or $X^\circ$, except with a different symbol. I found out that some of the diacritics ...
11
votes
1answer
128 views

Is there a LuaLaTeX solution to adjust superscript kerning on large delimiters?

Superscripts can sit very far from large parentheses, more for some fonts than others. I am seeking a Lua-based solution to adjust the kerning of math superscripts on delimiters. Here is an example ...
5
votes
1answer
41 views

Vertical position of subscripts with commands

The answers to the questions Differences in vertical positioning of superscripts and subscripts depending on grouping (`{ }`): Why? Caveats? Workarounds? and {(x+y)}^2 or (x+y)^2? make it clear that ...
0
votes
2answers
84 views

Double arrow and variable on top [duplicate]

How to create a double arrow line with a variable on its top. Something like this.
0
votes
2answers
132 views

Using \raisebox and \displaylimits on an integral sign

As part of a larger project, I am trying to lower the superscript a of the following integral so that it touches the integral sign itself. Here is the code I am using: $$\int\displaylimits^{\mathrel{...
2
votes
0answers
51 views

Non-intrusive super/subscripts using slanted Greek with tensor?

I was quite happy with how the tensor package is able to typeset beautiful tensor expressions … until I decided to use the ISO convention for my Christoffel symbols. \documentclass{...
2
votes
1answer
114 views

How TeX / LaTeX proportionally scales \frac, \sum super/subscripts, etc

Wondering what the scaling proportion is when you do above/below on \sum, nested fractions, or super/subscripts on something. Wondering if it's the same in all of these different situations. It looks ...
0
votes
0answers
133 views

Compress successive superscript citation numbers into range

I am dealing with the superscript number type of citation in a LaTeX file. I want the consecutive numbers in the citation to be in a range (e.g. 1-4) instead of a list (i.e. 1,2,3,4). Again I want the ...
5
votes
3answers
536 views

Type powers of ten using a custom command

I use the font times and I am writing powers of ten often. So I am using 10\textsuperscript{2}. I was wondering if it is possible to make a command like \ten{2} which does the same thing? It would ...
4
votes
1answer
89 views

Math script size changed between unicode-math v0.8e and v0.8g?

I have just compiled an existing document using a more recent version of unicode-math and noticed that a lot of line/page breaks were different. The reason seems to be that the sizes of sub-/...
1
vote
1answer
25 views

Input length sensitive optional argument macro

I wrote the following macro, that prints C_0^*. But I wanted to push the position of * little high, hence used strut. I also wanted optional argument i.e. C^* and C_0^* can be handled by same macro. ...
0
votes
1answer
66 views

longtable, siunitx, multirow, multicolumn, textsuperscript combination problem

I have the Table below with, \multirow, \multicolumn and \textsuperscript calls. I would like to have all entries centered, and the numerical entries additionally "scientifically" aligned right (as ...
1
vote
1answer
42 views

How to avoid using curly braces when placing a \DeclareMathOperator command in subscript or superscript, while preserving spacing?

Let's say in my preamble I define \DeclareMathOperator\rad{rad} and have the text Let $f$ be a smooth function and $f^{\rad}$ its radial symmetrization. It is inconvenient to have to enclose the \...
4
votes
3answers
308 views

Vertical positioning of superscripts and subscripts in math mode

The question can be found around but with no satisfactory answer. I want to position the subscript more down and superscript more up. The code to test it on is simple: $1.23_{-22.22}^{-1.23221}$ ...
3
votes
1answer
56 views

Why is the height of superscripts different in tikzpicture compared to maths environments?

Consider this minimal example: Why is the height of the superscript slightly lower in the tikzpicture and how can I get it to look like it does in the equation (or in this case flalign*) environment? ...
9
votes
2answers
593 views

Is there any way that I can put the subscript and superscript at the back of a symbol?

Obviously, I can use X^s or X_s to put a symbol s as superscript (X^s) or subscript (X_s) in front of another symbol X. What about the case with s at the back of X? _s X or ^s X gives something like ...
11
votes
1answer
391 views

Superscript simply refuses to be superscripted

I'm getting slightly desperate because the following seemingly simple macro does not do what I want: \newcommand{\Ma}[1][]{\ensuremath{M_{1}^{#1}}\xspace} Hello $\Ma{a}$. I would expect that $\Ma{a}$...
1
vote
1answer
56 views

Aligned starts of subscript and superscripts

What's the code for this one? I've tried this code: {{a_1}^{{j_1} \left(g \right)}}{{a_2}^{{j_2} \left(g \right)}}{{a_3}^{{j_3} \left(g \right)}} \ldots But I got this: Thanks for your help in ...
3
votes
1answer
129 views

Make superscript lower for letter with tilde

Is there any way to have the t in my superscript further down? $\widetilde{\boldsymbol{W}}^t$ is the code for the second W^t, and $\boldsymbol{W}^t$ is the code for the first W^t in the screen-...
4
votes
1answer
152 views

Draw overbrace from one superscript to other

I would like to draw overlapping braces from exponent to exponent. For example, I'd like to connect v and w, and x and y avbxcwdy with an overbrace each. So it should kinda look like this
3
votes
3answers
186 views

Fix equation superscript squishing

Because isentropic fluid flow is beautiful, I have these wonderful equations to deal with: Notice how the superscripts have been squished vertically to fit. Is is possible to prevent this from ...
1
vote
2answers
272 views

How to include an image as a superscript

A publisher requires authors to specify the corresponding author by placing an image next to the corresponding author: Please place an envelope icon (or any other pointer) next to the name of the ...
9
votes
1answer
800 views

equation beauty?

\begin{equation} I_D=I_{S}\left(e^{\tfrac{q(V+IR_s)}{nN_{ms}N_skT_c}}-1\right) \end{equation} Hi, in this equation my number 'e' lost its position and turn an ordinary number. I want superscripts to ...
3
votes
2answers
71 views

How to align horizontally symbols in superscript

I would like to align horizontally the two resized circles in the superscript in the following example: \documentclass{article} \usepackage{relsize} \begin{document} $A^{ \mathlarger{\circ}\...
2
votes
1answer
47 views

Position of Superscript before automatically sized parenthesis? (Niggli-Notation)

The superscript (subscript) left of the curly brackets should be further up (down), i.e. same height as the 3 right of the last curly bracket. Is there an easy way, maybe similiar to \sideset for ...
2
votes
0answers
38 views

Is there any way to strike superscripted references properly with latexdiff?

I am using latexdiff to keep track of changes in my LaTeX documents. Superscripted references are striked on the same level as normal text, making them appear underlined. I want to get rid of this ...
1
vote
2answers
64 views

Superscript inside subscript in math mode

When a superscript is placed inside a subscript, its relative position to the "base" becomes different, as shown by the following MWE: \documentclass{article} \usepackage{amsmath} \newcommand\inset{...
3
votes
1answer
48 views

Double superscript in different positions

I am trying to write the superscript as in the picture, but I get double superscript error. I tried: v'_{w_O}^{T} https://imgur.com/a/CaZa1
13
votes
2answers
758 views

Using a ^ outside math mode

I take it it is possible to redefine ^ (and _) to yield \textsuperscript in text mode and work normally in math mode (is there a good reason why this is not the default behaviour?), but I don't know ...