Page LayoutToo much vertical space between different environments

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
kamikaze_951
Posts: 4
Joined: Tue Aug 28, 2012 4:22 pm

Too much vertical space between different environments

Post by kamikaze_951 »

Hi everyone,

I have used the setspace package to have a one and a half spacing (as is required for my thesis). However, the command \onehalfspacing seems to introduce a lot of white vertical space between different paragraphs and environments. When I remove this command, this extra white space is removed. Here is a working example that seems minimal:

Code: Select all

\documentclass[12pt]{book}
\usepackage[letterpaper, hmargin = 38mm, vmargin = 25mm]{geometry}
\usepackage{setspace}

\onehalfspacing		%If I comment this line, the page layout is ok, but the text has a simple line spacing

\usepackage{mathtools, amssymb}

\usepackage[amsmath, thmmarks, hyperref, thref]{ntheorem}
\usepackage{thmtools}

\newtheorem{thm}{Theoreme}[chapter]
\newtheorem*{demo}{Demonstration}

\begin{document}
\chapter{Formalisme de Bloch}
Le système que nous etudions, qui a ete etudie dans [1], est forme des equations ??, ?? et de la condition de normalisation ??. Avant la resolution de ces equations, nous allons simplifier leur etude en les ecrivant dans la représentation dite ``de Bloch''. Cette representation nous permettera d'abord une meilleure analyse qualitative de ces equations. Notamment, elle permettera de montrer que l'equation d'Einstein se réduit a la premiere equation de Friedmann lorsque $m$ ou $\lambda$ tend vers zero. On voit alors que le premier cas correspond a un univers domine par la matiere, alors que le second cas correspond à un univers domine par le rayonnement. Cette analyse qualitative est l'objet de ce chapitre. Toutefois, cette representation permet également une resolution plus simple de ces equations, ainsi qu'une analyse plus facile de leurs solutions. Il s'agit de l'objet du prochain chapitre.

\section{Equations de Dirac et d'Einstein dans la representation de Bloch}
\sectionmark{Systeme ED dans la représentation de Bloch}
Puisque les equations de Dirac et d'Einstein sont données en termes du spineur $\left(\frac{num}{den}\right)$
 par les equations ?? et ??, nous considerons ce dernier comme un systeme a deux etats et nous definissons, pour ce dernier, le vecteur de Bloch
\begin{equation}
\begin{split}
\vec{v} &= 
\end{split}
,
\end{equation}
ou $some symbols taking some space$ represente le vecteur de Pauli dans $\mathbb{R}^3$. $\vec{v}$ est donc un vecteur de $\mathbb{R}^3$ et $\{e_1, e_2, e_3\}$ est une base orthonormee de cet espace. Un calcul explicite fournit
\begin{equation}
\begin{split}
\vec{v} &=\\&=\\&=\\&=
.
\end{split}
\end{equation}
\begin{thm}
Soit
\begin{equation}
\vec{b} = \frac{2\lambda}{R}e_1 - 2me_3
.
\end{equation}
 Alors en termes des vecteurs $\vec{v}$ et $\vec{b}$, le systeme d'Einstein-Dirac s'ecrit comme suit :
\begin{align}
\dot{\vec{v}} &= \vec{v}\wedge\vec{b}	\\
\:\:\: \dot{R}^2 + 1 &= -\frac{1}{2R}\vec{b}\cdot\vec{v}
,
\end{align}
ou $''\wedge"$ et $''\cdot"$ representent respectivement le produit vectoriel et le produit scalaire dans $\mathbb{R}^3$.
\end{thm}
\begin{demo}
On se concentre d'abord sur l'equation ?? et nous la prouvons composante par composante :
%If I remove this long alignement of equations, things seem fine
\begin{equation}
\begin{split}
\dot{v}_1 &=\\&=\\&=\\&=\\&=\\&=\\&=\\&=\\&=\\&=\\&=\\&=\\&=\\&=\\&=\\&=\\&=
\end{split}
\end{equation}
\end{demo}
\end{document}
When I remove (or reduce) the very long equation at the end of the document, the extra space is removed and everything seems fine.

My question is :
How can I keep a reasonable spacing between different paragraphs and environments while keeping a one and a half spacing between lines and my equations intact?

Since I must hand in my thesis soon, any help is deeply appreciated. Thank you for considering my request.

Christophe
Attachments
ProblemWithSpacing.tex
WE that should be minimal
(2.91 KiB) Downloaded 668 times
Last edited by kamikaze_951 on Tue Jun 04, 2013 5:56 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.

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Too much vertical space between different environments

Post by Johannes_B »

Hi Christophe,

have you heard of minimal examples? Those help us understanding the porblem and give us something to test. Your example contains references, they are irrelevant to your question. Please take a few minutes improving your example into a good Minimal Working Example. You can write directly into the code where things are strange.
Then, please edit your first post, replacing the attached file by using the code button. This way, you can confirm
1) that your example is working (there is the WriteLaTeX-Button)
2) we see the same as you do.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
kamikaze_951
Posts: 4
Joined: Tue Aug 28, 2012 4:22 pm

Re: Too much vertical space between different environments

Post by kamikaze_951 »

Hi Johannes,

My apologies. Everything should now be as expected. If not, feel free to ask me again for corrections.

Christophe
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Too much vertical space between different environments

Post by Johannes_B »

Hi,

the equation-environment at the end of your example cannot be broken up on two pages, i.e. there is no pagebreak allowed. Mathtools gives the solution. You can add \allowdisplaybreaks into your preamble and everything should work as expected.


By the way, I noticed this:
ou $''\wedge"$ et $''\cdot"$ representent
Please compare the output:

Code: Select all

\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\begin{document}
$''\wedge"$\\
''$\wedge$"\\
”$\wedge$“ <- typographically correct quotation marks (U+201C and U+201D)\\
``$\wedge$'' <- classic LaTeX 
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
kamikaze_951
Posts: 4
Joined: Tue Aug 28, 2012 4:22 pm

Too much vertical space between different environments

Post by kamikaze_951 »

Hi Johannes,

Adding \allowdisplaybreaks in the preamble (right after \usepackage{mathtools, amssymb}) didn't solve the problem for the MWE I posted. However, it did partially solve the problem for my whole thesis. There is still a lot of white spaces between environments, paragraphs and sections that I have to care about, but I understood that LaTeX add these spaces for typographical reasons. Thus, I consider the problem as solved and I will post again on this website if I have other issues.

I thank you a lot for taking the time to help me and also for pointing my typographical mistake to me. Best regards,

Christophe
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Too much vertical space between different environments

Post by Johannes_B »

Oh, i forgot to tell you. \allowdisplaybreaks works with the align environment, I'm sorry for the inconvenience. Click for more information.

Addition: A good way to typeset quotation marks is the package csquotes. It sets the marks in relation to the language.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply