Skip to main content

Questions tagged [gather]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
49 views

How do you automatically layout a large number of equations?

When defining a relation (for example, the provability relation in the example at the end), it is often the case that a large number of rules are given. To layout them, I usually use the gather* ...
user avatar
0 votes
1 answer
38 views

Weird overleaf error: Align used inside gather

My code compiles but I am getting error messages. Why? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather} e_l = [0, \mathbf{Emb}(l_{\mathrm{human}}), \mathbf{Emb}(l_1), \...
Kong's user avatar
  • 2,471
0 votes
1 answer
41 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 + ...
Sylvia's user avatar
  • 485
2 votes
1 answer
194 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 &= ...
Simon's user avatar
  • 517
3 votes
2 answers
249 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 $...
Sebastiano's user avatar
  • 56.6k
1 vote
1 answer
36 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{...
Arbuja's user avatar
  • 251
2 votes
2 answers
183 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-...
DummyVariable's user avatar
0 votes
1 answer
318 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}...
Kong's user avatar
  • 2,471
2 votes
1 answer
118 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 ...
frederik's user avatar
2 votes
1 answer
72 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{...
yegor256's user avatar
  • 12.2k
4 votes
2 answers
342 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\\ \...
GedankenExperimentalist's user avatar
5 votes
1 answer
84 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,...
user avatar
1 vote
1 answer
154 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}{...
user avatar
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 ...
Rob Tan's user avatar
  • 263
2 votes
2 answers
369 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 + ...
Sam OT's user avatar
  • 1,338
2 votes
1 answer
103 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 (...
user avatar
2 votes
2 answers
485 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}...
Paul A's user avatar
  • 1,117
0 votes
1 answer
108 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 ...
Rob Tan's user avatar
  • 263
0 votes
1 answer
120 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)...
simple jack's user avatar
1 vote
1 answer
96 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{...
dominique's user avatar
  • 101
2 votes
2 answers
289 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})}...
Dr. Kareem Elgindy's user avatar
0 votes
1 answer
36 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 ...
kcoskun's user avatar
  • 101
1 vote
1 answer
253 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 ...
Revise's user avatar
  • 365
3 votes
2 answers
414 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 ...
Revise's user avatar
  • 365
1 vote
1 answer
603 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 ...
Penguin's user avatar
  • 315
1 vote
0 answers
304 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} \...
Sirion's user avatar
  • 245
1 vote
2 answers
445 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]{...
schuelermine's user avatar
2 votes
1 answer
112 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 ...
Chaitanya Tappu's user avatar
0 votes
0 answers
143 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{...
Cham's user avatar
  • 2,328
0 votes
1 answer
136 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 ...
AlMa's user avatar
  • 560
2 votes
2 answers
960 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 ...
Pxx's user avatar
  • 179
1 vote
2 answers
1k 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 ...
Nasser's user avatar
  • 20.3k
0 votes
1 answer
198 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 ...
Appellus's user avatar
3 votes
2 answers
225 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}{\...
Bruno Andrade's user avatar
0 votes
2 answers
121 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 ...
SamPassmore's user avatar
1 vote
1 answer
107 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{\...
josh's user avatar
  • 174
1 vote
1 answer
131 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 ...
kolja's user avatar
  • 129
0 votes
1 answer
35 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{...
Superman's user avatar
  • 1,625
0 votes
1 answer
65 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,...
Cham's user avatar
  • 2,328
4 votes
2 answers
221 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} \...
Cham's user avatar
  • 2,328
5 votes
1 answer
712 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 ...
Aziz's user avatar
  • 159
1 vote
0 answers
142 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,...
Cham's user avatar
  • 2,328
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 ...
Violapterin's user avatar
0 votes
1 answer
198 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> }}\...
Jean Persia's user avatar
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 ...
Sabreen's user avatar
  • 65
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 ...
Sabreen's user avatar
  • 65
2 votes
1 answer
86 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[...
Cham's user avatar
  • 2,328
3 votes
1 answer
902 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: ...
Cham's user avatar
  • 2,328
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} \...
wrahool's user avatar
  • 185
2 votes
2 answers
603 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\...
scd's user avatar
  • 764