[Tex/LaTex] Remove white space at the start of new section in latex

layoutsectioningspacingvspace

Using this code:

\RequirePackage[l2tabu,orthodox]{nag}
\documentclass[12pt,letterpaper,nofootinbib,notitlepage,tightenlines]{revtex4-1}
\linespread{2}
\usepackage[letterpaper,margin=1in,bottom=1in]{geometry}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{microtype}
%\raggedbottom
\usepackage[bottom]{footmisc}
\renewcommand{\footnoterule}{\kern -1ex\rule{0.3\linewidth}{0.5pt} \\ 
\vspace{1ex}}
\usepackage{amsmath}
\pagestyle{plain}
\usepackage{setspace}
\usepackage{blindtext}
\usepackage{caption}
\captionsetup{font={small,stretch=1}}
%\usepackage[bottom,multiple]{footmisc}
\usepackage{graphicx}
\usepackage{bm}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{indentfirst}
\usepackage{lipsum}
\usepackage{float}


\newcommand{\forceindent}{\leavevmode{\parindent=8em\indent}}

\begin{document}



\begin{center}\section{THEORY \& HYPOTHESES}
\label{sec:analysis}

to create the following new section and, as you can see, when the code is compiled the outcome includes a large vertical space. The same thing does not occur for any of my other sections despite using the exact same code pattern.

enter image description here

I tried using a variety of \vspace commands but could not get anything to work.

Best Answer

\documentclass[12pt,letterpaper,nofootinbib,notitlepage,tightenlines]{revtex4-1}
\linespread{2}
\usepackage[letterpaper,margin=1in,bottom=1in]{geometry}

\usepackage{blindtext}

\begin{document}

\blindtext

\begin{center}
\section{THEORY \& HYPOTHESES}
\label{sec:analysis}
\end{center}

\blindtext

\clearpage

\blindtext 

\section{THEORY \& HYPOTHESES}

\blindtext
\end{document}

A few pointers:

  1. Don't put \section inside a center environment. Look at the two pages produced by the code above side by side and you'll see that doing so creates extra space.

  2. Try \allowdisplaybreaks in the preamble.

  3. Try \raggedbottom in the preamble.

  4. If none of those work then post a complete example demonstrating your actual problem.