Questions tagged [gather]
The gather tag has no usage guidance.
53
questions
0
votes
1
answer
64
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
36
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
50
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
77
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
25
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
62
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
127
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
113
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
118
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
103
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
70
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
31
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
70
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
306
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
369
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
34
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
127
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
70
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
58
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
79
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
17
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
50
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
174
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
287
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
82
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
118
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
47
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
56
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
61
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
335
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
869
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
177
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
409
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
200
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 ...
2
votes
2
answers
333
views
Operations on both sides of equation with annotations
I recently found the package witharrows which allows you to annotate your equations and steps taking during algebraic manipulations and things like this for example.
\WithArrowsOptions{displaystyle,...
2
votes
1
answer
75
views
`gathered` unexpectedly wider than its "natural" width
I have a gathered environment inside a multlined environment inside an equation environment. For some reason the gathered-environment is wider than its natural width. Here is a MWE
\documentclass{...
3
votes
1
answer
408
views
Missing { and } inserted. Can't find mismatch
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\begin{document}
\begin{gather}
\omega_{\max} = \left(\left(\frac{9\pi^5\sigma h_{0\mathrm{Re}}}{8h^2\rho^2Q^2_\bar\...
1
vote
2
answers
46
views
How to use the gather environment to center align a different number of equations on each line?
I want to have 3 equations on one line, and 2 equations on the next line. I want them in the style of gather, i.e. they should be centre aligned in each line. This is what I want it to look like:
...
2
votes
3
answers
325
views
Cannot split long subequations
I do not seem to be able to split two long sub-equations. I've tried multline, align, split and a few other possibilities but none of them have worked; I reckon a main issue is that I've got brackets ...
3
votes
2
answers
123
views
In the figure form, how to adjust the whole size of "text" and "math" format at once?
In the figure form, how to adjust the whole size of "text" and "math" format "as a combined figure" at once?
If this is a usual pdf figure, we can do \includegraphics[width=4.4in], such as below, the ...
2
votes
1
answer
368
views
Aligning formulas inside enumerate
I have an ordered list (enumerate) each item of which is a numbered formula. I am using a gather environment.
\documentclass[12pt,a4paper]{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{...
1
vote
1
answer
589
views
Using `shortintertext` with `gathered` environment
I am currently using amsmath's gather environment to display a list of (long) expressions. I also want to insert the text "and", for which I use mathtools's \shortintertext, like so:
...and hence ...
0
votes
4
answers
4k
views
How to deal with big equations?
I have a system of equations where the equations are big (one line isn't enough). I found this solution (the second one, from egreg How to align a set of very long equations) to manage the "how to ...
4
votes
1
answer
3k
views
Why is `gathered` undefined?
Using the gathered environment causes my ide (TexStudio) to report an error
Error: Undefined control sequence. \begin{gathered}
even though I'm using the package mathtools (I also tried it with ...
0
votes
2
answers
307
views
How to align equations in align* like align, but without numbers?
Sorry if the question is worded a bit weirdly, but basically, I like how the text looks when it's centered nicely using align, but I don't like the equation numbering on the right hand side of it. I ...
0
votes
1
answer
52
views
There's some sort of error within this code which I am unable to identify
\begin{gather}
\begin{align}
F&=mg
\[F&=\frac{-GMm}{r^2}\]\\
mg&= \[\frac{-GMm}{r^2}\]\\
g&=\[\frac{-GM}{r^2}\]\\
\end{align}
\end{gather}
1
vote
3
answers
466
views
Multiple equations, derivatives in gather environment
I'm so frustrated with using latex to input mathematical equations. Now I have been noticed that the error"! LaTeX Error: Bad math environment delimiter." and the error with\gather.
\documentclass{...
0
votes
1
answer
411
views
How to use align gather in itemize or list environment?
I would like to number each equations under the itemize environment by using align or command.However it doesn't work well.Thank you for your patience in advance.
The errors:
Runaway argument?
with\...
0
votes
1
answer
2k
views
Left aligning equations in gather environment
I'm a newbie in LATEX.
I like to eliminate any extra typing for syntax, partly because I'm not accustomed to LATEX syntax and partly because I'm lazy.
I know that my way is not a recommended way, but ...