错误:未定义控制序列,对于 \end{tabularx)

错误:未定义控制序列,对于 \end{tabularx)

我试图用 4 个数字制作一个 2by2 表格,但当我结束 {tabularx} 时,Latex 一直报错。请帮忙,这是相关代码:

\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{tabularx}

\begin{figure}
\def\tabularxcolum#1{m{#1}}
\begin{tabularx}{\linewidth}{@{}cXX@{}}
\begin{tabular}{cc}
    \subfigure[Logit Link]
        {\includegraphics[width=0.75\textwidth]{Fig71.png}}  \label{fig:71} 
  & \subfigure[Log-log Link]
         {\includegraphics[width=0.75\textwidth]{Fig72.png}}  \label{fig:72} 
    \subfigure[Log Link]
           {\includegraphics[width=0.75\textwidth]{Fig73.png}}   \label{fig:73} 
   & \subfigure[Inverse Link]
           {\includegraphics[width=0.75\textwidth]{Fig74.png}}   \label{fig:74} 

\end{tabular}
\end{tabularx}
   \caption{Checking Linearity} \label{fig:7}
\end{figure}

错误是:

undefined control sequence.
<inserted text>...begin{tabular}{cc}..
\end{tabularx}

答案1

您根本不需要外部 tabularx。只需一个tabular两列两行的 tabularx 就足够了。另外,如果图形很.75\textwidth宽,您不能将两个图形放在一行中吗?

相关内容