How to prevent new sections from going to next page or paragraphs in LaTeX [closed]

I am working on my two-column article. I notice that often when I use the \section{} command in LATEX, the new section appears in the next column (or even next page), even if the first column or page before it is not full of text. This creates very large awkward empty space at the bottom of the first column or page, just so that the new section can begin on a new page or column.

Is there any way to easily force that default to be overwritten? I always want a new section to occur immediately after the end of the section before (with just one line space).

\documentclass[journal]{vgtc} % final (journal style)
%\let\ifpdf\relax
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}
\usepackage{graphicx,xcolor}
\usepackage{sidecap}
\usepackage{times}
\usepackage{dblfloatfix}
\usepackage{fixltx2e}
\usepackage{mwe}
\usepackage{natbib}
\usepackage{fullpage}
\usepackage{color}
%\usepackage[dvipsnames,svgnames]
\hypersetup{
pdfauthor = {},
pdftitle = {},
pdfsubject = {},
pdfkeywords = {},
citecolor= black,
pageanchor=true,
urlcolor = black,
plainpages = false,
}
\usepackage{wrapfig,float}
\usepackage{subcaption}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{url}
\usepackage{ulem}
\usepackage[section]{placeins}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{fancyhdr}
\fancyhf{}
\cfoot{\thepage}
\pagestyle{fancy}

\newcommand{\hh}[1]{{\color{orange} #1}}
\graphicspath{{figure/}}
\renewcommand{\floatpagefraction}{.99}
\newcommand{\done}[2][inline]{\todo[color=SpringGreen, #1]{#2}}
\newcommand{\newdo}[1]{\todo[inline, color=Plum]{#1}}
\newcommand{\comment}[2][inline]{\todo[color=SkyBlue, #1]{#2}}
\newcommand{\newtext}[1]{\todo[inline, color=White]{ \color{OliveGreen}{#1}}}

\begin{document}

\firstsection{First section}

This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section.

This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section.

This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section.

\section{Second section}
This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.

This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.

This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.

This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.

\end{document}


closed as unclear what you're asking by David Carlisle, Mensch, Joseph Wright♦Jan 3 '15 at 22:17

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• I can't replicate your problem (using this vgtc template)... \firstsection doesn't print anything. – Werner Dec 17 '14 at 7:14
• I am not sure why. Can you try \section instead? Basically, though, this happens throughout the paper. Most times I start a new \section{sectionName}, it begins at a new column or new page, even if there is plenty of space before it! Thanks again for any advice.. I'm kind of desperate right now :( – user3603093 Dec 17 '14 at 7:24
• This is the output when I use the linked vgtc.cls and your code (with \section instead of \firstsection). Perhaps I have the wrong vgtc.cls? – Werner Dec 17 '14 at 7:32
• Are you using vgtc because to wanted a ready to use template? If so, this would have been article. Journal templates are a constant source of user despair. As i know for sure, this isn't the first oddness you are encountering ;-) – Johannes_B Dec 17 '14 at 9:09
• @user3603093 please make sure that the example as posted demonstrates the problem and link to the exact class you used (or just add the full text of the class file to your question) If we can not reproduce the large spaces we can't say why they are there. – David Carlisle Dec 17 '14 at 12:39