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

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
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 8828 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