小编Ala*_*son的帖子

在页面顶部开始新部分,而不是在图下方

当我在 LATEX 中每个部分使用一个以上的数字时,我不再能够规定部分编号在分页符之后开始。我已经为此苦苦挣扎了一段时间。如果有任何 LATEX 向导,您的帮助将不胜感激。

在下面引用的文件中,我正在努力解决第 2 部分。最终文档比这要长得多,而且这个问题发生了好几次,但我想为了清楚起见,我会创建一个仍然存在问题的更简单的版本。

包含所有内容的 zip 文件

\documentclass{article}
\usepackage{graphicx}   
\usepackage{placeins}

\widowpenalty=2000
\clubpenalty=2000

\begin{document}

\section{}


\begin{figure} [h]
  \center
  \includegraphics[width=12cm]{Figure}
  \label{fig:example}
\end{figure}
\FloatBarrier

My goal is to have section 2 start on a new page.
$$\\$$

\begin{figure} [h]
  \center
  \includegraphics[width=14cm]{Figure}
  \label{fig:example}
 \end{figure}


\newpage
\pagebreak [4]
$$\\$$


\section{}

\begin{figure} [h]
  \center
  \includegraphics[width=14cm]{Figure}
  \label{fig:example}
\end{figure}


This is the body text for section 2.


\end{document}
Run Code Online (Sandbox Code Playgroud)

图.jpg

latex

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

latex ×1