Stack Exchange Network

Stack Exchange network consists of 175 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.

4
votes
1answer
29 views

How to increase the vertical offset of exponent terms with increasing size of parentheses?

I want to be able to write the following expression: But have not been able to do so, since all I can get is: I do not use the fraction of P/E, but rather just the psi. Can you help? EDIT: After ...
1
vote
1answer
27 views

Double superscript and \bar

it's several groups that I think of a solution for this little problem, but I can't find the optimal solution. I did several tests, using some combinations, but without getting a good result. \...
2
votes
1answer
33 views

What is the correct way to typeset a vector when there is subscript or superscript?

Consider this MWE: \documentclass{article} \begin{document} \[\vec{v}_{12345}^{12345678}\] \[\overrightarrow{P_{12345}P_{12345}^{12345678}}\] \end{document} As you can see, \vec is designed to ...
3
votes
1answer
39 views

Add parentheses if double superscript or double subscript

I've already got an answer for Add parentheses if double superscript. I want to go a step further as proposed below. However lualatex complains of “missing $” when using the e{_}-type argument… \...
2
votes
1answer
34 views

Rule for writing superscript in text mode

In the scope of gaining space, I would like my superscript minuses to be shortened from: $ J^{-1} $ to $ J^{\text -1} $ using a rule.
1
vote
2answers
73 views

Setting superscript for custom symbol

How do I set a superscript for my custom symbol generated with \newcommand*\mysymbol{\includegraphics{mysymbol.eps}}? Default superscripts appear way too far right from the place they should be in. ...
0
votes
0answers
18 views

Horizontal alignment when using the tensor package

When using the \tensor command, the indicies are lowered a bit to much for my taste. Is it possible to align them with the usual position of the indicies. That is, \tensor{T}{_\mu} should look like T_\...
0
votes
1answer
33 views

superscripts on customized unit in siunitx

I want to add subscripts to some units and so far the solution I found is to define my own unit, for instance: \DeclareSIUnit{\Lmedia}{\text{$\textup{L}_{\textup{media}}$}} However, when I use this ...
2
votes
2answers
64 views

Superscript in a sentence

How to start a sentence after using the superscript in latex for eg. Ground plane is constructed with dimensions of 25\times10.5 mm^2 and the thickness of \ac{PEC} is 0.035 mm over the substrate. A ...
1
vote
1answer
21 views

Superscripts on a `\widetilde`

Consider the following: \documentclass{article} \begin{document} \[ KO^n(X), \widetilde{KO}^n(X). \] \end{document} The superscript appears too high in the second one. Ideally, I'd have the n ...
1
vote
1answer
42 views

Superscript not working in footnotes in tex4ht output

When I use \textsuperscript in footnotes (in memoir class, compiled with xetex), tex4ht fails to make the text in question superscript, even though it does so successfully in the main body text. I ...
1
vote
2answers
72 views

Underscript, subscript and superscript add the same time possibly via \mathoperator* without trailing space

I have a symbol, which I want to give a underscipt, subscript and superscript. I tried: \DeclareMathOperator*{\wmat}{w} \wmat_2_i^j But now I get a space between my symbol and the sub and ...
0
votes
0answers
21 views

Biblatex supercite command with use of square brackets [duplicate]

I want to use the package biblatex and cite with supercite but my problem is that if i use supercite the citations are not in square brackets anymore. Is it possible to get something like number-comp ...
2
votes
0answers
107 views

realscripts/fontspec update vs. some Opentype fonts

I have a file that was running smoothly a few weeks ago and is now stopping with the message: Argument of \__fontspec_strip_leading_sign:Nw has an extra } Using most system fonts, or Amiri, ...
3
votes
3answers
46 views

Blockarray superscript

I am using blkarray to generate a labelled matrix. I would like to indicate the transpose of such matrix using a superscript with T. However I cannot find the right syntax to get what I want. Below ...
0
votes
1answer
68 views

Removing unnecessary horizontal space (gap) from the superscript

I am using the 'rticle' package in R which allows building R markdown documents based on pre-specified templates for the journal submission. The template is in .tex format and as shown in the figure, ...
2
votes
1answer
58 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
53 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 ...
4
votes
1answer
74 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
133 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
42 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
100 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
85 views

Typesetting a symbol with both a subscript and an exponent [closed]

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
37 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
71 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
48 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
210 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
70 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
188 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
70 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
96 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
65 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
72 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
35 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
74 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
380 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
292 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
60 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
148 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
50 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
143 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
216 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
57 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
150 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
553 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
97 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
27 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
97 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
48 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
437 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}$ ...