如何防止新章节进入 LaTeX 中的下一页或段落

如何防止新章节进入 LaTeX 中的下一页或段落

我正在写我的双栏文章。我注意到,当我使用\section{}LATEX 中的命令时,新章节经常出现在下一栏(甚至下一页),即使它之前的第一栏或第一页没有填满文本。这会在第一栏或第一页的底部产生非常大的尴尬空白空间,这样新章节就可以在新的页面或列上开始。

有什么方法可以轻松强制覆盖该默认值吗?我总是希望新部分在前一节结束后立即出现(仅一行空格)。

\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]
\usepackage[bookmarks,backref=true,linkcolor=black]{hyperref} %,colorlinks
\usepackage{listings} %% addedR
\hypersetup{
  pdfauthor = {},
  pdftitle = {},
  pdfsubject = {},
  pdfkeywords = {},
  colorlinks=true,
  linkcolor= black,
  citecolor= black,
  pageanchor=true,
  urlcolor = black,
  plainpages = false,
  linktocpage
}
\usepackage{wrapfig,float}
\usepackage{caption} %%% added
\captionsetup[figure]{slc=off}  %%% added
\usepackage{subcaption}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{url}
\usepackage{ulem}
\usepackage[section]{placeins}
\usepackage[export]{adjustbox}
\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}}}

\renewcommand{\headrulewidth}{0pt}


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

在此处输入图片描述

相关内容