Math & ScienceSubequation whitespace

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
User avatar
jvm
Posts: 9
Joined: Thu Jul 15, 2010 3:22 pm

Subequation whitespace

Post by jvm »

Hello

I'm using subequation in one of my chapters, now I see there is a very big white space between my two equations a and b.

How can I limit the whitespace (preferably I just put them right under each other with a normal rule whitespace)?

MWE:

Code: Select all

Code, edit and compile here:
\documentclass[a4paper,fleqn]{book}
% Packages
\usepackage{polynom,amssymb,amsmath}
\begin{document}
% Dutch style of paragraph formatting, i.e. no indents.
\setlength{\parskip}{1.3ex plus 0.2ex minus 0.2ex}
\setlength{\parindent}{0pt}
\chapter{methods}
\section{Partial Least Squares} \label{sec:PLS}
Partial Least Squares (PLS) is a method that defines orthogonal latent variables to compress the information and throw away irrelevant stuff. It maximizes the the covariance between $\mathbf{X}$ and $\mathbf{Y}$. PLS decomposes $\mathbf{X}$ ($n \times N$) and $\mathbf{Y}$ ($n \times M$) into te form as follows:
\begin{subequations}
\begin{equation}
\mathbf{X} = \mathbf{T}\mathbf{P}^{T} + \mathbf{E}
\end{equation}
\begin{equation}
\mathbf{Y} = \mathbf{U}\mathbf{Q}^{T} + \mathbf{F}
\end{equation}
\end{subequations}
More text
\end{document}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Last edited by jvm on Tue Jul 20, 2010 4:39 pm, edited 1 time in total.
I have not failed. I’ve just found 10,000 ways that won’t work - Thomas A. Edison

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Subequation whitespace

Post by gmedina »

Hi,

try with this:

Code: Select all

Code, edit and compile here:
\begin{subequations}
\begin{align}
\mathbf{X} &= \mathbf{T}\mathbf{P}^{T} + \mathbf{E}\\
\mathbf{Y} &= \mathbf{U}\mathbf{Q}^{T} + \mathbf{F}
\end{align}
\end{subequations}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
or with something like this (change -3pt according to your taste) if you want to reduce even more the vertical spacing:

Code: Select all

Code, edit and compile here:
\begin{subequations}
\begin{align}
\mathbf{X} &= \mathbf{T}\mathbf{P}^{T} + \mathbf{E}\\[-3pt]
\mathbf{Y} &= \mathbf{U}\mathbf{Q}^{T} + \mathbf{F}
\end{align}
\end{subequations}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
jvm
Posts: 9
Joined: Thu Jul 15, 2010 3:22 pm

Re: Subequation whitespace

Post by jvm »

Lol that was easier than I thought :P

Thanks for the fast reply
I have not failed. I’ve just found 10,000 ways that won’t work - Thomas A. Edison
Post Reply