Math & ScienceVertical Spacing in Fractions

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Vertical Spacing in Fractions

Post by Cham »

I have a small vertical spacing glitch in the following equation. How can I make the fraction to have both "E" vertically aligned?

Code: Select all

\begin{equation}
	\frac{\tilde{p}}{\tilde{E}} = \frac{p}{E}.
\end{equation}
Last edited by Cham on Mon Jan 09, 2012 8:57 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Vertical Spacing in Fractions

Post by Stefan Kottwitz »

Hi Cham,

it can easily be fixed with \vphantom, creating an invisible height of the E with tilde:

Code: Select all

\frac{\tilde{p}}{\tilde{E}} = \frac{p}{\vphantom{\tilde{E}}E}.
tilde.png
tilde.png (2.37 KiB) Viewed 8931 times
Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Re: Vertical Spacing in Fractions

Post by Cham »

WOW ! :shock:

Thanks for the fast response ! It's working perfectly ! 8-)
Post Reply