在页面顶部开始新部分,而不是在图下方
Start new section at top of page, not below a figure
当我在 LATEX 中的每个部分使用一个以上的图形时,我不再能够指示部分编号在分页符之后开始。我已经为此苦苦挣扎了一段时间。如果那里有任何 LATEX 向导,将不胜感激您的帮助。
在下面引用的文件中,我遇到困难的是第 2 部分。最终文档比这个长得多,这个问题发生了好几次,但我想为了清楚起见,我会创建一个仍然存在问题的更简单的版本。
zip file containing everything
\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}
你试过用\clearpage
代替\newpage
吗?
当我在 LATEX 中的每个部分使用一个以上的图形时,我不再能够指示部分编号在分页符之后开始。我已经为此苦苦挣扎了一段时间。如果那里有任何 LATEX 向导,将不胜感激您的帮助。
在下面引用的文件中,我遇到困难的是第 2 部分。最终文档比这个长得多,这个问题发生了好几次,但我想为了清楚起见,我会创建一个仍然存在问题的更简单的版本。
zip file containing everything
\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}
你试过用\clearpage
代替\newpage
吗?