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
83 views

Shift brackets up for fraction in superscript

The code \documentclass{article} \begin{document} \[ E \left[ e^{\frac{\sigma^2 \lambda^2}{2}} \right] \] \end{document} produces brackets that symmetric(-ish) around the x-height, so they include ...
2
votes
1answer
46 views

How to fix bad output of a custom overline macro?

For changing the vertical position of \overline I have found the following macro: \newcommand*\oline[1]{% \vbox{% \hrule height 0.5pt% % Line above with certain width ...
4
votes
1answer
103 views

How can I keep superscripts the same size in tex?

Currently I have a vector in latex represented by \left(V_i^{L^{(1)}}, K_i^{\mathcal{N}^{(1)}}, G_i^{(1)}\right) However, the (1) in the superscripts are not the same size, in that the first two ...
22
votes
3answers
2k views

Are ^ and _ the only commands in LaTeX not preceded by a backslash?

Almost all commands in LaTeX are preceded by a backslash. Are the superscript and subscript commands in the math environment (^ and _ respectively) the only exceptions?
7
votes
3answers
176 views

Center superscript relative to subscript in math mode

I think the best explanation is my attempt : \documentclass{report} \usepackage{amsmath} \usepackage{graphicx} \newcommand{\supsub}[2]{\hspace{-0.6em} \begin{tabular}{c} {\scriptsize #1} \\[-1....
2
votes
1answer
48 views

How to arbitrarily combine subscript, superscript and “midscript”

I would like to typeset formulas including "midscripts" - like subscripts and superscripts, but in the middle. This question and answer gives some solutions: Subscript. Superscript. Middlescript? . ...
1
vote
1answer
43 views

Comma bug in the realscripts package?

I am using TeXLive 2019. A comma in the superscript while using the realscripts package appears in the main text instead of the superscript. I have noticed this issue when using Libertinus Serif as ...
2
votes
1answer
29 views

\hat Causes double superscript

I have the following: {{\hat{\pi}}^a}^b Everything is grouped, so it should behave fine, but it causes a double superscript error, same is true for {\hat{\pi}^a}^b. if I remove the \hat every thing ...
4
votes
2answers
58 views

super and subscripts on stackrel variable

How I am trying to put a label above a variable omega. That works well but I cant find a better way to have the sub- and superscripts belonging to omega itself without a gap. using the superscripts on ...
2
votes
0answers
35 views

How can i use subscripts and units with fractional powers in siunitx?

I have the following simple document \documentclass[a4paper,10pt]{article} \usepackage{siunitx} \begin{document} \si{\metre_{1}\tothe{1/2}} \bigskip % \si{\metre_{1}\tothe{-\frac{1}{2}}} \...
0
votes
1answer
71 views

Superscript over the Gamma Function

I don't know how to write over Gamma function as shown in the photo. I want to write (1) (2) (3) above the Gamma function
1
vote
1answer
49 views

Missing $ inserted in a table for superscript

I get the error message of missing $ inserted in my table. \toprule ABS & \ 14,573.300^a & 3 & 4,857.767 & 40.297 & .000 \\ \midrule I had tried: \toprule ABS & \[14,573....
2
votes
1answer
37 views

Define macro that scans ahead for super- and/or subscript, “absorbs” them and moves their argument

I have a lot of mathematical macros that already have a super- and/or subscript by definition, i.e. something like \newcommand*{\mymathsym}{x^{\text{foo}}_{\text{bar}}} In the text body, these ...
0
votes
1answer
56 views

How to use dash(-) or dot(.) after footnote numbers in para feature with “manyfoot” package?

I want to show footnotes like the below instead of making them superscript: 1- Or 1. How should I do that? \usepackage[para]{manyfoot} \DeclareNewFootnote[para]{A}[roman]
1
vote
1answer
35 views

Adjusting vertical separation of footnote mark

I'm using a devanagari font to typeset in Sanskrit language. The font which I use is Sanskrit 2003. The problem with this and other few similar fonts is that the footnote mark is not enough vertical ...
0
votes
1answer
26 views

Spacing in front of citation (natbib, super)

I am using \usepackage[super]{natbib} for my citations. When using that, the horizontal spacing in front of and after the citation are different. How do I increase the spacing in front of that ...
0
votes
0answers
62 views

Typesetting superscripts and subscripts with system fonts in Xelatex

My document is required to be typeset in a font called DINPro. I need to use both subscripts and superscripts within the text. I would like to use \textsubscript and \textsuperscript, howerver \...
2
votes
1answer
51 views

realscripts – can fakescripts substitute single missing chars

I have a font with real OT-superscripts which I can use easily with the realscripts-package. But I also need a superscript decimal dot which doesn't exist, thus realscripts falls back to the regular ...
0
votes
1answer
90 views

Superscript and subscript

I want to write a superscript and a subscript at the same place.Every time I do it, it is a superscript then a space followed by the subscript. How do I stack it vertically?
5
votes
2answers
73 views

It possible to have subscript and super script that does not shrink the font size?

It possible to have subscript and super script that does not shrink the font size? Usually the font size becomes smaller: e.g. Is it possible to have the subscript and superscript in normal font ...
3
votes
3answers
135 views

Reduce size of sum sub/superscript?

I have a text with lots of sums where the sub/superscripts are pretty long, as in $\displaystyle\sum_{ k=1+min\{a-1,b-1\}}^{ max\{a-1,b-1\} } i_k$ and when I compile the text gets very ugly, since ...
1
vote
1answer
96 views

How to reference something in superscript?

When I reference some label with \ref{label} I find the reference a little too big (Because it's the same size as everything else) I'd like them to be in superscript. But not everywhere. I want this ...
0
votes
0answers
15 views

Can't simultaneously have superscripted footnotes in text and footnote counter not cycling back to 1 with each chapter

I want my footnotes superscripted in the text and numbered continuously in the text of my book from 1 to n, without restarting at 1 with each chapter. In the MWE below, if I comment out the \chngcntr ...
4
votes
1answer
40 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
39 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
61 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
61 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… \...
1
vote
1answer
105 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
78 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
29 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
125 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
137 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
28 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
62 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
150 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
29 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
129 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
77 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
157 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
63 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
56 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
78 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
202 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
57 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
114 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 ...
3
votes
0answers
155 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
59 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
87 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
66 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: \...
2
votes
1answer
336 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} \...