A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [superscripts]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
406 views

How to get glossary terms to properly typeset subscripts/superscripts?

I have just begun using the glossaries package. I have created a glossary entry for the coproduct symbol as disjoint union: \newglossaryentry{coprod} { name = {\ensuremath{\coprod}}, ...
3
votes
2answers
1k views

How to place a \sim over \equiv similar to \simeq and \cong?

As the question states, I want a tilde over \equiv similar to \simeq and \cong commands. To be more specific, they tilde needs to be closer to the \equiv symbol. I've tried using stackrel and ...
1
vote
1answer
33 views

Wrong superscript placement with `hepparticles`

I am writing a thesis on theoretical particle physics and need some particle names. I stumbled upon hepnames which in turn uses hepparticles. After I changed my whole document, I realized that the ...
10
votes
3answers
3k views

Sub and super scripts touching lines in table [duplicate]

I have a table containing mathematics with sub and superscripts. These touch both the lines above and below in the table. I tried quite a few alternatives but have not been able to find anything that ...
10
votes
1answer
19k views

Double Superscript

I am trying to find a similar question but they all seem to suggest something completely different. I want to create a superscript for a superscript. Essentially: 2^2^n
6
votes
2answers
411 views

How to set superscript for expandable parentheses?

The following code compiled with error: \documentclass{report} \usepackage{chemfig} \begin{document} \schemestart \chemfig{R-C(=[:60]O)-[:-60]O-H} \arrow{<=>} \chemleft[\chemfig{...
1
vote
1answer
355 views

Auctex sub/superscript formatting of single macros with arguments

E.g. in emacs 25.1 with Auctex 11.90.0 $a_\mathrm{b}$ only lowers the \mathrm and the {b} is left unmoved. Obviously I can add braces e.g. $a_{\mathrm{b}}, but I'm editing existing documents and don'...
3
votes
2answers
2k views

How to keep a nice layout when combining overline/underline with superscript/subscript?

I would like to add indices as subscripts and superscripts to a couple of bounds denoted by underline (lower bound) and overline (upper bound), but I am not able to keep the same well-shaped look of ...
4
votes
2answers
851 views

Double superscript error in fractions

I'm basically new to LaTex and still learning, and while I'm trying to write this fraction: $\frac{x}{sin({b_{2}})} = \frac{{A_{b}}{B_{a}}}{sin(C’’)}$ I get error: double superscript. I tried ...
0
votes
3answers
664 views

How to solve this error (missing $)

This error keeps popping while making my table: ! Missing $ inserted. <inserted text> $ l.196 \textit{E} & 13.21 \cdot\rho_{dry}$+0.73 \cdot $\% Min$-0.06$\cdot$ ...? ...
2
votes
1answer
51 views

How to make the same reference style as used in articles?

I want to use references with the same style as in the chemical articles I read. When I use \footcite it gives the right style in the text, but it also leaves a footnote in the bottom of the text. I ...
2
votes
2answers
228 views

Correct typesetting of one line formulas with underscored-argument operators and double subscripts/superscripts

I'm having some trouble regarding the layout of nested subscripts/superscripts when used as underscored argument of argmin/min/max operators. I have defined \argmin{} operator as: \...
2
votes
1answer
1k views

Consistent superscript placement with sideset

Consider the following MWE which uses \sideset from AMS math to typeset a primed summation with an upper limit: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \sideset{}{'}\sum_{...
0
votes
1answer
72 views

Equation type setting multiple equals

what is wrong with this \documentclass{article} \begin{document} $$\phi\rightarrow\phi^'=\phi+\delta\phi=\phi+\Phi_\nu\omega^\nu$$ \end{document}
9
votes
2answers
1k views

How to write Superexponents

How do I write stacked up exponents? For example, I tried doing $2^2^65533$ and it yelled at me :( I know about \uparrow but it's not what I am looking for.
0
votes
1answer
39 views

Subscript placement after \def containing superscript [closed]

If I do \def\foo{V'} $\foo_{i+1}$ the subscript gets wrongly placed, as if there were invisible parentheses around V'. I want the output to be the same as V'_{i+1}. How to get it?
3
votes
1answer
662 views

On the position of multiple sub and superindices

In tensorial analysis, the position of covariant and contravariant indices may be relevant. The following image shows the output of {A_i}^j and {\tilde{A}_i}^j: But I expect the second expression (...
23
votes
3answers
1k views

Superscripts appear in various weird places in fractions

This is a weird phenomenon. Consider the following code: \documentclass{article} \begin{document} $$Z^* \frac{Z^*}{Z^*}$$ \end{document} It produces the following picture: The asterisks appear ...
4
votes
2answers
761 views

Create a new command that supports superscript (^) and subscript(_) syntax

Consider the integral. $\int_{0}^{1} x dx$ creates an integral with bounds 0 and 1. I defined the evaluate command like so: \newcommand{\evaluate}[3]{\left. #1 \right \rvert_{#2}^{#3}} Which I can ...
2
votes
1answer
3k views

Minus isn't shown in exponent (superscript)

So I want to write a Cobb-Douglas function F = Kα * L1-α. I've written this in LaTeX: \(Y = K^{\alpha}L^{1−\alpha}\) Everything is fine except that the minus sign that should be between 1 and alpha ...
2
votes
2answers
578 views

How to create a box with a superscript?

I want to create something the image below on Latex. So essentially it is a math function which is surrounded by a box with a superscript. And boxes can be within other boxes. Any thoughts? Thanks ...
4
votes
1answer
1k views

Non-superscript footnotes, in the text

There are already answers about how to make footnotes marks appear full-size in the footnote text (i.e. bottom of page), for example: this, or this. I want to know how to make it non-superscript in ...
3
votes
3answers
911 views

LaTeX superscripts problem with widetilde

I tried to put a superscript (squared) with a \xi variable in the \widetilde : $\widetilde{\xi}^2 = (\widetilde{\xi})^2 \neq \widetilde{\xi^2}$ gives Which seems to be se same things, whereas it is ...
10
votes
2answers
2k views

Prime on the product symbol

I want to have a primed product symbol, i.e. something like $\prod^\prime$ but it puts the prime on top of the product symbol instead of next to it (as a superscript, as it usually works). Does ...
1
vote
1answer
517 views

'! Undefined control sequence' and '! Package inputenc error' while typesetting equations

I'm writing complicated equations in LaTeX and I'm getting error messages: for the first two equations I get: ! Undefined control sequence. and the third one I get: ! Package inputenc Error: ...
0
votes
1answer
187 views

undefined sequence [duplicate]

I'm writing complicated equations by latex and I'm keeping have error messages: for the first two equations I've "undefined control sequence" and the third one I've: ! Package inputenc Error: ...
3
votes
1answer
151 views

redefine caret ^ while using mathtools package

consider the following MWE: \documentclass{article} %\usepackage{mathtools} \newcommand\newCaret{X} \catcode`^=\active \let^=\newCaret \begin{document} $x^2$ \end{document} this works fine, ...
3
votes
2answers
529 views

Place prime after subscript

When I type $w_{2}'$, the result looks like the prime is before the subscript or perhaps right above it. However, my intended result it "w two prime" not "w prime 2", which are two different things. I'...
3
votes
4answers
1k views

Combining \bar with superscripts

Easy question here but haven't been able to find the answer online. I am trying to create the following symbol in math mode: an i, with a bar over it, and then an asterisk as a superscript to the ...
5
votes
2answers
214 views

How can I adjust the vertical position of \nolimits?

I’m using the newpx fonts, but I want to lower the superscript after \int (i.e. after \nolimits) mainly in text style and maybe in display style too. Is this possible? \documentclass{article} \...
2
votes
1answer
1k views

How to disable super or subscripting in text mode [duplicate]

Writing a report with some part numbers, for example "partname_123". I want to write the underline as a underline and not as sub-scripting. How do I disable the super/sub-scripting in a regular text? ...
4
votes
2answers
133 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 ...
1
vote
1answer
2k 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{\...
1
vote
1answer
802 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 plz.
2
votes
1answer
620 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 \...
5
votes
2answers
140 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}{...
3
votes
3answers
176 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
542 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 ...
3
votes
2answers
436 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: ...
1
vote
2answers
116 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 \...
6
votes
1answer
781 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 not ...
0
votes
1answer
374 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 ...
10
votes
4answers
242 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 ...
7
votes
2answers
91 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 ...
9
votes
1answer
385 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 $\overset{\...
14
votes
3answers
3k 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 ...
3
votes
2answers
249 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 ...
7
votes
1answer
1k 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 ...
8
votes
4answers
787 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 have ...
2
votes
1answer
156 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 ...