我怎样才能对齐表格?

我怎样才能对齐表格?
\documentclass[12pt]{article}

\usepackage[dvips]{graphicx}

\graphicspath{{./}{Figures/}}

\begin{document}

\begin{enumerate}
    \item Simulation result.
    \begin{enumerate}
        \item Plot the sequences of the channel for nine cases (different number of reflectors).
            \begin{table}[h!]
            \begin{center}
            \begin{tabular}{|c|c|c|}
            \hline
            \includegraphics[width=.2\textwidth]{channel_M=8.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=16.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=32.eps}\\
            M=8 & M= 16& M=32\\
            \hline
            \includegraphics[width=.2\textwidth]{channel_M=64.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=128.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=256.eps}\\
            M=64 & M=128 & M=256\\
            \hline
            \includegraphics[width=.2\textwidth]{channel_M=512.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=1024.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=2056.eps}\\
            M=512 & M=1024 & M=2056\\
            \hline
            \end{tabular}
            \end{center}
            \end{table}
    \end{enumerate}
\end{enumerate}


\end{document}

结果是:

在此处输入图片描述

但是,我想要像下面这样对齐:

在此处输入图片描述

答案1

删除table环境,因为您似乎希望表格内联,而它没有\caption。删除center,因为您希望它右对齐。

相反,在它自己的段落中,我添加了一个\hfilltabular图像数组推到右边。

\documentclass[12pt]{article}

\usepackage[demo]{graphicx}

\graphicspath{{./}{Figures/}}

\begin{document}

\begin{enumerate}
    \item Simulation result.
    \begin{enumerate}
        \item Plot the sequences of the channel for nine cases (different number of reflectors).
%           \begin{table}[h!]
%            \begin{center}

\hfill
            \begin{tabular}{|c|c|c|}
            \hline
            \includegraphics[width=.2\textwidth]{channel_M=8.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=16.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=32.eps}\\
            M=8 & M= 16& M=32\\
            \hline
            \includegraphics[width=.2\textwidth]{channel_M=64.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=128.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=256.eps}\\
            M=64 & M=128 & M=256\\
            \hline
            \includegraphics[width=.2\textwidth]{channel_M=512.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=1024.eps}
            & \includegraphics[width=.2\textwidth]{channel_M=2056.eps}\\
            M=512 & M=1024 & M=2056\\
            \hline
            \end{tabular}
%            \end{center}
%            \end{table}
    \end{enumerate}
\end{enumerate}


\end{document}

在此处输入图片描述

相关内容