数字错误

数字错误

使用这个

\documentclass{ieeeaccess}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\begin{document}
\begin{figure}[h]
    \centering
        \includegraphics[width=0.8\columnwidth]{images/figure1}
        \caption{caption text for image here}
        \label{fig1}
\end{figure}
\end{document}

收到此错误:

pdflatex> ! Undefined control sequence.
pdflatex> ! Missing number, treated as zero.
pdflatex> ! Illegal unit of measure (pt inserted)

我该如何修复它?

答案1

查看文件access.tex附带的内容ieeeaccess.cls,我们可以找到与以下输出相对应的以下行(在access.pdf):

\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.\label{fig1}}

在此处输入图片描述

将其应用到您的图像上,我们最终得到以下 MWE:

\documentclass{ieeeaccess}
\usepackage{graphicx}
\begin{document}
\Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt)[width=0.8\columnwidth]{example-image}
{caption text for image here\label{<figure_label>}}
\EOD
\end{document}

在此处输入图片描述

添加了一些虚拟文本:

在此处输入图片描述

相关内容