{subscripts} are smaller characters appearing set slightly below the normal line.
46
votes
7answers
28k views
How to typeset subscript in usual text mode?
It's easy to make subscripts in math mode: $a_i$.
How do I make a subscript outside math environment, likethis?
36
votes
5answers
7k views
Left and right subscript
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?
23
votes
3answers
3k views
non-kludgey left subscripts
I was taught to make a left subscript as a right subscript to {}. For example, I would use
f: {}_RA \rightarrow {}_RB
to typeset this:
If you instead use
f: _RA \rightarrow _RB
the left ...
21
votes
3answers
418 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 ...
19
votes
2answers
670 views
Placement of subscripts using unicode-math. Is it XeTeX bug?
I don't like placement of subsripts when using unicode math fonts under XeLaTeX. In contrast to CM fonts the subscripts are placed at different vertical positions obviously depending on the depth of ...
15
votes
3answers
653 views
Underscore in textmode vs mathmode
I use _ character often in text mode, so I changed category of underscore: \catcode\_=12, but that applies also to mathmode and now I'm unable to make subscripts with underscore in mathmode. Is there ...
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 ...
14
votes
2answers
166 views
Problem with the subscripts of adjacent sums
I have a problem with the subscript under the sum,
\sum_{i \in X} \sum_{i \in \bar{X}}
for example gives the subscript at different heights for each sum. Does anyone know how to fix this?
14
votes
4answers
1k views
Subscripts for primed variables
When I add a subscript to a primed variable, the subscript is rendered lower than when it is a subscript to an unprimed variable.
For example, when I compile
$l_x l'_x l_x l'_x l_x l'_x$
I get
...
14
votes
3answers
250 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 ...
12
votes
1answer
230 views
12
votes
3answers
5k views
Supremum of the infimum
Consider the following snippet:
$$\text{d}_{H}(A,B) = \max\left\{ \sup_{a\in A} \inf_{b\in B} \text{d}(a,b),\sup_{b\in B} \inf_{a\in A}\text{d}(a,b)\right\}$$
In the output, the text under the ...
12
votes
1answer
215 views
Is there a way to stop the vertical spread of multiple super- and sub-scripts?
I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically. That is, so that in the output of ${x^2_4}^6_8$, the 2 and 6 were ...
12
votes
1answer
138 views
Which command should I use for textual subscripts in math mode?
Textual subscripts like in W_{total} should be typeset in an upright text font (so that code isn't good practice), as has been discussed in various questions here. Now there are several ways to ...
11
votes
2answers
130 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 ...
11
votes
4answers
500 views
Multiple tensor indices with breqn package
When I try to use the tensor style file to create multiple tensor indices with the breqn style file, I run into the following problem shown in this (minimal) code:
\documentclass{article}
...
10
votes
1answer
3k views
Double Subscript for Subsequences
What's the best way to write subsequences? $x_n_i$ gives an error, while $x_{n_{i}}$ works, but it just looks like $x_{ni}$ (the i isn't lowered enough below the n)...
10
votes
3answers
2k views
How to raise a subscript?
For some reason, I need to write a “minus” sign as a subscript on some symbols, but if I simply write $\Pi_{-}$ the result looks kind of odd. I've found that $\Pi{\scriptstyle -}$ looks reasonably ...
10
votes
3answers
11k views
Superscript and Subscript 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 ...
10
votes
1answer
3k views
How to make proportional subscript when using smaller font in math mode?
How to make proportional subscript when using \tiny (or smaller than normal font size) in math mode?
The following screenshot shows subscripts for \tiny, \scriptsize and normal font sizes.
...
10
votes
2answers
243 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 ...
10
votes
1answer
104 views
Double subscript problem
The code
\DeclareMathOperator*{\FAggregate}{F}
\begin{equation}
q_k'(e) = \FAggregate\limits_{a \in R}_a (q_k(S(a)))
\end{equation}
causes a problem with an additional _a.
What I want is the a to ...
10
votes
1answer
81 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, ...
9
votes
1answer
894 views
Text in subscript
For my text-in-mathmode needs in LaTeX, I use \mbox. However, it does not seem to behave well in subscripts. How can I write text that adjusts its height?
$ 3 \mbox{dB} = f_{ 3 \mbox{dB} } $
...
9
votes
1answer
3k views
Is there an “underscript” command?
Is there a way to do underscripts? By "underscript" I mean a small font underneath the text object like limits or sums have. I don't want it to behave like a math operator though, where it is typeset ...
9
votes
1answer
397 views
Removing extra space with \pmod command
When using the \pmod command as a subscript to a sum, I often encounter some extra unwanted space. For example, writing
\[ \sum_{n \equiv 1 \pmod{k}} ... \]
produces the following image:
Does ...
9
votes
1answer
85 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 ...
8
votes
5answers
3k views
How to properly subscript in a superscripted fraction?
the title says it all. It attached a MWE to display the different relative sizes of a subscript within a normal fraction and a superscripted fraction. As you can see, in the superscripted fraction the ...
8
votes
2answers
64 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
$ ...
8
votes
2answers
96 views
Align subscripts vertically
I would like to align the subscripts in an expression such as this one:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$\sup_{f\in\mathcal H}\lim_{\epsilon\downarrow ...
8
votes
2answers
173 views
typesetting 2 line conditions over which is summed
I am trying to typeset the formula below in a way that m_j=m_i and z_j=z_i have the same scriptsize, the = are aligned, and j: is before both, larger and with vertical position between the lines. How ...
8
votes
1answer
191 views
\vec{p_{\bar p}} renders strangely
When I do:
\vec{p_{\bar p}}
I get:
instead of
with the \vec shifted over a bit. Why does this happen?
(Also, \vec{\mbox{p_{\bar p}}} renders identically, even though \mbox{p_{\bar p}} looks ...
8
votes
2answers
318 views
How do I get references in subscripts to be the right size when compiling to dvi with hyperref?
(Having investigated the original question, I'm taking the liberty of re-writing it as I've found a MWE and so isolated the problem, but I don't know a solution. Andrew Stacey.)
The scenario is as ...
7
votes
4answers
421 views
is it possible to change the depth of subscripts?
I have the following formula:
$ F_{\!\bm{H}} F_{\overline{\!\!\bm{H}\!}} $
In this case both subscripts end at different depths (but start at the same height). I'd like them to end at the same ...
7
votes
1answer
125 views
How to automatically add \! in subscripts?
This code
\documentclass{article}
\usepackage{fouriernc}
\begin{document}
$a_1$
$a_{\!1}$
\end{document}
produces this output:
I like the spacing on the lower one much more.
Is there a way to ...
7
votes
2answers
746 views
Redefine underscore to produce roman subscript
I would like to redefine the underscore _ to automatically set subscripts in math mode in roman type, as I currently find myself almost always using _\mathrm{}. I can't find a way of redefining what _ ...
7
votes
1answer
76 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$ ...
7
votes
1answer
2k views
Boldface and subscripts in verbatim mode?
How do I create boldface and subscripts in verbatim mode? I've seen mention of a fancyvrb package that might be able to help. Can anyone provide working LaTeX code, either with or without fancyvrb?
7
votes
1answer
70 views
Reduce spacing between lines and stacked subscripts with mathop
I am using the following code to typeset a minus (or a plus) under a syllable of text to be used for chant:
\def\mi#1{$\displaystyle{\mathop{\mbox{\smash {#1}}}_{\scriptscriptstyle -}}$}
This ...
7
votes
1answer
106 views
Wrong positioning of subscripts on bold math letters
I just noticed that for kpfonts and times (and probably other fonts since it does not seem to be font-related), the subscripts on boldface letters like V are (I would say) wrong. Is there an ...
6
votes
1answer
242 views
How to write 1, 2, … as a subscript to a letter?
I have two theta angles, one is \theta -1, other one is \theta -2. How can I write that properly? I want to give numbers to the thetas, putting the numbers at the bottom right end of the letter.
6
votes
1answer
384 views
Weird font/spacing issue with LuaTeX & Asana Math
Trying to use LuaTeX font support in some big document, everything went fine except a little glitch with Asana Math font. Here is the issue:
\documentclass{standalone}
\usepackage{unicode-math}
...
6
votes
2answers
150 views
Problem of different spaces between subscripts and letters in math mode
In math mode, the spaces between subscripts and letters are not always the same, but depending on the preceding letters!
See e.g. (different colours indicate different spaces)
Is it the feature of ...
6
votes
3answers
66 views
Command for formatting only first level of nested subscripts?
I'd like to create a command which only targets the first "level" of the indexes. I'll illustrate with some examples, using \qq as the command in the first line, and the "real" LaTeX code on the line ...
6
votes
1answer
163 views
Uneven subscripts. [duplicate]
Possible Duplicate:
Supremum of the infimum
Is there a way to make the subscripts appear evenly in the following code: \sup_{a\in A}\inf_{b\in B}?
That is, so that a\in A doesn't appear ...
6
votes
2answers
54 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}
...
6
votes
1answer
200 views
TikZ: Controlling text within nodes and placing nodes in text
Need some help working with TikZ. Let me begin by saying that I think TikZ is amazing. I hardly know what I'm doing at this point and yet I've been able to draw some very nice diagrams with it.
...
5
votes
4answers
966 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 ...
5
votes
3answers
200 views
Parenthesis size and white space in equation with long subscripts
I'm writing an equation which contains a relatively long subscritps under a summation, which is just next to a bracket. The code is the following
$$\mu_j=\E(X_j)=\E\left(
\sum_{i\in ...
5
votes
2answers
71 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 ...

