Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [subscripts]

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

6
votes
2answers
311 views

Put R under double integral

When I use $\iint_R f(x,y)dA$ the letter $R$ is to the right of the double integral sign. How to make it under the sign? This is a simple question but I couldn't find a related question.
5
votes
2answers
92 views

How to write dimensions below a matrix

I would like to write the dimensions of a matrix below the matrix itself, but I managed only to either: write the dimensions below the matrix with underbrace (see matrix A in my code) write the ...
2
votes
1answer
19 views

Put subscript text below text and align

I am trying to put the subscript text {m=1/3\\n=1.9-2} below the text AF and then align the two lines at the "=" sign. Can you assist me in accomplishing this task? CODE \documentclass{article} \...
0
votes
0answers
32 views

Tensor Notation [duplicate]

Is it possible to represent the following tensor in pdf by TeX.
2
votes
1answer
33 views

What is the correct way to typeset a vector when there is subscript or superscript?

Consider this MWE: \documentclass{article} \begin{document} \[\vec{v}_{12345}^{12345678}\] \[\overrightarrow{P_{12345}P_{12345}^{12345678}}\] \end{document} As you can see, \vec is designed to ...
3
votes
1answer
39 views

Add parentheses if double superscript or double subscript

I've already got an answer for Add parentheses if double superscript. I want to go a step further as proposed below. However lualatex complains of “missing $” when using the e{_}-type argument… \...
2
votes
2answers
116 views

Detecting subscript in command argument

I have defined a command low that adds a subscript to an argument: \newcommand{\low}[1]{{#1}_{l_{\mathcal{A}}}} However, if the argument of low contains subscripts itsself (for example in the case ...
1
vote
1answer
33 views

Linebreaks in formated texts

I need to format my text in bold therefore I have several options for the same result. The main result would look like \textbf{text in bold} which works fine. But as soon as line breaks start to ...
2
votes
1answer
25 views

How to put hat on a subscript without pushing it downward?

I try to put hat on the subscript in >_{A_j}, i.e., >_{\widehat{A}_j}, but this pushes down A with the subsubscript j further downward fouling line spacing. How do I put hat on subscript while ...
0
votes
0answers
18 views

Horizontal alignment when using the tensor package

When using the \tensor command, the indicies are lowered a bit to much for my taste. Is it possible to align them with the usual position of the indicies. That is, \tensor{T}{_\mu} should look like T_\...
0
votes
1answer
33 views

superscripts on customized unit in siunitx

I want to add subscripts to some units and so far the solution I found is to define my own unit, for instance: \DeclareSIUnit{\Lmedia}{\text{$\textup{L}_{\textup{media}}$}} However, when I use this ...
4
votes
1answer
46 views

Create a line break in a subscript-position term

My code is \documentclass{article} \usepackage{amssymb,bm} \begin{equation} \nabla_{\theta} \bm{J}(\theta) = \mathbb{E}_{s \sim T^{\bm{\pi}}, a \sim \bm{\pi}_{\theta}} [\nabla_{\theta} \log \bm{\...
1
vote
1answer
24 views

Problem with newcommand subscrip doubleprime

Some time ago I wrote a command that I used many times, today I realize that it could be written correctly. in particular, the command is selected as "not in a mathematical environment". I looked for ...
1
vote
1answer
35 views

Writing limits with additional conditions

I gave a quick search, but didn't find something similarly, atleast for limits. I am trying to write something like: $\lim_{\binom{x\to 0}{x>0}} f(x)$ My intention is to put the limit with the ...
1
vote
2answers
72 views

Underscript, subscript and superscript add the same time possibly via \mathoperator* without trailing space

I have a symbol, which I want to give a underscipt, subscript and superscript. I tried: \DeclareMathOperator*{\wmat}{w} \wmat_2_i^j But now I get a space between my symbol and the sub and ...
1
vote
2answers
42 views

Subscript destroys format

this is how things looks like without subscript: in the other hand, when I try to put a subscript for MgCl_2, then the format is destroyed. I do that like this: \item Rabbit Erythrocytes (Rockland)...
0
votes
1answer
51 views

How to write this Subscript for Lagrangian Minimization Equation in Beamer

So I want an \alpha below the word 'minimise' as in this paper in equation 5 and 6.
1
vote
0answers
55 views

Double subscript [duplicate]

I have some macros whose expansion generates something like: \documentclass{amsart} \begin{document} \({T_2}_k\) \end{document} This compiles fine; technically there's a double subscript, but the ...
1
vote
2answers
149 views

Gradient notation spacing

I'd like to notate 'gradient of L with respect to a_f' which I can do with \nabla_{\mathbf{a}_f} \mathcal{L} and it looks like this: Look at all that space between the nabla and the L! Is there a way ...
0
votes
2answers
61 views

Change position of subscript locally

When I write \eta_{PV} in an equation I get a very unpleasent result: I would like to have the subscript lower than the greek letter. I know that can be achieved by \fontdimen16\textfont2=5pt \...
6
votes
4answers
364 views

How to typeset chemical formulas in roman? [duplicate]

I'm new to LaTeX and have a desire to learn as I'm completing a PhD and have been told LaTeX is a great platform for writing scientific documents. So, I have written a short plain English piece in ...
1
vote
2answers
64 views

Numbers immediately after operator subscripted in mhchem environment

The following is the output of this MWE: \documentclass[12pt]{article} \usepackage[version=4]{mhchem} \usepackage{siunitx} \begin{document} \ce{a = 2 \times 3}\\ \ce{a = 2 \div 3}\\ \ce{a = 2 \times ...
5
votes
4answers
405 views

Non-italic (roman) subscripts in math mode

Is there a way to set indices (subscripts) to non-italic globally? I'm aware of the case by case X_{\text{text goes here}} But I'm having to change that across a whole document is becoming a pain.
3
votes
1answer
42 views

horizontal shift of sub- and superscript for \chi

I get a small horizontal displacement of sub- and superscript when using the letter \chi. It does not seem to appear for other letters. Does anybody know how to fix this? MWE: \documentclass{article}...
0
votes
1answer
45 views

How do specify double subscript [duplicate]

For example I need to specify a term x subscript a subscript b. For a x subscript a, I can write it as x_{a}. However, x_{a}_{b} is not supported. How do I do that?
4
votes
0answers
85 views

Typesetting a symbol with both a subscript and an exponent [closed]

Suppose I take the variable $X_a$ and square it. To be clear, the _a is part of the variable's name, whereas the ^2 will denote the mathematical operation of squaring. I could typeset this as $X_a^2$...
1
vote
1answer
40 views

Place subscript below math operator and its following symbols

I'm dealing with equations from statistics that include expectations over quite long expressions. To display those without too many line breaks, I'd like to place the subscript below the operator and ...
10
votes
3answers
620 views

A macro that draws a half-disk for use in mathmode

I'd like to define macros to be able to use each of the following six shapes as subscripts in math mode. I'd try to draw them using tikz, but I don't know if I could use those as subscripts.
0
votes
2answers
74 views

left and right subscript and arrow beneath variable

Alright, here goes, first I know that my title is somewhat vague, but an image is worth a thousand words, here's what I'm trying to achieve : Now this is the code that I came up with : \...
0
votes
1answer
23 views

Error Message when trying to use two \betas in subscript

I am trying to use $\simga_{\beta_1 \beta_2}$ and $\simga_{\beta_2 \beta_1}$ in my text. However, I always get the following error message, which I do not understand ! Undefined control sequence. ...
0
votes
1answer
266 views

LaTeX multi-character subscript [duplicate]

I am including a formula in a LaTeX document that includes subscript that consists of more than one character: N sub t0 and N sub tmax I managed to get LaTeX to do this using this syntax: \[ \vec{...
2
votes
1answer
60 views

Double subscript error

\begin{equation} f_s = \frac{1}{T} \geq 2 f_m_a_x \end{equation} I am getting double subscript error. Although I am getting correct format of equation in pdf but in code it is giving this error. can ...
6
votes
1answer
33 views

Scaling symbol when used in subscript

I'm using this symbol (defined by Steven B. Segletes here) to denote a special type of function definition: \newcommand*\diamondarrow{% \stackengine{0pt}{\hspace{.83ex}$\rightarrow$}{$\diamond$}{O}{...
3
votes
2answers
201 views

How do I make a Young tableau whose entries have subscripts?

I am using the youngtab package I tried something like: \young{{a_1}{a_2}{a_3},{b_1}} but I cannot get it to work. I tried passing in \textrm but those are not recognized either. The more ...
3
votes
1answer
210 views

Align subscript and superscript in math mode

I'm having issues with aligning superscript with subscript in math mode. My MWE is: % arara: xelatex \documentclass[preview,8pt,varwidth=true]{standalone} \usepackage{amsmath} \usepackage{mathspec} \...
2
votes
1answer
33 views

Lowering subscript right of vertical bar

I would like the output of the standard code $x \left.\right|_{x\gets 5}$ namely but with the ability to lower the subscript and extend the vertical bar downwards. There are several relevant pages ...
2
votes
2answers
55 views

Math subscript inside ExplSyntax switches

I'd tried to rewrite @egreg answer given in this Reusing of DeclarePairedDelimiter in a foreach manner thread to solve another 'code reuse' issue, but I've got some problem with math subscript between ...
1
vote
2answers
70 views

How to get the numeric subscript and superscript to scale correctly using specific font

In the code below, the numeric superscript and subscript do not scale correctly or looks "not nice" when the font is scaled down. Is there a way to have the superscript and subscript scale nicely or ...
2
votes
1answer
83 views

Lower arrow within subscript

I'm using redesigned arrows (for maps, limits, etc.) that look better to me with Lucida Bright fonts than do the defaults. For the \tendsto command, for limits, it seems that I have to explicitly use ...
2
votes
2answers
49 views

treat newcommand as a symbol

I have defined a \newcommand \newcommand{\pt}{\ensuremath{p_{T}}\xspace} I would like to write For this I try: \begin{equation} \pt_{,a} \end{equation} The error for this approach is: ! ...
1
vote
0answers
96 views

Left sub/superscript in exponents

I have a small problem with left sub- and superscripts. In my work, I have two regularly occurring indices, that should be distinct from one another. As I have to use exponents of some of these ...
1
vote
2answers
254 views

Subscripts and Greek letters in LaTeX?

I have a text file with similar lines as this one: I am using: \usepackage[utf8x]{inputenc}% \usepackage{textalpha} % <--- Greek letters in text But still the output looks like this: How can I ...
3
votes
1answer
380 views

Mismatched braces in subscript and superscript

There is mismatch in the braces when used as subscript or superscript \textit{ $ R(p_(a ),p_(b ) )=e^{(|(-\gamma {\lVert p_(a) - p_(b) \rVert})^2| )}$}
5
votes
2answers
109 views

pre-subscript alignment with tensor package

I am trying to typeset the hypergeometric function 2F3 with subscript 2 and 3. Specifically, I want the correct alignment of the pre-subscript 2, like in this example: \documentclass{article} \...
5
votes
1answer
50 views

Vertical position of subscripts with commands

The answers to the questions Differences in vertical positioning of superscripts and subscripts depending on grouping (`{ }`): Why? Caveats? Workarounds? and {(x+y)}^2 or (x+y)^2? make it clear that ...
1
vote
0answers
25 views

How do I put subscripted variables as entries inside of the matrix using Latex? [closed]

I am trying to put a subscripted variable w_11, w_12, w_21, and w_22 inside of the matrix, but I am keep on having a error saying "Missing $ inserted." Is it impossible to put a subscript inside of ...
2
votes
1answer
45 views

Change the subscript position when a single glyph does appear

I'd like to create a command which solves ''globally'' the following question: as shown in the picture below, when the glyph ''f'' appears in math-mode, though the horizontal position of the ...
1
vote
2answers
39 views

inline underneath subscripts

Here is a piece of text I am working on: this is written as $\mathbf{p} \underset{s}{\sim}\mathbf{\bar{p}}$, and associated with the equivalence class $E(\underset{s}{\sim},\mathbf{p})=\{ \mathbf{\...
2
votes
0answers
57 views

Non-intrusive super/subscripts using slanted Greek with tensor?

I was quite happy with how the tensor package is able to typeset beautiful tensor expressions … until I decided to use the ISO convention for my Christoffel symbols. \documentclass{...
0
votes
3answers
56 views

Subscript beneath multiple words

How do I achieve this subscript beneath arg max? I tried a couple of things and got mixed results. \mathrm{\mathbf{v_2}} &=& \mathrm{arg}\max_{\mathrm{\mathbf{v}}\perp\mathrm{\mathbf{v_1}}|\...