在页面上混合使用一列和两列浮动元素

在页面上混合使用一列和两列浮动元素

我使用的是ieeetran使用双列布局的文档类。我尝试使用figurefigure*在同一页上放置单列和双列图形,但出于某种原因,LaTeX 拒绝这样做。

以下 MWE 显示了我的问题:

\documentclass[journal,a4paper]{IEEEtran}

\usepackage{graphicx}                          % GRAPHICS: Advanced graphics loading
\usepackage[pangram]{blindtext}                % DEVELOPMENT: Provide blind text like lipsum but better

\begin{document}
\title{Foobar}
\author{Mox}

% The paper headers
\markboth{Foo}{Bar}

\maketitle
\begin{abstract}
    This is an MWE for one and two column figures.
\end{abstract}

\begin{IEEEkeywords}
    figure, figure*
\end{IEEEkeywords}

\section{Introduction}
\IEEEPARstart{I}{n} this paper I would really like to have one-column and two-column graphics on the same page.
\blindtext % Blindtext calls are separated to yield paragraphs for sure

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

% Top of right column on second page...
\begin{figure}
    \centering
    \includegraphics[width=0.9\linewidth, height=5cm]{example-image-a}
    \caption{A graphic using \emph{figure}.}
    \label{fig:a}
\end{figure}

% This should be on the bottom of the second page...
\begin{figure*}
    \centering
    \includegraphics[width=0.9\linewidth, height=5cm]{example-image-b}
    \caption{A graphic using \emph{figure*}.}
    \label{fig:b}
\end{figure*}

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\end{document}

第 1 页 第2页 第 3 页 第 4 页

有没有一种简单的方法可以将两幅图像放在同一页上?请不要建议完全手动放置图形,这对我来说无关紧要。我希望图形浮动到我想要的位置。

相关内容