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

\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}
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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Subequation whitespace

Post by gmedina »

Hi,

try with this:

Code: Select all

\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}
or with something like this (change -3pt according to your taste) if you want to reduce even more the vertical spacing:

Code: Select all

\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}
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