如果我使用 IEEEtran 包,如何放置 2 个数字并控制它们之间的空间

如果我使用 IEEEtran 包,如何放置 2 个数字并控制它们之间的空间

我是 LaTeX 新手,很难在一页中放置 2 个图形。我想将一个图形放在页面顶部,将另一个图形放在第一个图形的底部,即一行一个图形。我还想减小图形和标题之间的空间大小。顺便说一下,我使用的是:\documentclass[journal,12pt,draftcls,onecolumn]{IEEEtran}

答案1

我昨天提交了一份手稿,其中的内容与您使用 IEEEtran 描述的内容类似。请参阅使用以下代码生成的文档的第二页(未提供 Admiral Ackbar)。

\documentclass[journal]{IEEEtran}
\usepackage{lipsum}
\usepackage{graphics,graphicx}
\usepackage[caption=false,font=footnotesize]{subfig}


% correct bad hyphenation here
\hyphenation{op-tical net-works semi-conduc-tor}


\begin{document}
  \title{MWE for subfloat}

\author{Firstname~Lastname~\IEEEmembership{Member,~IEEE}% <-this % stops a space
}

\markboth{IEEE Some Journal,~Vol.~X, No.~X, December~2015}%
{Shell \MakeLowercase{\textit{et al.}}: Bare Demo of IEEEtran.cls for IEEE Journals}

\maketitle

\begin{abstract}
\lipsum[1]

\end{abstract}

\begin{IEEEkeywords}
Lorem ipsum, dignissium rutrum
\end{IEEEkeywords}


\IEEEpeerreviewmaketitle



\section{Introduction}
\lipsum\lipsum
\section{Experimental Results}
\lipsum[1] 
%%%%%%%%%%%%%%%%%%%%
\begin{figure}[t!]
  \centering
  \subfloat[It's a trap.\label{fig:top}]{\includegraphics[width=.55\linewidth]{ackbar}}

  \subfloat[It's a trap.\label{fig:bottom}]{\includegraphics[width=.55\linewidth]{ackbar}}
  \caption{Caption for both figures: (a) something on the top; and (b) something on the bottom. Sadly \textbackslash{}subref\{fig:bottom\} throws an exception.}
  \label{fig:top_bottom}
\end{figure}
%%%%%%%%%%%%%%%%%%%%


\end{document}

结果可以在这里看到。

希望这能有所帮助。我认为您也可以使用 subfigure 来提取这个,但您需要进行一些配置才能不破坏标题。根据 bare_jrnl.tex IEEEtran 模板文件中的注释,可以使用包 subfig 和 subfloat。

相关内容