Skip to main content

Questions tagged [substack]

\substack Is a command from the amsmath package allowing to create multiple lines (subscript or superscript).

Filter by
Sorted by
Tagged with
3 votes
1 answer
124 views

In TeX Live 2024, why does \substack insert a vertical gap between the lines when STIXMath-Regular is loaded?

Feeding \documentclass{article} \pagestyle{empty} \usepackage{unicode-math} \setmathfont{Latin Modern Math}% “TeX Gyre Termes Math” instead of “Latin Modern Math” would do as well. \setmathfont[...
AlMa1r's user avatar
  • 541
3 votes
1 answer
70 views

Modify command for sum so that substack unnecessary

Is there a way to modify sum so that \sum_{...} behaves as \sum_{\substack{...}}? It is of course possible to have a command containing the underscore, but I'm interested in if the underscore can be ...
user2472071's user avatar
1 vote
1 answer
90 views

Inserting a symbol between the two arrows of \rightrightarrows

I am trying to insert a vertical symbol \leqslant between the two arrows of \rightrightarrows as in the picture below obtained with the following awkward code. What would be the right way to do it?...
J.-E. Pin's user avatar
  • 619
1 vote
1 answer
351 views

vertical alignment of sum with substack

Sums and products are usually centred vertically. However, I find the following looks a bit silly, with the big vertical space above the sum expression: \documentclass{article} \usepackage{amsmath} \...
N. Virgo's user avatar
  • 4,289
0 votes
1 answer
76 views

\underset or \substack macro using \text{...} doesn't work with \\ to create multiple lines [duplicate]

I have the following code: $$\begin{aligned} \cal A \models (\exists x \psi)_{\bar s/\bar x}[\alpha] & \usett{\iff}{def. of \\ substitution} \end{aligned}$$ where \usett (abbreviation of '...
D.R's user avatar
  • 771
2 votes
1 answer
76 views

Why \substack doesn't honor the horizontal spaces around its argument?

The following MCE points out that \substack doesn't honor the horizontal spaces around its argument: \documentclass[fleqn]{article} \usepackage{mathtools} \begin{document} \begin{gather*} (ab=0) ...
Denis Bitouzé's user avatar
0 votes
1 answer
147 views

Vertical alignment of limits in sums

I try to find a solution to align the subscript limits of three subsequent sums for my thesis. The code for the problem looks like this: \documentclass{standalone} \usepackage{mathtools} \begin{...
Excelsior's user avatar
  • 2,322
0 votes
1 answer
63 views

\substack in \tag error

For some reason, using \substack as a label's tag causes such errors \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather} p+q=w \\ a+b=c \label{eq:1} \tag{$\substack{a\\a}$} ...
antshar's user avatar
  • 4,632
1 vote
1 answer
171 views

Using substack in flalign/align environment

I am using flalign environment for some summations which have substacks, however this seems to be giving me an "Undefined control sequence" error. Everything still compiles fine so it's not ...
Bigbadboybob's user avatar
3 votes
1 answer
255 views

How to properly stack three symbols (e.g. symbols or text above and below convergence arrows or tildes)?

I would like to define a command with three arguments which stacks three symbols or text on top of each other. The \tmb command below does that but creates a bit too much vertical space between the ...
Marius Hofert's user avatar
2 votes
2 answers
306 views

Vertical dots in \substack

I need to stack a large number of expressions below a sum sign. Using \substack and \vdots as in the code below \sum_{\substack{a_1 \in A_1\\ \vdots \\ a_k \in A_k}} gives a pretty awful result, ...
Davide_Macera's user avatar
4 votes
1 answer
1k views

Multiple text lines below underbrace without additional horizontal space

How to create a bracket with multiple lines of text and avoiding insertion of additional horizontal space? I am able to create either a single line text without additional horizontal space or multi-...
granular_bastard's user avatar
1 vote
1 answer
629 views

Remove vertical space induced by substack

With the aligned environment one can split equations across multiple lines. When using substack, more space might be required by a line, shifting any subsequent line further: \begin{align} \begin{...
PaulProgrammerNoob's user avatar
5 votes
3 answers
234 views

Three stacked lines not evenly distributed

I'm having some small spacing glitches with this stack, and I'm wondering about the best way to do this: \documentclass[11pt,letterpaper,twoside]{book} \usepackage[T1]{fontenc} \usepackage{lmodern} \...
Cham's user avatar
  • 2,328
3 votes
2 answers
1k views

substack : text does not appear as a subscript

I want to write an inductive limit as so \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{natbib} \usepackage{graphicx} \begin{document} \lim{\substack{\rightarrow\\W\supset K}}\...
epsilones's user avatar
  • 239
3 votes
3 answers
430 views

Stretch \sim in matrix transformations [duplicate]

I'm sure there is already such a question, but after searching I didn't find anything. I'm looking for the method that would make \sim stretch depending on the text above. Here is the example of ...
antshar's user avatar
  • 4,632
0 votes
1 answer
475 views

how to get limits UNDER argmax with substack, inside cases

When I use \substack together with \max, I get the limits UNDER the operator, which is what I want. However, when I use \substack with \operatorname{argmax}, the limits are subscripts, which is not ...
Joe's user avatar
  • 103
5 votes
3 answers
318 views

Stacked math with lefthand braces around selected lines

Following \documentclass[varwidth]{standalone} \usepackage{amsmath} \usepackage{stackengine} \usepackage{xcolor} \renewcommand{\vec}[1]{\mathbf{#1}} \begin{document} \stackMath \begin{equation*} ...
Hotschke's user avatar
  • 5,320
6 votes
1 answer
1k views

How should I add a bit of space below a substack in an overset?

Consider the following equations: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \int_Y \left( \int_X f(x,y)\,dy\right)dx \overset{\substack{\text{Fubini's} \\ \text{theorem}}}{=} ...
einpoklum's user avatar
  • 12.4k
1 vote
1 answer
464 views

Align with respect to symbol, not \substack

Suppose I have a multiline equation involving some accumulation (e.g. \sum or \bigcup), where the conditions require some multiline description. Consider the following dummy example: \begin{align*} ...
Timon Knigge's user avatar
3 votes
2 answers
238 views

How can I force a custom command to take effect even when called in math environment?

I want to define a new command that is similar to \addstackgap from stackengine package except that it has an optional argument. The command modifies the small stack gap so that the preferred amount ...
Al-Motasem Aldaoudeyeh's user avatar
8 votes
5 answers
4k views

Text inside equation with \\

Sometimes I want to plug in text using overbrace/stackrel inside an equation, and have it in more than one line. what is the most straightforward way to do it? What I wish to have is in the picture ...
AvidLearner's user avatar
2 votes
2 answers
456 views

Decreasing limits

I have the following codes. Is it possible to decrease the size of limits in minimum phrase? Thanks in advance. ‎ \documentclass[12pt‎ , ‎a4paper]{article}‎ \usepackage{mathtools} \...
Fahim B's user avatar
  • 681
1 vote
1 answer
69 views

\substack in \newcommand optional parameter gets ! Use of \\setof doesn't match its definition

\documentclass{article} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{amssymb} \usepackage{ifthen} \usepackage{mathtools} % Set former {x|P(x)} and {x,y,z} \newcommand {\setof} [2] [] { \...
shmuel's user avatar
  • 1,459
0 votes
2 answers
797 views

\substack on mathematical equal sign

I want to have a substack under a "=" symbol. The obvious doesn't work. Has anybody tried that before? w =_{\substack{\epsilon \to 0}} 0 Thanks
Tom's user avatar
  • 11
19 votes
1 answer
15k views

How can I get \stackrel or \underset to produce stacked indexes of the same size?

I have been trying to use the \stackrel and the \underset commands to stack the expressions i=1 and j=1 under the summation symbol. The two commands do not seem to produce the effect I expect: \...
user24098's user avatar
  • 1,245
2 votes
1 answer
685 views

Vertical alignment in substack when using displaystyle

I define the \underin command to make its first argument apper below its second argument with a rotated \in in between. It looks small, so I also define a command \dunderin by adding a \displaystyle ...
Andrei Smolensky's user avatar
4 votes
2 answers
2k views

Aligning multiple things under a limit

I'm using \lim_{\substack{n\to\infty\\t_n\to t}} to put two things under a limit. But ideally I'd like the arrows to be directly underneath each other. Can this be done? (Something on the lines ...
Bathsheba's user avatar
  • 499
2 votes
2 answers
746 views

Substack in brackets

I have the following code: \begin{dcases} \left\lbrace j\in C/\!\!\!\!\!\!\!\! \bigcup_{\substack{\scriptscriptstyle \forall c' \text{ s.t.\@}\\ \scriptscriptstyle \pi_{ic'}(\alpha)>\pi_{ic}(\...
Ali's user avatar
  • 1,361