如何防止 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}

在此輸入影像描述

相關內容