我的双栏文档有一个附录,我想在附录的开头放置一个双栏图。
我尝试使用以下代码:
\documentclass[twocolumn]{article}
\usepackage{blindtext}
\begin{document}
\section{Section}
\blindtext[4]
\clearpage
\appendix
\section{Appendix}
\begin{figure*}[t]
A very wide figure that spans across two columns.
A very wide figure that spans across two columns.
A very wide figure that spans across two columns.
\caption{Figure}
\end{figure*}
\blindtext[4]
\end{document}
结果如下所示(图片放在最后一页):
这个问题询问类似问题,但不会询问附录(或清除页面后立即询问)。此外,建议的解决方案\twocolumn[...]
似乎在这种情况下不起作用。
答案1
您可以使用 stfloats 包:
\documentclass[twocolumn]{article}
\usepackage{blindtext}
\usepackage{stfloats}
\begin{document}
\section{Section}
\blindtext[4]
\clearpage
\begin{figure*}[!t]
A very wide figure that spans across two columns.
A very wide figure that spans across two columns.
A very wide figure that spans across two columns.
\caption{Figure}
\end{figure*}
\appendix
\section{Appendix}
\blindtext[4] \blindtext[4]
\end{document}
答案2
两列图形总是最早出现在页面中,排在它们在源文件中的位置之后,但这里由于目前尚不完全清楚的原因,排在前\clearpage
面的图形影响了布局。(或者至少不清楚如何在不影响\clearpage
后续浮动元素位置的情况下刷新该点的所有浮动元素)
但是,由于这里没有待处理的浮动,因此您可以删除清除页:
\documentclass[twocolumn]{article}
\usepackage{blindtext}
\begin{document}
\section{Section}
\blindtext[4]
%\clearpage
\begin{figure*}[!t]
A very wide figure that spans across two columns.
A very wide figure that spans across two columns.
A very wide figure that spans across two columns.
\caption{Figure}
\end{figure*}
\newpage
\appendix
\section{Appendix}
\blindtext[4]
\end{document}