LaTeX forum ⇒ Math & ScienceWhat should be the natural spacement between equations?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
User avatar
Johannes_B
Site Moderator
Posts: 4098
Joined: Thu Nov 01, 2012 4:08 pm

What should be the natural spacement between equations?

Postby Johannes_B » Sun Dec 01, 2019 8:53 am

Your book is about physics. Equations in physics need some space. Do you want equations to have the same distance from one another in all of the 2000+ pages?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Cham
Posts: 926
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Mon Dec 02, 2019 1:17 am

Johannes,

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!

rais
Posts: 250
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Mon Dec 02, 2019 6:07 am

perhaps \vphantom is what you're really after:
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[11pt,letterpaper,twoside]{book}
  2. \usepackage{lmodern}
  3. \usepackage{amsmath}
  4. %\setlength{\jot}{\baselineskip}
  5.  
  6. \newcommand*\bigstrut{\vphantom{\frac{A^2}{y^2}}}
  7.  
  8. \begin{document}
  9.  
  10. Blabla:
  11. \begin{gather}
  12. \bigstrut x^2 - \frac{1}{2} \, x = 3, \\
  13. \bigstrut \frac{a^2}{b^3} \, y + 2 x \, y = y^2, \\
  14. \bigstrut a - b = c.
  15. \end{gather}
  16.  
  17. \end{document}

KR
Rainer


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 8 guests