Math & ScienceHuge unexplainable whitespace around 'Align Environment'

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
frans
Posts: 1
Joined: Thu Aug 19, 2010 12:23 am

Huge unexplainable whitespace around 'Align Environment'

Post by frans »

Hi All,

For some unknown reason latex is putting a huge ugly whitespace around this piece of code

Code: Select all

\begin{align}
I(\veci{\rho};z) &= \int d\veci{\rho}' \sep \left| A(\veci{\rho}',\veci{\rho};z) \right|^2 \\
	&= \int d\veci{\rho}' \sep A^{*}(\veci{\rho}',\veci{\rho};z) \sep A(\veci{\rho},\veci{\rho}';z) \\
	&= \int d\veci{\rho}' \sep \left| E_p\left( \frac{\veci{\rho}'+\veci{\rho}}{2};z \right) \right|^2 \sep \left| V(\veci{\rho}'-\veci{\rho};z) \right|^2 \\
	&\approx \int d\veci{\rho}' \sep \left| \delta\left( \frac{\veci{\rho}'+\veci{\rho}}{2};z \right) \right|^2 \sep \left| V(\veci{\rho}'-\veci{\rho};z) \right|^2
\end{align}
If I change it to this to:

Code: Select all

\begin{align}
I(\veci{\rho};z) &= \int d\veci{\rho}' \sep \left| A(\veci{\rho}',\veci{\rho};z) \right|^2 \\
	&= \int d\veci{\rho}' \sep A^{*}(\veci{\rho}',\veci{\rho};z) \sep A(\veci{\rho},\veci{\rho}';z) \\
	&= \int d\veci{\rho}' \sep \left| E_p\left( \frac{\veci{\rho}'+\veci{\rho}}{2};z \right) \right|^2 \sep \left| V(\veci{\rho}'-\veci{\rho};z) \right|^2 
	%&\approx \int d\veci{\rho}' \sep \left| \delta\left( \frac{\veci{\rho}'+\veci{\rho}}{2};z \right) \right|^2 \sep \left| V(\veci{\rho}'-\veci{\rho};z) \right|^2
\end{align}
Everything looks fine. No errors in both pieces of code. I use TeXLive 2009 on a Mac (Snow Leopard 10.6.4).

The command \sep en \veci I defined myself and give no trouble in other parts of the document.

Recommended reading 2024:

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

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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Huge unexplainable whitespace around 'Align Environment'

Post by meho_r »

Hi and welcome to the forum,

1. Please, read Board Rules.

2. Pay attention to section 2.2: Building an example.

I find it interesting that you said you used custom commands but you haven't include them in your partial example. Without a complete example, it is possible that people won't even bother to try to help you since you didn't follow the basic rules and because they don't have time to build examples themselves and guess what you may have done wrong. So, if you want a quick answer, please make sure that, when one clicks on "Select all" link above the code you provided, pastes it in a LaTeX editor and runs latex or pdflatex on it, it is compilable right away.
Post Reply