! LaTeX 错误:未找到文件“\unskip”

! LaTeX 错误:未找到文件“\unskip”

我在表格环境中嵌入图像时似乎遇到了问题。我收到以下错误:

! LaTeX Error: File `\unskip ' not found.

下面是有问题的代码。编译器将我指向以\multicolumn

\begin{figure}[H]
\centering
  \begin{tabular}{@{}cc@{}}
      \includegraphics[scale=0.22]{lig_nontp_align.png} &
      \includegraphics[scale=0.22]{transporthist.png} \\
    \multicolumn{2}{c}{\includegraphics[width=.23\textwidth]}
  \end{tabular}
  \caption{\textit{Left:} Non-transport and ligand proteins aligned to the ligand HMM model. \textit{Right:} the three different sub-types of transmembrane proteins aligned to the ligand HMM model. }
\end{figure}

我可以通过谷歌搜索找到与“\unskip”有关的问题,但不完全是这种类型的问题。问题是什么?

谢谢。

答案1

您的示例\includegraphics[width=.23\textwidth]没有文件名。结果将是它将\includegraphics拾取它找到的下一个内容作为强制参数。在 LaTeX 表格单元格内,它将是\unskip(由 LaTeX 插入):这需要修复。

相关内容