I want to change the color of a section of a document. The command to do so is
{\color{red} \section{Introduction}}
(Merely doing \section{\color{Introduction}} does not change the color of the section number).
So when I carry out the command above, it slightly adjusts the vertical space of all of the text in the entire document. This can be observed in the gif https://i.stack.imgur.com/DrWpz.jpg
So, how do I carry out color changes without changing the vertical spacing, etc ?
Edit : A minimal code snippet and the effect of changing color can be seen here https://i.stack.imgur.com/GNHjm.jpg (no other change except color)
\documentclass{article} % For LaTeX2e
\usepackage{xcolor}
\title{Generative Adversarial Nets}
\begin{document}
\section{Introduction}
The promise of deep learning is to discover rich, hierarchical models that represent
probability distributions over the kinds of data encountered in artificial intelligence applications,
such as natural images, audio waveforms containing speech, and symbols in natural language corpora.
{\color{red} \section{Next Section}}
This framework can yield specific training algorithms for many kinds of model and optimization
algorithm. In this article, we explore the special case when the generative model generates
samples by passing random noise through a multilayer perceptron, and the discriminative model
is also a multilayer perceptron. We refer to this special case as {\em adversarial nets}.
In this case, we can train both models using only
the highly successful backpropagation and dropout algorithms
and sample from the generative
model using only forward propagation. No approximate inference or Markov chains are necessary.
\end{document}
I previously thought the culprit was the nips14submit_e (which can be found here (https://pastebin.com/aw96SzXB)), but it doesn't seem to be

texdoc colorsee footnote on page 6 of grfguide. – David Carlisle Aug 01 '19 at 16:28titlesec– David Carlisle Aug 01 '19 at 16:31\showoutputconfirms there are no spacing differences if I delete\color{red}from this example. – David Carlisle Aug 01 '19 at 18:14\pdfsavepos) – David Carlisle Aug 01 '19 at 18:33\section{Introduction}instead of\section{Next Section}– crazydiamond Aug 01 '19 at 18:40