Math & Science ⇒ vertical spacing gather
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: vertical spacing gather
Your MWE seems to be perfectly fine. Maybe state, what you want to achieve in more detail.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Posts: 14
- Joined: Thu Aug 15, 2013 9:42 am
vertical spacing gather
What do you mean by not being precise enough? I was very precise enough. Maybe my English is not good. You have to read my first question and then you can see that I want to change the minimum vertical distance between two lines globally. I gave a minimum example and I gave a "maximum" example. Here again is the "maximum" example:
Code: Select all
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\begin{document}
\begin{gather*}
\begin{array}{rl}
\begin{array}{c}
\dfrac{a}{b \cdot \dfrac{a}{b \cdot \dfrac{a}{b \cdot \dfrac{a}{b}}}}\\
\dfrac{a \cdot \dfrac{a \cdot \dfrac{a \cdot \dfrac{a}{b}}{b}}{b}}{b}\\
\dfrac{c}{d}\\
a = b
\end{array}
&
\begin{array}{rl}
a & $this is an a$\\
b & $this in a b$\\
c & $this is a c$\\
d & $this is a d$
\end{array}
\end{array}
\end{gather*}
\end{document}
-
- Posts: 14
- Joined: Thu Aug 15, 2013 9:42 am
vertical spacing gather
My problem is:
There should be a variable/constant like
\minimumVerticalDistanceBetweenTwoCharacters
used by gather to set the minimum vertical distance between two characters. And I want to change that variable/constant. That variable/constant could exist just like \arraystretch
is existing.Maybe a variable/constant like that is existing or there is an other way to achieve a result like setting a variable/constant. I don't know. That's why I'm here.
But what I do know is that the proposals until now were not solutions.
vertical spacing gather
{gather}
) and {array}
which is the math equivalent of a {tabular}
. Both are adjusted differently. The vertical spacing between lines of multiline displayed equations is controlled by the length \jot
(default 3pt
) which doesn't affect {array}
, though:Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{gather}
a = b \\
a = b
\end{gather}
\[
\begin{array}{c}
a =b \\
a =b
\end{array}
\]
\setlength\jot{1cm}
\begin{gather}
a = b \\
a = b
\end{gather}
\[
\begin{array}{c}
a =b \\
a =b
\end{array}
\]
\end{document}
{align}
for example. {array}
is influenced by \arraystretch
(default 1
) which does not affect the multiline environments:Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{gather}
a = b \\
a = b
\end{gather}
\[
\begin{array}{c}
a =b \\
a =b
\end{array}
\]
\renewcommand\arraystretch{2}
\begin{gather}
a = b \\
a = b
\end{gather}
\[
\begin{array}{c}
a =b \\
a =b
\end{array}
\]
\end{document}
{tabular}
and other table environments:Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{tabular}{c}
a b \\
a b
\end{tabular}
\[
\begin{array}{c}
a =b \\
a =b
\end{array}
\]
\renewcommand\arraystretch{2}
\[
\begin{array}{c}
a =b \\
a =b
\end{array}
\]
\begin{tabular}{c}
a b \\
a b
\end{tabular}
\end{document}
Regards
-
- Posts: 14
- Joined: Thu Aug 15, 2013 9:42 am
Re: vertical spacing gather
How can I delete this thread?
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: vertical spacing gather
That's why it's a public forum, to collect information and solutions, besides the personal support. Similar in German at http://texwelt.de/ , as I noticed you posted in German. You are welcome there too. Well, I would post a suggestion for the touching fractions problem there.

Stefan