我正在使用revtex4
文档类,并想使用twocolumn
传递的选项连续放置多个图形。
附言:几个带有类似关键词的问题都在寻找onecolumn
在文档设置中以某种格式包含大图的方法twocolumn
。但这里的情况并非如此。
考虑以下 MWE:
%!TeX program = pdflatex
%!TeX encoding = utf8
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[twocolumn,floatfix]{revtex4}
% --------------------------- %
\usepackage[demo]{graphicx}
\usepackage{lipsum}
% --------------------------- %
\begin{document}
\title{Manuscript Title:\\with Forced Linebreak}
\author{Richard Prichard}%
\affiliation{Test}%
\date{\today}
\maketitle
\section{Introduction}
\label{sec:intro}
\lipsum[1-6]\footnote{some text to add in bib..}
\section{Figures and Graphs}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\end{document}
得出的结果是:
如您所见,在第 2 页的第二列填满之前,数字被推入了第三页。我如何确保数字继续出现在第 2 页的第二列中?
编辑:
我还在本节之后添加了参考书目(参见 MWE),因此\clearpage
,虽然有效,但并不是理想的解决方案。(我还意识到在这个 MWE 中,该图被踢入参考书目部分——不知道为什么。但它尚未影响我的主要文档。)
我还应该指出,documentclass +有一个endfloats
选项可用于模拟我在这里寻找的内容,但图形的标题有时会跨列(图形在第一列,其对应的标题在第二列),这根本不理想。所以如果可能的话,我想避免这种解决方案。revtex4
\printfigures
答案1
好吧,您可以使用clearpage
将图像放在第二页或者在文章中添加更多文本,包括使用类选项floatfix
......
要测试这两种可能性,只需移动%
以下几行:
\clearpage
%\lipsum[1-6]
请参阅以下 MWE
%!TeX program = pdflatex
%!TeX encoding = utf8
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[%
twocolumn,
floatfix % <==========================================================
]{revtex4}
% --------------------------- %
\usepackage[demo]{graphicx}
\usepackage{lipsum}
% --------------------------- %
\begin{document}
\title{Manuscript Title:\\with Forced Linebreak}
\author{Richard Prichard}%
\affiliation{Test}%
\date{\today}
\maketitle
\section{Introduction}
\label{sec:intro}
\lipsum[1-6]
\section{Figures and Graphs}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\linewidth]{example-image}
\caption{something}
\end{figure}
\clearpage % <==========================================================
%\lipsum[1-6] % <=======================================================
\end{document}
结果如下:
或添加更多文字: