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

learn more… | top users | synonyms (1)

5
votes
2answers
45 views

How to expand a macro in a superscript without curly braces?

Suppose we have \newcommand{\inv}{-1} We want to be able to do $A^\inv$ instead of $A^{\inv}$ but that won't work — only the minus sign is superscripted. Accidentally I stumbled on a possible ...
0
votes
1answer
30 views

subscript and superscript in Lyx leave large gaps in onscreen editor

When I insert superscript or subscript formatting using the Insert>Formatting menu in Lyx, it leaves a large gap between the sub/super-scripted text and the preceding text. This does not happen when ...
1
vote
1answer
23 views

How to parse </sub> and </sup> in bibliography

I use Mendeley to generate the .bib file and this results in articles with <sub> and <sup> tags in the title. @article{Testtest2016, author = {Testtest}, title = {{Why O{\textless}sub{\...
5
votes
2answers
241 views

Superscript and subscript together in text mode

I want to use super and subscript at the same time in text mode. I cannot use math mode because I created macros which only work in text mode. I found this question: Superscript and Subscript ...
2
votes
1answer
45 views

How to write virtually aligned superscript and subscript [duplicate]

I have this line: \textbf{Adv}\textsuperscript{downgrade}\textsubscript{$Pi$, DP, X} But I get this output: And I want it like this: Can you help me with simple solutions as much as possible ...
3
votes
1answer
55 views

TikZ - Circled text number in superscript - Missing $

I'm using TikZ to create some circles with numbers as some sort of marker. But I want to use them as superscript. So to generate a circle I'm using this command (suggested here: Good way to make \...
84
votes
7answers
42k views

Left and right subscript / superscript

I am trying to put two subscripts at the left and right of a character. For example, something like: _{t} p_{x} where p is in the middle. How do you do this?
4
votes
2answers
29 views

Using superscript after \middle

I'd like to write this formula with all parenthesis of the same size N = \left( \frac{s}{2} \right)^2 - \left( \frac{d}{2} \right)^2 so I tried N = \left( \frac{s}{2} \middle)^2 - \middle( \frac{d}...
4
votes
3answers
119 views

Separating sub-/superscripts out

I'm looking for a way of separating super-/subscripts (if they exist) from a LaTeX command argument. As an example, imagine you want to define a command that builds multisets from sets by placing an ...
3
votes
1answer
81 views

Lowering the prime symbol

I want to use a prime along a math symbol, but now it looks a little odd, e.g. like this: I would like to lower the prime, if possible. Is there a nice way to do this? Comment: stripping off all ...
4
votes
2answers
148 views

Adding accents, sub- and superscripts to defined variables

I often use \newcommand to define variables, notations or operations on variables. Sometimes I have to add accents, sub- and/or superscripts to a defined variable, like in the following test example: ...
6
votes
1answer
77 views

How to automatically remove additional space introduced by primes of left superscripts?

I need to use left superscripts. I know that there are packages as mathtools, tensor and leftidx. But they all suffer from the same typographical problem. If I typeset a left superscript and this ...
1
vote
2answers
55 views

Prevent “jumping” \prescript stars

Look at the alignment of the following two formulas: X^* \cong \prescript{*}{}{X} The right stare, produced with \prescript, is higher than the left one. One solution from this question suggests a ...
5
votes
1answer
221 views

How to redefine the \today with superscript?

How can I redefine \today so that today's current date comes in the format May 26th, 2016 I need the "th" to be superscript. It should come to the bottom right corner of the page. The code does ...
9
votes
3answers
7k views

Writing (mixed) tensors

Does anybody know about a specific package for handling tensors? Consider, for example, a contraction of the type $g^{\alpha\beta}g^{\gamma\delta}R_{\alpha\mu\gamma\nu}=R^{\beta\;delta}_{\;\mu\;\nu}$...
10
votes
4answers
153 views

How can I align two boxes to the top right and top left of a surrounding box?

Assuming the following structure (auto-generated from another document), how should I define \csup and \csub to line the sup boxes to line up with the top of the neighbouring box, and the sub boxes to ...
1
vote
0answers
20 views

How can I make citations of expression used in my own text using superscript?

I am writing a presentation, and in title page I have the authors names, and I want to reference those names to the email, which I'll write bellow. How can I do that? \documentclass[10pt]{beamer} \...
8
votes
2answers
74 views

Aligning defined functions on sums

I'm defining a new function using triangle and its corners as inputs, it works for normal linear equations, but when it becomes supersript or subscript, the parameters become misaligned. Any ...
5
votes
1answer
112 views

Placing a comma before a citation-related superscript number

According to the Chicago Manual of Style (section 14.21) "a note number should generally be placed at the end of a sentence or at the end of a clause. The number normally follows a quotation (whether ...
6
votes
3answers
917 views

How to represent the “Triangle of Power” in LaTeX?

So, I've just seen a video about a method of notation called "Triangle of Power", which simplifies things when it comes down to exponents, logarithms, etc. It was originally introduced in this post on ...
1
vote
0answers
37 views

Redefining `scriptsize` and `smartcite` size

I'm trying to change the size of indices, both super- and sub-. I thought that by redefining \scriptsize it would do the trick, but it doesn't. Also, I tried to redefine \textsuperscript, but it doesn'...
9
votes
1answer
321 views

Circ above $D^3$ in a nice way

I want to denote the interior of $D^3$, so I use $\overset{\circ}{D^3}$. This looks like this: However I find this kind of ugly, and would rather have the circ just above the $D$, but then $\...
0
votes
0answers
28 views

cite with superscript, also Vgl. and Pagenumber in Bibliography [closed]

I'm quite new to LaTeX and I'm currently clueless how to implement superscript references to the bibliography and also things like "Vgl." and Pagenumbers in the bibliography. I'm using biblatex \...
1
vote
0answers
38 views

Horizontal placement of superscripts (Math mode, LaTeX)

Is there any way to adjust the horizontal placement of a superscripted character? In particular, whenever I have a character that also has a subscript, the superscript ends up directly above the ...
189
votes
6answers
209k views

Superscript outside math mode

What is the easiest way to superscript text outside of math mode? For example, let's say I want to write the $n^{th}$ element, but without the math mode's automatic italicization of the th. And what ...
3
votes
2answers
32 views

Double superscript error while typing equations [duplicate]

When I try to write \begin{equation} {\hat{a}_{1}^{\dagger}}^{2} \end{equation} I am getting this error ! Double superscript. l.4 {\hat{a}_{1}^{\dagger}}^ {2} ? So ...
22
votes
7answers
18k views

How should imaginary numbers be typeset?

I've never had to typeset complex numbers before and I'm finding that I'm uncertain about what best-practices are. My question is really about typesetting just i. (Hence my title referring to ...
8
votes
4answers
365 views

How to align superscripts?

I have an expression like $$\eta^{[\alpha\beta}_{\phantom{\alpha\beta}\rho}h^{\sigma]}A^\rho$$ and I would like that all the indices alpha, beta, sigma and rho appear on a same line. If someone ...
2
votes
1answer
37 views

Redefine hbar to work in super- or subscripts

I can redefine the \hbar command to use the "h" from the current math font as follows \renewcommand{\hbar}{\raisebox{.5ex}{\rotatebox{15}{--}}\hspace{-0.5em}h} For example in Times New Roman this ...
8
votes
2answers
343 views

Inconsistent superscript placement in $q_x^{n_x} q_y^{n_y}$

As part of a document, I am typesetting the objects q_x^{n_x} and q_y^{n_y} right next to each other, as \frac{ q_x^{n_x} q_y^{n_y} }{2} It bugs me that the n_y gets displayed at a different ...
4
votes
2answers
78 views

Horizontally misalligned sub-/superscripts in fractions when using 'minus' sign

I am combining sub- and superscripts in the denominator of a fraction. I get ill behaviour when the exponent is preceded with a minus sign: I would expect the sub- and superscript of the first two ...
6
votes
2answers
153 views

Overset and mathbb collision

I have ran into really funny trouble trying to use \overset and \mathbb the same time. I need to do something like this: but with the T as mathbb, i.e. \mathbb{\overset{m}T}_{ij}. When I try it, ...
10
votes
5answers
273 views

Uneven height when using superscript in frac

I want to fine tune some of mine equations, when I encountered this Notice, how the superscript in the derivative operator fits nicely and doesn't lower the symbols in the denominator, while the \...
19
votes
3answers
50k views

Vertically aligning textsuperscript and textsubscript together

I would like to show both super and subscript together some text. I tried this sometext\textsuperscript{1}\textsubscript{2} But 2 does not show up right below 1. Thanks for your help. Also ...
3
votes
1answer
55 views

\overset and superscripts

Consider this MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} &\overset{0}{\mathcal{D}^{\alpha\beta}}\\ &\overset{0}{\mathcal{D}}^{\alpha\beta} \end{align} \...
1
vote
1answer
92 views

LyX/LaTeX widetilde with superscripts problem

Using the \widetilde command to denote a tilde on a letter usually works wonders, although the tilde needs to be slightly lowered in my opinion. This didn't bother me too terribly until I needed to ...
8
votes
3answers
140 views

Control horizontal alignment of sub/superscripts

Is it possible to modify the horizontal alignment of the sub and superscript of a symbol? That is to say, is it possible to get this pair of right-aligned sub/superscripts instead of this left-...
14
votes
4answers
11k views

Superscripts before a letter in math

I was writing this formula: $$^gp = ^gR^l_l+^go_l$$ $g$ are superscripts, but they should be close to other letters. How can I solve this problem?
6
votes
2answers
310 views

How do I use multiple superscripts (super, super-super, super-super-super, etc) with them all smaller than each other?

I wonder how to make every superscript level smaller than each other. Like, 2^{2^{2^{2^{2^{2^{2}}}}}} makes the first superscript smaller, but the rest of the superscripts the same size as the first ...
44
votes
7answers
3k views

How do I typeset a tenfold powering (a tower-of-powers) with LaTeX?

How do I write x^x^x^x^x^x^x^x^x^x? My LaTeX distribution doesn't wanna eat it, it stops swallowing stuff at the double power x^x^x. What I'm aiming at is essentially building a telescope out of X's ...
1
vote
1answer
101 views

Error in \sum in state

I use the following: \documentclass{article} \usepackage{algpseudocode} \usepackage{algorithm} \usepackage{textcomp} \usepackage{mathtools} \date{\today} \title{Some Title} \begin{document} \...
0
votes
0answers
25 views

\big in sup- other subscripts

I needed to type a double parenthesis in a superscript, as in and I was pretty unhappy wit the result, since the two closing parenthesis are of the same size. I thought about using \bigl and \bigr ...
6
votes
1answer
46 views

Superscripts and bold dots

If I type $\boldsymbol{\ddot\xi}^{\,n}$ I get whereas on removing \boldsymbol and \, I get How do I get the superscript to appear like this also with \boldsymbol?
8
votes
1answer
1k views

Using ** instead of ^

I am used to use ** instead of ^. Is it possible to somehow define macro that would interpret ** as ^? I know that I can write ** and in the end replace it with ^ but that macro would be much more ...
10
votes
2answers
191 views

How to write an actual superscript with \lim, \sup, etc?

I'm trying to write $\sup' S$ -- that is to say, $\sup S$ but with a prime on the sup. However, in display style, this comes out instead with the prime on top of the sup instead of in the superscript ...
4
votes
0answers
80 views

Distinguish between upper index and power [closed]

I am currently writing the scriptum of our theoretical physics lecture. I always have trouble with the notation. Our professor uses lower indices like m_i for the i-th mass, upper indices like \vec{x}...
5
votes
1answer
82 views

How does mhchem print its superscripts and subscripts?

I need to replicate mhchem's way of typesetting sub- and superscripts. It's different from what $X^y$ and $Z_w$ do: \documentclass{article} \usepackage[version=4]{mhchem} \usepackage[dvipsnames, ...
1
vote
1answer
95 views

Having sub/super scripts on the side for \sum

When writing \sum_{n=1}^\infty, the subscript and superscript will appear below and above the big Sigma symbol: Though when writing \Sigma_{n=1}^\infty, they will appear on the sides: I would like ...
2
votes
1answer
48 views

Is there a way to change how latex formats parenthesis in superscript?

I am new here an hereby apologize for any mistakes I might make in posting this. I am also sorry if a similar topic already exists, but I failed to find anything answering this. I am interested ...
2
votes
1answer
68 views

Subscripts and superscripts on accented math characters [duplicate]

\documentclass{article} \begin{document} ${x_i}^j$ works as expected but not with an hat as in ${\hat{x}_i}^j$. The way I found to make it work is $\mbox{$\hat{x}_i$}^j$. Is there an nicer solution?...