Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [superscripts]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
107 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 ...
6
votes
2answers
215 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
151 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
211 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
74 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
96 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
44 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
144 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
469 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
564 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
97 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
204 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
68 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
247 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
362 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
64 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{...
3
votes
1answer
237 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 ...
5
votes
3answers
602 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
103 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
29 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
137 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
65 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
762 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
68 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
1answer
803 views

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

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
403 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
141 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
181 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
156 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
359 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 ...
2
votes
2answers
567 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
817 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
109 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
144 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
73 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
89 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{...
2
votes
1answer
77 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: \documentclass{article} \begin{document} $v'_{w_O}^{T}$ % Double superscript error \end{...
13
votes
2answers
899 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 ...
1
vote
1answer
100 views

Exponent in Two lines in latex

I want to write the exponent, but my equation exponent is too long and cannot write in one line it cut from page. \begin{multline*} \phi_{m}(\mathcal{K}_{1}\mathcal{K}_{2},C_{2})=\phi((\\g^{\...
0
votes
1answer
134 views

Make superscript size smaller (always)

How would you implement the "catcode" solution here for superscripts? Thanks EDIT The code below reproduces the error (complied using XeLaTeX). Works if the following two lines are commented out: \...
0
votes
1answer
56 views

I am confused as to how to get the hat symbol and my subscript directly above and below eachother as in the image

Whenever I try to do this i get them off to the side. when i am working with simple characters such as just an x and a y as my superscripts and subscripts it works but not when i am using complex ones
1
vote
2answers
227 views

Switch to `\displaystyle` in superscripts (automatic `\limits`)

I have to use a lot of sums in exponential functions like I would like to have the summation indices of sums to be displayed below the sums for increased readability. I know that I can achieve this ...
0
votes
1answer
86 views

How do I typeset fractions that include variables with both superscripts and subscripts?

I need to typeset the following equation. I am using Lyx, but I can't find anything in its math menu that can handle it. I think I will need to typeset the whole equation using ERT.
1
vote
2answers
152 views

Putting two corners above a letter like $^{\ulcorner}f^\urcorner$

Is there a way to produce something like this $^{\ulcorner}f^\urcorner$, thus a symbol f with two corners on top, but elegantly and without the bad spacing?
0
votes
1answer
55 views

vtop box breaks line, is there any way to continue the line without line break?

I tried to make my own text superscript definition with a \vtop box but it breaks the line prematurely. \input opmac \input luafonts \font\tenrm="DejaVu Serif/R" \tenrm \def\superss#1{\vtop{\vskip-...
11
votes
1answer
18k views

How to write superscripts and subscripts in math mode?

I just started using latex and the closest I've come is $F\overset{fr}{\textsubscript{s}max}$ or $F{fr \above 0pt \ \textsubscript{s}max}$
0
votes
1answer
228 views

Superscript missaligned to subscript

So this is my (simple) problem, I would like to have the superscript (number 2) in a better position compared to the first case which looks really awful to me. A first solution was to add the ...
2
votes
1answer
120 views

How to fix superscripts in glossaries with parameters

Inspired by this question I created a glossary entry with an optional parameter as a subscript. However when I try to have a superscript there as well I can't use the trick where I pass the ...
3
votes
2answers
350 views

Super(sub)scripts at half level

Is there a way to achieve that the superscript or subscript for that matter, appear at half of a variable? either at left or right.. I found this answer, but doesn't seem to apply How do I adjust ...
2
votes
1answer
45 views

How do I display the \subsection numbers properly in memoir amid custom formatting?

I am laying out a Bible using memoir. I have been totally happy with it except for the superscript verse numbers. My basic setup is as follows (I do have a lot of other code in the .tex file ...