Math & Science ⇒ What should be the natural spacement between equations?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
What should be the natural spacement between equations?
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
What should be the natural spacement between equations?
what I'm asking is that all the equations in a given math environment (gather and align) are equaly spaced vertically. I want to get this equal vertical spacing for all align and gather environments. If an equation is really bigger than some other, I'll put it in a separate environment, of hand adjust the spacing in its case.
I hate the variable spacings. It looks horrible!
What should be the natural spacement between equations?
\vphantom
is what you're really after:
Code: Select all
\documentclass[11pt,letterpaper,twoside]{book}\usepackage{lmodern}\usepackage{amsmath}%\setlength{\jot}{\baselineskip}\newcommand*\bigstrut{\vphantom{\frac{A^2}{y^2}}}\begin{document}Blabla:\begin{gather}\bigstrut x^2 - \frac{1}{2} \, x = 3, \\\bigstrut \frac{a^2}{b^3} \, y + 2 x \, y = y^2, \\\bigstrut a - b = c.\end{gather}\end{document}
Rainer