使用 IEEE Access 模板时,图题超出页面范围

使用 IEEE Access 模板时,图题超出页面范围

我为我的图表创建了一个长标题,但它显示Overfull \hbox警告,并且标题超出了 PDF 输出的页面。我可以这样做通过更改: \ifdim \xfigwd >\columnwidth%\ifdim \xfigwd >\linewidth%文件cls第 227 行(下载 IEEE Access 模板这里)但我不想更改文件cls。代码:

\documentclass{ieeeaccess}
\usepackage{graphicx}

\begin{document}

\Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){fig1.png}
{Magnetization as a function of applied field.
It is good practice to explain the significance of the figure in the caption
It is good practice to explain the significance of the figure in the caption
It is good practice to explain the significance of the figure in the caption.\label{fig1}}

\EOD

\end{document}

这些行将输出以下内容: 输出

有什么建议吗?

编辑:因为我的图片很大,所以我需要一列全宽来放置它(而不是在左列或右列)。

答案1

看看下面的方法是否适合你:

\documentclass{ieeeaccess}
\usepackage{graphicx}

\begin{document}

\Figure[t!]()[width=0.8\linewidth]{fig1.png} % <--- define width of figure
{Magnetization as a function of applied field.
It is good practice to explain the significance of the figure in the caption
It is good practice to explain the significance of the figure in the caption
It is good practice to explain the significance of the figure in the caption.\label{fig1}}

\EOD

\end{document}

在此处输入图片描述

附录:

如果我理解你的评论没有错的话,那么你的图片尺寸太大了,无法放入一列。对于这样的图片,figure*环境是定义的。使用它们,对于标题,你需要加载包caption。注意,图片将出现在下一页的顶部,从那里将图片插入到文本中:

\documentclass{ieeeaccess}
\usepackage{graphicx}
\usepackage{setspace}   % <--- new
\usepackage[font={sf,small,stretch=0.84},
            labelfont={bf,color=accessblue}
            ]{caption}  % <--- new

\usepackage{lipsum}     % for dummy text filler

\begin{document}
\lipsum[1]
\begin{figure*}[ht]     % <--- changed
    \centering
    \includegraphics[width=0.6\linewidth]{fig1.png}
\caption{Magnetization as a function of applied field.
It is good practice to explain the significance of the figure in the caption
It is good practice to explain the significance of the figure in the caption
It is good practice to explain the significance of the figure in the caption.}
\label{fig1}
    \end{figure*}
\lipsum\lipsum
\EOD

\end{document}

在此处输入图片描述

相关内容