平均能量损失

平均能量损失

我正在创建一个双列文档,我注意到即使相邻列没有显示任何数字,有时也会显示两个数字,一个在另一个之下。经过一番调试,我发现当 textheight 被分配自定义值时会发生这种情况。不幸的是,我无法取消设置,因为这是文档布局的要求。有什么办法可以解决这个问题吗?

这是一个最小的工作示例:

\documentclass[twocolumn]{article}

\usepackage[hypcap]{caption}
\usepackage{graphicx}
\usepackage{lipsum}

% Style stuff that is required for document start
\setlength{\textheight}{9.0in} % Causes figures be placed in same column
\setlength{\columnsep}{0.25in}
\setlength{\textwidth}{6.50in}
\setlength{\topmargin}{0.0in}
\setlength{\headheight}{0.0in}
\setlength{\headsep}{0.0in}
% Style stuff that is required for document end

\begin{document}

\date{}

\title{\Large \bf Fancy title}

\author{
  {\rm Author}\\
   [email protected]\\
   University
}

\maketitle

\begin{figure}[t]
  \center
  \includegraphics[width=0.5\textwidth]{tex}
  % https://upload.wikimedia.org/wikipedia/commons/thumb/6/68/TeX_logo.svg/640px-TeX_logo.svg.png
  \captionof{figure}{\TeX}
  \label{fig:tex}
\end{figure}

\begin{figure}[t]
  \center
  \includegraphics[width=0.5\textwidth]{latex}
  % https://upload.wikimedia.org/wikipedia/commons/thumb/9/92/LaTeX_logo.svg/640px-LaTeX_logo.svg.png
  \captionof{figure}{\LaTeX}
  \label{fig:latex}
\end{figure}

\section{Introduction}
\lipsum[1-3]

\end{document}

答案1

按照 David 的说法评论

平均能量损失

\documentclass[twocolumn]{article}

\usepackage[hypcap]{caption}
\usepackage{graphicx}
\usepackage{lipsum}

% Style stuff that is required for document start
\setlength{\textheight}{9.0in} % Causes figures be placed in same column
\setlength{\columnsep}{0.25in}
\setlength{\textwidth}{6.50in}
\setlength{\topmargin}{0.0in}
\setlength{\headheight}{0.0in}
\setlength{\headsep}{0.0in}
\setcounter{topnumber}{1} % To allow at most one top float in a column. 
% Style stuff that is required for document end

\begin{document}

\date{}

\title{\Large \bf Fancy title}

\author{
  {\rm Author}\\
   [email protected]\\
   University
}

\maketitle

\begin{figure}[t]
  \center
  \includegraphics[width=0.5\textwidth]{tex}
  % https://upload.wikimedia.org/wikipedia/commons/thumb/6/68/TeX_logo.svg/640px-TeX_logo.svg.png
  \captionof{figure}{\TeX}
  \label{fig:tex}
\end{figure}

\begin{figure}[t]
  \center
  \includegraphics[width=0.5\textwidth]{latex}
  % https://upload.wikimedia.org/wikipedia/commons/thumb/9/92/LaTeX_logo.svg/640px-LaTeX_logo.svg.png
  \captionof{figure}{\LaTeX}
  \label{fig:latex}
\end{figure}

\section{Introduction}
\lipsum[1-3]

\end{document}

前

在此处输入图片描述

相关内容