如何在两列文档中定位宽图形

如何在两列文档中定位宽图形

我想将图像放在双列文档的页面底部。使用figure*会导致图像跳转到文档底部。有没有办法避免这种情况?

以下是一个例子:

\begin{figure*}[h]
\includegraphics[width=6 in]{image.png}
\caption{info}
\label{fig:1}
\end{figure*}

这会导致所有图像跳转到文档底部。使用[b][!b][h][!h][ht]也会[!ht]导致图像跳转到文档底部。即使图形尺寸缩小到小于文本宽度,我最终也会得到几页文本,然后是几页图形。

这就是我目前使用的。

\documentclass[twocolumn,pre,floats,aps,amsmath,amssymb]{revtex4}
\usepackage{graphicx}
\usepackage{bm}
\begin{document}
\title{document title }
\author{name}
\affiliation {place }
\date{\today}
\maketitle
\section{Introduction}
\label{sec:intro}
\begin{figure*}[h]
\includegraphics[width=5 in]{1.png}
\caption{A sample schematic diagram for an experiment.}
\label{fig:1}
\end{figure*}
\section{Materials and Methods}
\label{sec:experiment}
\section{Results}
\label{sec:results}
\begin{figure*}[h]
\includegraphics[width=6 in]{2.png}
\caption{A sample schematic diagram for an experiment.}
\label{fig:2}
\end{figure*}.
\begin{figure*}[h]
\includegraphics[width=6 in]{3.png}
\caption{A sample schematic diagram for an experiment.}
\label{fig:3}
\end{figure*} 
\section{Conclusion}
\label{sec:conclusion}
\begin{figure*}[h]
\includegraphics[width=6 in]{4.png}
\caption{A sample schematic diagram for an experiment.}
\label{fig:4}
\end{figure*}
\subsubsection*{References}
 citation~\cite{ABC}, article citation~\cite{author}comment 
\begin{thebibliography}{99}
\bibitem{ABC}reference {\it } ()
\end{thebibliography}
\end{document}             

答案1

[更多评论,但要移出未答复列表]

使用标准文档类,加载dblfloatfix将允许此处的一些灵活性。但是,由于您使用的是 REVTeX,因此它不起作用(您可以加载包,但它没有效果)。您能做的最好的事情就是完全忽略位置参数:LaTeX 至少能够将浮点数放在列的顶部,因此其中一些不会被撞到文档的末尾。(由于您使用的是日记文档类,因此通常的建议适用:仅仅因为您认为布局很奇怪并不意味着您应该更改它!)

\documentclass[twocolumn,pre,floats,aps,amsmath,amssymb]{revtex4}
\usepackage[demo]{graphicx}
\usepackage{lipsum}
\begin{document}
\title{document title }
\author{name}
\affiliation {place }
\date{\today}
\maketitle
\section{Introduction}
\label{sec:intro}
\lipsum[1-8]
\begin{figure*}
\includegraphics[width=5 in]{1.png}
\caption{A sample schematic diagram for an experiment.}
\label{fig:1}
\end{figure*}
\section{Materials and Methods}
\label{sec:experiment}
\lipsum[1-8]
\section{Results}
\label{sec:results}
\lipsum[1-8]
\begin{figure*}
\includegraphics[width=6 in]{2.png}
\caption{A sample schematic diagram for an experiment.}
\label{fig:2}
\end{figure*}.
\begin{figure*}
\includegraphics[width=6 in]{3.png}
\caption{A sample schematic diagram for an experiment.}
\label{fig:3}
\end{figure*} 
\section{Conclusion}
\label{sec:conclusion}
\lipsum[1-8]
\begin{figure*}
\includegraphics[width=6 in]{4.png}
\caption{A sample schematic diagram for an experiment.}
\label{fig:4}
\end{figure*}
\subsubsection*{References}
 citation~\cite{ABC}, article citation~\cite{author}comment 
\begin{thebibliography}{99}
\bibitem{ABC}reference {\it } ()
\end{thebibliography}
\end{document}  

相关内容