Generalvertical spacing in math

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

vertical spacing in math

Post by spiegboy »

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

vertical spacing in math

Post by gmedina »

Hi,

an option (if I understood your question correctly):

Code: Select all

\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

Re: vertical spacing in math

Post by spiegboy »

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
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

vertical spacing in math

Post by localghost »

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¹
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

vertical spacing in math

Post by Stefan Kottwitz »

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:

Code: Select all

\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
LaTeX.org admin
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

vertical spacing in math

Post by spiegboy »

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:

Code: Select all

\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

vertical spacing in math

Post by spiegboy »

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¹
Post Reply