Questions tagged [gather]
The gather tag has no usage guidance.
68
questions
0
votes
1
answer
30
views
Equal spacing between equations using align or gather
Is there an option for equal spacing between equations with and without fractions?
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{section}{title}
text
\begin{gather}
a + ...
2
votes
1
answer
137
views
Controlling alignment in group of equations with align / aligned
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
\begin{aligned}
x &= 1 & y &= 233 & z &= 2
\end{aligned}
\\
\begin{aligned}
a &= ...
3
votes
2
answers
225
views
How to split a long set
I have this MWE where there are two long set
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
\begin{document}
Supponiamo che l'insieme sia $A=\{a,b,c\}$. L'insieme delle parti di $...
1
vote
1
answer
32
views
Getting rid of the centering in first line of gather?
Suppose we have the following code:
\documentclass[reqno]{amsart}
\usepackage{amsaddr}
\usepackage{geometry}
\geometry{margin=1in,top=3cm}
\usepackage{amssymb,mathrsfs}
\begin{document}
\begin{...
2
votes
2
answers
153
views
understanding amsmath gather environment error messages
I'm trying to understand the error messages when using latex without having to google them all. The following example produces 10 errors when using TexpadTeX (based on TeX Version 3.14159265 with e-...
0
votes
1
answer
119
views
How to use gather and aligned with multiple labels?
The code below gives me ?? when referencing the equations. How do i fix it ?
How do I get (1a,1b) for the first equation if possible?
MWE
\documentclass{article}
\usepackage{amsmath}
\begin{document}...
2
votes
1
answer
72
views
Conflict between quantikz, cleveref and gather environments
I am writing an article in which I need a quantum circuit figure, and want to use the quantikz package for the purpose. However, I got a series of errors upon loading quantikz. I have pinpointed the ...
2
votes
1
answer
69
views
Why expl3 conflicts with "gather" environment?
This code works just fine:
\documentclass{article}
\usepackage{filecontentsdef}
\usepackage{expl3}
\ExplSyntaxOn
\cs_generate_variant:Nn \tl_replace_all:Nnn {Nx}
\makeatletter
\NewDocumentEnvironment{...
4
votes
2
answers
226
views
How to use \nonumber in \gather environment?
I have two equations in the \gathered environment.
\documentclass{book}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{gathered}
\Delta U_{ab}+\Delta U_{ba}=0\\
\...
5
votes
1
answer
76
views
aligned in multline*, gather*, or align* produces superfluous space
Somewhat related to aligned in multlined produces superfluous space , there is superfluous space inside multline*, gather*, or align* if its contents contains aligned with at least two columns. Namely,...
1
vote
1
answer
107
views
Is \inferrule* inside gather* not centered?
Feeding
\documentclass{article}
\pagestyle{empty}
\usepackage{amsmath}
\usepackage{mathpartir}% version 1.3.2 or 1.4.0
\begin{document}
\begin{gather*}
\inferrule*[left=M,right=M]{premises}{...
1
vote
0
answers
22
views
Vertical space in pdf due to space between text and gather [duplicate]
I use the TeXworks editor along with pdfLaTeX. I like to put a vertical space before starting a gather environment for my visual and mental peace. However, this puts a vertical space in the output too
...
1
vote
2
answers
202
views
Tagging Each Line in `aligned`
I want to combine the gather and aligned environments in the following way.
\documentclass[]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{gather}
A = B + C + D + E + ...
2
votes
1
answer
71
views
amsmath's align* or gather* followed by \ifmmode = 🗲
Feeding
\documentclass{article}
\usepackage{mathtools}%%% or amsmath
\begin{document}
\begin{gather*}
\ifmmode Math\else Text\fi
\end{gather*}
\end{document}
to any of the four LaTeX processors (...
2
votes
2
answers
305
views
automating a quadratic equation
I have updated my recent post am I am trying to automate it but need help with a method, I have read all the macro books I can but can not find an answer.
\documentclass{article}
\usepackage{mathtools}...
0
votes
1
answer
97
views
Change call and name of gather environment
I'm aware that it is not so doable, but just asking: using LaTeX a lot this years I noticed that I used many many times the \begin{gather*} \end{gather*} call, so much that I must have spent at least ...
0
votes
1
answer
78
views
How to put left-justified text next to gathered equations
Minimal example
\documentclass[leqno]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
x+(y+z) = (x+y)+z
\end{equation*}
\begin{gather}
\tag*{This pushes it}
x+(y+z) = (x+y)...
1
vote
1
answer
88
views
Tabularray sometimes bugs within amsmath gather
On my new texlive distribution (vanilla texlive 2021 over Ubuntu 20.04), tabularray sometimes doesn't work within gather (from amsmath). For example
\begin{gather*}
\begin{tblr}{l}
a \\ b
\end{...
2
votes
2
answers
245
views
Reference an aligned equation inside a gather environment
I have the below code
\begin{gather} V(x,y) = 0 \Rightarrow \begin{aligned}
{V_x}(x,y) &= \frac{{{y^2}(12 - 2xy - {x^2})}}{{2{{(x + y)}^2}}} = 0,\\
{V_y}(x,y) &= \frac{{{x^2}(12 - 2xy - {y^2})}...
0
votes
1
answer
34
views
How to use gathered inside tabular without causing excess space in nearby columns? [closed]
I would like the circuit layout and the mathematical equations of a certain circuit to be side by side with relevant captions. I use a table for this, since I might also add some information in the ...
1
vote
1
answer
215
views
Custom statement numbering using gather and align/aligned
Here is a proof in Latex, which renders like so:
I'm fairly pleased with the result, but I wish there were a way to turn the (1) and (2) into right-aligned elements instead of having to be manually ...
3
votes
2
answers
347
views
Better caption for align/gather
I want to add small captions under the align and gather math groups that I make in my notes. I just added something like \begin{center}, then some \small text for a centered small text look. Here is ...
1
vote
1
answer
478
views
Centering equations doesn't work
I'm new to Latex and trying to center some equations.
The following works:
\begin{gather*}
MSE = MSE_{net\_sir} + MSE_{net\_f}\\
\end{gather*}
But for some reason this doesn't show when I try to ...
1
vote
0
answers
265
views
Multiple labels error in align inside gather
I have written the following piece of latex (ignore the formulas, don't make sense)
\begin{gather}
\min \quad \sum_{i=1}^{n} a_i b_i, \nonumber \\
\begin{align}
\sum_{i=1}^{n} a_{i} \...
1
vote
2
answers
382
views
Is it possible to have multiple gather environments in one line?
Specifically, I want to arrange many small equations in a more compact manner, but still include a \tag with each one. Currently, I typeset the longer equations like this:
\documentclass[fleqn]{...
2
votes
1
answer
107
views
Can the split environment be used for only one equation?
Within the span of half of a page, the User's Guide for the amsmath Package gives conflicting assertions about whether the equation or align or gather environment housing the split structure can ...
0
votes
0
answers
103
views
Equations numbering with the subequations environment
I'm trying to fix some equations numbering, using the subequations environment. Here's a MWE showing my issue:
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{...
0
votes
1
answer
118
views
cleveref package and gather environment
I use the cleveref to cross-reference my equations and I have no problems with the equation and align environments. However, when using the gather environment, the cross-reference reads: "Section ...
2
votes
2
answers
777
views
`scalebox` scales the equation number in a multiline equation nested in `subequations`
I have a list of equations in a subequations environment. Some of the equations are too big, so I scale them down with scalebox. However the equation number gets scaled down with the rest. How can I ...
1
vote
2
answers
896
views
is it possible to use resizegather with align* or to align equations in gather*?
Here is the problem. Some of the equations generated by computer algebra programs are long, and there is no way to edit them by hand to break them.
I like to use align* but scale the long ones so they ...
0
votes
1
answer
153
views
Using Gather and Split for centering substeps
I'm relatively new to Latex and have so far been able to get by by searching around, but the code I'm currently trying to implement is doing some stuff that I can't predict in the slightest. The .tex ...
3
votes
2
answers
194
views
How to define a starred custom gather new environment
I'm writing a file which I need the equations inside the gather environment to not be numbered.
I was able to see the normal version (this answer, which works great:
\newenvironment{Lgather}{\...
0
votes
2
answers
113
views
Alignment problem when using gather with multicol
I have an alignment problem similar to that which is found in this question. But using column break did not solve my problem as it did in this question.
I guess I could try align, but it would be ...
1
vote
1
answer
93
views
How to exit alignment in align?
How can I get equations of "gathered type" inside an align environment?
\documentclass[12pt, a4paper]{article}
\usepackage{amsmath}
\usepackage{showframe}
\begin{document}\setlength{\...
1
vote
1
answer
116
views
Align all formulas in one document
In my document I have quite a few mathematical formulas, which I use the amsmath package to represent.
I would like a representation in which all formulas that are on one page are aligned with the ...
0
votes
1
answer
32
views
Equation numbering below gathering, no matter how far left the equation is shifted
Code:
\documentclass[12pt]{beamer}
\usepackage{amsmath}
\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,landscape]
%\pgfpagesuselayout{2 on 1}[a4paper]
%\usetheme{Singapore}
\usetheme{...
0
votes
1
answer
61
views
Spacing glitch before equal sign in gather and aligned environments
I'm having some spacing troubles before an equal sign, inside a combined gather and aligned environment, as shown with this MWE :
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage[total={6in,...
4
votes
2
answers
213
views
Why is there multiply labels in this gather environment?
The console says there are multiply labels in this code:
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}
\...
5
votes
1
answer
586
views
How to change the alignment of an equation in a gather environment
I am using the gather environment to write the equations for my report.
By default, the gather environment centers equations. For example, if I write:
Furthermore, in a Markov chain, it is assumed ...
1
vote
0
answers
132
views
Tag number at wrong place in an align environment
I'm having a problem in numbering some equations in this MWE code:
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[total={6in,10in},left=1.5in,...
1
vote
0
answers
51
views
Why use `equation` instead of `gather` [duplicate]
I know equation accepts only one line, and gather accepts several lines.
Then when there is only one line, is there any advantage of equation over gather?
If not, why does equation exists at all?
May ...
0
votes
1
answer
191
views
Error - ! Extra alignment tab has been changed to \cr
I'm new on latex, today I try to use de environment gather of the package "amsmath" but get the fallowing error:
! Extra alignment tab has been changed to \cr.
<template> }}\...
0
votes
0
answers
56
views
How to identify align points in a gather environment
I am using Lyx. I have created a set of equations in a gather environment. Now I think it would be better if I get the equal signs aligned. I don't like to reconstruct my equations again in an align ...
0
votes
0
answers
60
views
Numbering for Gather Equation: I want to remove the chapter number from equation numbering [duplicate]
I am novice to Lyx. I have used standard report for the document class. I created a gather equation. The equation numbering includes the number of the chapter which I do not want. I just want to ...
2
votes
1
answer
77
views
Troubles in aligning terms under gather, aligned and split environments
I'm having a lot of troubles in aligning some terms in a complicated equation. This is probably a semi-trivial thing, but I don't get it (fssshhht!). Here's a MWE to show my problem:
\documentclass[...
3
votes
1
answer
725
views
How to fix the vertical spacing of equations in align and gather environments? [duplicate]
Here's a minimal LaTeX code showing my troubles:
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage{lmodern}
\usepackage{amsmath}
%\setlength{\jot}{\baselineskip}
\begin{document}
Blabla:
...
4
votes
4
answers
1k
views
Fitting a large equation with gathered in table cell
I currently have a table and two equations like this:
\documentclass[a4paper,12pt]{extarticle}
\usepackage[utf8]{inputenc}
\usepackage[a4paper, total={7in, 9in}]{geometry}
\usepackage[T1]{fontenc}
\...
2
votes
2
answers
491
views
Remove vertical space in gather enviroment
I have the following code in a beamer:
\begin{frame}
\frametitle{New frame}
\begin{block}{Distorsión radial}
\begin{gather*}
\delta_{ur}(u,v)=u(k_1\cdot r^2+k_2\cdot r^4),\\
\delta_{vr}(u,v)=v(k_1\...
0
votes
1
answer
2k
views
Center align* within gather*
Running the following example
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\hrule
\begin{gather}
\sin{2x}=2\sin{x}\cos{x}\\
\begin{align}
\cos{2x}&=\cos^2{x}-\sin^...
2
votes
2
answers
227
views
using resizegather inside tabular: how to remove extra vertical space above and below the equation?
I need to fit some large equations generated by CAS inside a tabular. resizegather seems like it can do the job. But it generates lots of extra space above and below the equation in each row.
This ...