{subscripts} are smaller characters appearing set slightly below the normal line.

learn more… | top users | synonyms (1)

63
votes
6answers
21k 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?
90
votes
10answers
112k 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?
18
votes
4answers
3k 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 ...
25
votes
3answers
5k 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 ...
14
votes
3answers
4k 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 ...
8
votes
2answers
1k 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 _ ...
16
votes
4answers
9k 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 ...
13
votes
3answers
13k 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 ...
17
votes
1answer
841 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 ...
23
votes
3answers
1k 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 ...
12
votes
2answers
7k 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 ...
7
votes
1answer
199 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 ...
10
votes
1answer
216 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 ...
10
votes
2answers
802 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
6k 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?
5
votes
2answers
777 views

Problem with \mathpalette and \mathchoice

When working on an additional answer to this question of mine, I stumbled across the following problem with \mathpalette. For simplicity I give an example where in practice it is ridiculous to use ...
20
votes
4answers
2k 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 ...
7
votes
2answers
4k views

Problem formatting a subscript in math mode

$\nu_{\rm FWHM}$ prints FWHM too large. But when I try: $\nu_{\mbox{\tiny FWHM}}$ the size is okay but the kerning looks wrong. What is the best way to make a compact little FWHM subscript tag ...
6
votes
2answers
902 views

Derivatives: enter “evaluated at” vertical bar with multiple values as subscripts

Sorry for the long title, but how do I enter evaluated at (for a derivative), with multiple valuation criteria at the bottom of the the big | line? Thanks!
19
votes
2answers
1k 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 ...
9
votes
2answers
197 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 $ ...
7
votes
4answers
159 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 ...
6
votes
1answer
472 views

Redefine the default depth of superscript and subscript document-wide

The behavior of subscript and supscript operator _ and ^ is like a blackbox to me, I am curious if I could redefine the behavior of them globally for a document. I searched the forum and found ...
4
votes
1answer
64 views

Latex: How do I write “\sim_G” but so that the G is directly underneath the “\sim”?

In Latex, How do I write "\sim_G" but so that the G is directly underneath the "\sim"?
3
votes
3answers
4k views

Writing a limit so that the subscript goes directly underneath

When I write $\lim_{x \rightarrow p} f(x) = q$, the subscript x \rightarrow p appears to the right of the limit, instead of directly underneath it. When I try $\displaystyle \lim_{x \rightarrow p} ...
7
votes
1answer
180 views

Why is my prime symbol too low? And: Why are my subscripts not scaled accordingly when I use \scriptsize?

I have two (maybe simple) questions concerning the following LaTeX document \documentclass{scrartcl} \usepackage[ansinew]{inputenc} \usepackage[T1]{fontenc} ...
7
votes
1answer
157 views

(Nonfatal but Symptomatic) Conflict of amsmath and mathstyle Packages

This was brought to my attention by our colleague, Lover of Structure, but since it affects my scalerel package (which began using the mathstyle package to detect the current math style, as of version ...
7
votes
4answers
3k 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 ...
7
votes
4answers
607 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 ...
6
votes
1answer
560 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.
4
votes
3answers
168 views

Align in Substack

\sum_{\substack{n=1\\n\neq i}}^N Using \substack to add multiple lines as subscripts of a sum does not make them aligned on the equal / not equal symbol. I found some answers to this problem, like ...
12
votes
2answers
639 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 ...
13
votes
1answer
589 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, ...
5
votes
2answers
973 views

Underbrace and Subscripts

How do I place a underbrace in a subscript? I_{2,(\underbrace{3,3,3,3,3}_5)} does not typeset correctly (the 3's are not subscript sized)
16
votes
1answer
22k 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)...
14
votes
2answers
261 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
3answers
29k 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 ...
8
votes
4answers
4k views

how to make subscripts automatically choose font size

Would it be possible to make subscripts in math mode automatically choose a smaller font when a subscript is in uppercase? E.g., if I have sA, the "A" would appear quite big. Is it possible to tell ...
7
votes
3answers
107 views

Is there any global settings to add \limits to evey \sum, \bigcup etc?

I'd like to put the superscripts and the subscripts always above or below the symbols like \sum,\bigcup,\inf etc, even in the inline mode, but I don't want to add \limits everytime. I tried ...
6
votes
2answers
685 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} ...
12
votes
1answer
1k 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 ...
6
votes
3answers
107 views

Mathtools: using substack to align limits

I want to align the limits of a sequence at the equal sign but have an optional modifier before the substack. When I add this optional modifier, the limits are distorted since the modifier is placed ...
4
votes
2answers
101 views

How to create horizontally aligned subscripts in latex

My problem is that I can't align subscripts properly. I want subscript 'ISI' to be at same level for both H and x. while (m,n) remains in italic format. The last expression gives aligned subscripts ...
4
votes
1answer
202 views

Put subscript underneath instead of in the bottomright corner

I wonder if there is a way to create an equation like that where the "subscript" is placed underneath instead of in the bottom right corner. I also want the "subscript" to be center aligned with the ...
4
votes
3answers
553 views

Redefine underscore to produce roman subscript without breaking file names

I've been using Hendrik Vogt's answer to my earlier question Redefine underscore to produce roman subscript, in which he explained how to make the underscore character active and assign a macro to it ...
14
votes
1answer
319 views

Etiquette for math subscripts and superscripts

It is my first question here, I hope it is not too stupid... I am writing my thesis in math and I need a lot of subscripts and superscripts. My problem arises since in subscripts and superscripts ...
14
votes
3answers
589 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
1answer
275 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 ...
9
votes
1answer
2k 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} } $ ...
7
votes
3answers
66 views

Vertically align at operator, but keep default horizontal spacing

This is a follow up to «How can I align limits at “lim”?». What is the best approach to achieve the following alignment? Namely, I would like the two \prod to be aligned, but each line should remain ...