General ⇒ vertical spacing in math
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.
i use \smallskip, it doesnt work.
NEW: TikZ book now 40% off at Amazon.com for a short time.

vertical spacing in math
Hi,
an option (if I understood your question correctly):
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,...
Re: vertical spacing in math
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
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: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
vertical spacing in math
Search the documentation of amsmath for \allowdisplaybreaks and \displaybreak.spiegboy wrote:[...] i wonder if the gather environment could be redefined or costomized to make the equations break the page automatically. [...]
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
vertical spacing in math
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:
Of couse you can change \jot also just locally.
Stefan
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}
Stefan
LaTeX.org admin
vertical spacing in math
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:Of couse you can change \jot also just locally.Code: Select all
\documentclass[a4paper,10pt]{article} \usepackage{amsmath} \setlength{\jot}{20pt} \begin{document} \begin{gather} x = 1 \\ y = 2 \end{gather} \end{document}
Stefan
vertical spacing in math
got it, put \allowdisplaybreaks[2] in the preamble, it works fine
thanks a lot
thanks a lot
localghost wrote:Search the documentation of amsmath for \allowdisplaybreaks and \displaybreak.spiegboy wrote:[...] i wonder if the gather environment could be redefined or costomized to make the equations break the page automatically. [...]
Best regards
Thorsten¹