{superscripts} are smaller characters appearing set slightly above the normal line.
1
vote
2answers
38 views
Spacing depending on optional subscripts and superscripts
I am totally new to LaTeX (use it for 2 days), so I am sorry if this has already been asked, but I spent the last 6 hours searching for a solution, but to no avail. (I stumbled upon a package xpeek ...
5
votes
1answer
59 views
Sub and superscript on the left
I want to do something like this:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
Hom_{K\cap {}_a^bK}
\end{align*}
\end{document}
But there seems that the _a^b is ...
6
votes
4answers
68 views
How can I capture both superscripts and subscripts after a macro
This question piggy-backs on the answer to Capture a macro's subscripts/superscripts by the macro by egreg.
I'm attempting to use the xparse package to create some macros and I'd rather not have ...
7
votes
3answers
71 views
Force inline-type superscript for display equations (but display-type subscript)
I am trying to create a macro \jjoin for a mathematical operator which roughly produces the following behaviour:
Inline: \bigvee^{(J)}, subscript (typically i \in I) goes in the usual position (as in ...
11
votes
3answers
4k views
vector arrow with superscript
I want to have a vector with a superscript:
\vec{o}^t
But this gives very bad results: the t is overlapping with the vector arrow. How do I fix this (and why does this give bad results in the first ...
4
votes
1answer
67 views
Triple scripts for analysis
I am doing the music harmonic analysis.
There are plenty of symbols that must be added and there are need for:
underscript
triple sub/super scripts:
3
votes
1answer
89 views
Mark in word and margin in paragraph
Anyone knows how to put a mark on a word?
(1) Text:
(1) will be slightly raised as if an exponent.
Also, how could shorten margins in a paragraph? Clip 10 mm left and 10 mm right?
1
vote
0answers
108 views
How to put a subscript in a superscript
How can I write the following thing?
a^(b_c), b being a superscript of a, and c being a subscript of b.
6
votes
2answers
88 views
Automatically Raising Subscripts
I have the following expression
J_{ne}\boldsymbol{\mathsf{J}}_{ne}^{-1}
which is awkward in the sense that as the second (sans-serif) J has a superscript that the subscripted indices are lower than ...
5
votes
1answer
62 views
Defining a different symbol to be used as a sum-class symbol
If I'm interested in using an arbitrary symbol or character instead of the default sum-class symbols (such as \int, \coprod, etc), solely with the interest of preserving subscripts and superscripts ...
3
votes
1answer
102 views
Can't turn off fontified subscripts in Emacs 24
Under Emacs 24.3 and Auctex, the sub/superscript fontification is occurring outside math modes. This appears in either Beamer or normal LaTeX docs.
Per this question, I've included the following ...
5
votes
1answer
44 views
pmatrix and superscript
I would like to place a superscript to a pmatrix, but the superscript is not correctly positioned.
\begin{pmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{pmatrix}^{T}
Any ...
18
votes
1answer
20k 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 ...
6
votes
1answer
92 views
Endnotes numbered by regular arabic numbers (instead of superscripts) and without indentation
The Latex document below (from my earlier question Chapter name appearing in the endnotes) produces endnotes which are numbered by arabic numbers in the superscript, and there is indentation for each ...
3
votes
1answer
37 views
Recursive Multiple subscripts and superscripts with xparse (Modified Version)
How can I modify the command below to obtain a version
(of the question: recursive multiple subscript and superscript with xparse)
which does not stack the sub/superscripts horizontally but moves all ...
1
vote
0answers
36 views
references superscripting edition
Is it possible to superscript the edition number of a book?
It should look this way:
Author(year^edition):...
I am using BibTeX. At the moment my reference is printed like this:
CAMPBELL, J. B. ...
10
votes
1answer
89 views
How do you get a scriptscriptstyle-sized prime?
As you go from \displaystyle to \scriptstyle to \scriptscriptstyle, letters and numbers, for instance, shrink. Weirdly, to my mind, the prime symbol (') shrinks from \displaystyle to \scriptstyle, ...
8
votes
2answers
69 views
recursive multiple subscript and superscript with xparse
How can I define a new command with xparse, something like this:
\NewDocumentCommand\tensorkor{ m >{\SplitList{,}}o >{\SplitList{,}}o }
{
?????
}
that i can execute
$ ...
4
votes
3answers
246 views
Subscripts and superscripts for Physiology paper
I'm writing a medicine/physiology article.
I was writing the manuscript in Microsoft Word, but have recently discovered LaTeX for rendering math equations, which it does superbly; and wanted to learn ...
11
votes
2answers
161 views
Differences in vertical positioning of superscripts and subscripts depending on grouping (`{ }`): Why? Caveats? Workarounds?
This question about {(x+y)}^2 vs (x+y)^2 drew my attention to the slightly different vertical positioning of super- and subscripts for such expressions. Compare (x+y)^8_8 (left) and {(x+y)}^8_8 ...
6
votes
2answers
74 views
The \prescript command from the mathtools package gives incorrect alignment
The spacing I'm getting with the \prescript command from the mathtools package seems wrong. Here is a MWE:
\documentclass{article}
\usepackage{amsmath,mathtools}
\begin{document}
...
14
votes
4answers
3k views
How to typeset indices before a symbol?
I know how to write a usual index with the help of the underscore, but I seem to be unable to find out how to write an (upper/lower) index in front of a letter/text.
These kind of indices are common ...
5
votes
2answers
77 views
\left( and \right) too big when surrounding a sum (etc.) with no superscript; exacerbated by substack
When I write
\varphi^{-1}\left(\bigcap_{\substack{\mathfrak{p} < B \\ p \text{ prime}}} \mathfrak{p}\right)
I get something like this:
Apparently it's leaving symmetric amounts of room for ...
8
votes
1answer
87 views
Why doesn't \mathord work to turn an Acc atom into Ord?
Writing ${\dot X^a}^b$ produces a very cryptic "double superscript" error: this has been explained here on this forum: the reason is that {\dot X}^a generates an Acc atom and that, for a reason that ...
2
votes
1answer
105 views
Subscript and superscript in lstlisting?
I need to use subscript and superscript in a lstlisting block. lstlisting can replace strings by Latex commands, but is it also possible to replace some kind of regular expression like
...
2
votes
1answer
239 views
lyx shortcut for superscript and subscript
Instead of using the menu for Insert->Formatting->Superscript or Subscript, I would like to use a keyboard shortcut.
I tried Tools->Preferences->Shortcuts, there are already shortcuts for ...
2
votes
1answer
218 views
How to control line spacing and subscript location in captions?
I just started using mhchem and am having problems with captions. Subscripts from mchem overlap with superscripts. I can think of two possible solutions (and trivially not using mchem in captions):
...
3
votes
1answer
236 views
Combining Textstyle and Displaystyle
In my mathematics writing, I often use both superscripts and subscripts on the probability operator. The subscripts are generally lengthy, and I would like for them to appear underneath the operator, ...
8
votes
1answer
245 views
Temporarily disable superscript in citation
I use superscripted citation style by using \setcitestyle{super} in LaTeX preamble, which done the job as I wanted. However, there are several region, in which I need to temporarily disable the ...
21
votes
3answers
454 views
maths nested superscripts and subscripts displayed incorrectly inline
I am having a strange bug when using nested superscripts and subscripts in inline math (displaystyle works fine). This behaviour is the same independently of the font used or the compiler (orginally ...
1
vote
0answers
43 views
What is the correct way to write the abbreviation of “the first”? [duplicate]
I want to write 1st. What is the correct way to do so?
1\textsuperscript{st}
\mbox{1\textsuperscript{st}}
\mbox{1$^\text{st}$}
$1^\text{st}$
74
votes
5answers
11k views
What's the quickest way to write “2nd” “3rd” etc in LaTeX?
If I want to use abbreviations for second, third and so on in my LaTeX documents, I am currently doing this: 2$^{nd}$ which seems unsatisfactory. Is there a macro I'm missing? I'm sure I could define ...
4
votes
2answers
203 views
How to anchor labels in tikz for baseline alignment
LaTeX handles subscripts and superscripts nicely, automatically correcting for various sizing and placement issues. I am trying to build a function that works like subscripts and superscripts, but ...
8
votes
2answers
314 views
My prime symbol is not superscript
I'm learning math mode and having an issue here with the prime symbol.
$y\in[0,1]^{d\prime}$
In this inline math formula, the prime symbol is supposed to be superscript, but it shows up at the ...
5
votes
4answers
1k views
Problem adding subscripts and superscripts [duplicate]
Possible Duplicate:
Cursive text after _
I need to have some subscripted and superscripted text in my thesis document. But when I try to do it the way as H_{2O} or S^{2}. I get an error at ...
3
votes
1answer
93 views
superscript asterisk on the left side of different symbols (math mode)
I need to add superscript asterisks to the left side of different symbols like +,\cdot,\leq,\mathbb{R}.
I read several different solutions to similar questions, which recommended either \prescript, ...
14
votes
3answers
265 views
By default, how much do ^ and _ raise and lower the text box in superscript and subscript respectively?
I'm trying to define a set of commands for superscript and subscript, but cannot use the characters ^ and _ in doing so. I've been able to define the correct font size by using ...
9
votes
6answers
210 views
math shorthand macro: avoid extra space from empty superscript
I find myself writing $\{0,1\}^x$ a whole lot, so I want to define a shorthand macro:
\def\zo#1{\{0,1\}^{#1}}
However, sometimes I need $\{0,1\}$ with no superscript. If I write \zo{} I get a tiny ...
0
votes
0answers
12 views
Specifying citations not to be in superscript [duplicate]
Possible Duplicate:
Temporarily disable superscript in citation
I am using the citation style 'super' so that my citations are superscripted:
\setcitestyle{super}
However in parts of the ...
2
votes
1answer
4k views
Typesetting “nth” in LaTeX [duplicate]
Possible Duplicates:
What's the quickest and easiest way to write “2nd” “3rd” etc in LaTeX
1st, 2nd and i-th?
Is there a standard/best practice for ...
3
votes
2answers
99 views
Leftidx problem: upper indices have different height
When using the leftidx package to create the same upper index on both sides of \Bbbk[G], the indices have different height and look ugly. Minimal example:
\documentclass{article}
\usepackage{leftidx}
...
7
votes
1answer
77 views
Can I detect whether my macro is being used inside a subscript or superscript?
I defined this macro:
\newcommand{\foldeq}[1]{\sim_{#1}}
Later on, I noticed that when it's used inside a subscript, it looks a little bit hard to tell whether it's $\sim f$ or $\sim_f$. ($\sim f$ ...
11
votes
6answers
1k 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 ...
10
votes
2answers
289 views
Weird relative positioning of superscript and subscript with \dot, \bar
Minimal working example:
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\[ {A^\mu}_\nu \]
\[ {\bar{A}^\mu}_\nu \]
\end{document}
The result is.
Why is the placement of ...
4
votes
3answers
212 views
Mixed superscript, subscript and widehat
What is the correct way to write this equation and make both L_s matrices look the same? I tried this but the widehat and superscript L_s matrix' subscript is positioned slightly lower than the ...
9
votes
1answer
100 views
Capture a macro's subscripts/superscripts by the macro
Is it possible to capture sub-/superscripts added to a macro by the macro itself?
Consider the following example:
\newcommand{\fx}[1]{f(x)}
\fx{x} % -> f(x)
\fx{x}^2 % -> f(x)²
Now the ...
14
votes
3answers
511 views
Adjust box around hyperref footnote links
Is it possible to adjust the size of the box around the footnote links produced by hyperref? Specifically, I would like to move the base of the box closer to the base of the object inside.
...
6
votes
1answer
385 views
superscripts with xelatex? (footnotes, natbib)
This example illustrates some conflict between xelatex and natbib- and footnote-generated superscripts. The semi-colon between distinct citations is not typeset as a superscript, nor is the dagger. ...
2
votes
1answer
164 views
Footnotes with no superscript but indent [duplicate]
Possible Duplicate:
How to set superscript footnote mark in the text body but normalsized in the foot?
I cannot find a way to have footnotes with no superscript number in the footnotes, but ...
9
votes
1answer
219 views
Fractions in superscripts are placed too low
I have noticed that "tall" superscripts seem to be placed awkwardly low in math mode; their baseline is so close to the main baseline that confusion has happened.
\documentclass{article}
...



