## LaTeX forum ⇒ General ⇒ vertical spacing in math

LaTeX specific issues not fitting into one of the other forums of this category.
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

### vertical spacing in math

i write multiline equations in the environment of 'gather', but i dont know how to create vertical space between the equations
i use \smallskip, it doesnt work.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm
Location: Colombia
Hi,

an option (if I understood your question correctly):
\documentclass{report}\usepackage{amsmath} \begin{document} text text text text...\begin{gather}   A=b\\   C=d\\   D=e\\[4em]   F=g\\[2em]   H=i\end{gather}text text text text... \end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...

spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am
it works very well, but still one problem

the equations in the gather environment wont break the pape automatically, so making extra blank space between the graphs.
i wonder if the gather environment could be redefined or costomized to make the equations break the page automatically.

thank you very much

localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany
spiegboy wrote:[...] i wonder if the gather environment could be redefined or costomized to make the equations break the page automatically. [...]

Search the documentation of amsmath for \allowdisplaybreaks and \displaybreak.

Best regards
Thorsten¹
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Stefan Kottwitz
Posts: 8460
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Hi,

if you don't want to adjust the spacing for every line but use the same vertical space after each line you could change the length \jot, try:
\documentclass[a4paper,10pt]{article}\usepackage{amsmath}\setlength{\jot}{20pt}\begin{document}\begin{gather}  x = 1 \\  y = 2\end{gather}\end{document}

Of couse you can change \jot also just locally.

Stefan

spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am
very good trick, thanks a lot!!

Stefan_K wrote:Hi,

if you don't want to adjust the spacing for every line but use the same vertical space after each line you could change the length \jot, try:
\documentclass[a4paper,10pt]{article}\usepackage{amsmath}\setlength{\jot}{20pt}\begin{document}\begin{gather}  x = 1 \\  y = 2\end{gather}\end{document}

Of couse you can change \jot also just locally.

Stefan

spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am
got it, put \allowdisplaybreaks[2] in the preamble, it works fine
thanks a lot

localghost wrote:
spiegboy wrote:[...] i wonder if the gather environment could be redefined or costomized to make the equations break the page automatically. [...]

Search the documentation of amsmath for \allowdisplaybreaks and \displaybreak.

Best regards
Thorsten¹