可以将 \column 和 \table 结合起来吗?

可以将 \column 和 \table 结合起来吗?

希望这篇文章能让您身体健康。我需要复制图片中的内容。我一直试图将我的表格添加到,\begin{columns}但恐怕我没有成功。我肯定我遗漏了一些东西,但无法理解是什么。

我可以请求您就此事提供帮助吗?

我的部分代码:

    \begin{frame}{The Lights Out Game}
    The game consists of a 5 by 5 grid of lights; at the start some of them are switched on. Pressing one of the lights will toggle it and the four adjacent lights on and off. The challenge is to get to the point where all lights are off. Here is an example.
    \begin{columns}
        \begin{column}
            \begin{table}[tb]
                \begin{tabular}{|l|l|l|l|l|}
                    \hline
                    \multicolumn{1}{|c|}{} &  &  &  &  \\ \hline
                    &  &  &  &  \\ \hline
                    &  &  &  &  \\ \hline
                    &  &  &  &  \\ \hline
                    &  &  &  &  \\ \hline
                \end{tabular}
            \end{table}
        \end{column}
    \end{columns}
\end{frame}

我得到的错误是Missing \endcsname inserted. \end{frame}

嵌套列和表

答案1

根据 @leandriis 的说法,以下方法有效!非常感谢您的帮助和协助

 \vspace{2ex}
    \begin{columns}
        \begin{column}{0.2\textwidth}
                \begin{tabular}{|l|l|l|l|l|}
                    \hline
                    \multicolumn{1}{|c|}{} &  &  &  &  \\ \hline
                    &  &  &  &  \\ \hline
                    &  &  &  &  \\ \hline
                    &  &  &  &  \\ \hline
                    &  &  &  &  \\ \hline
                \end{tabular}
            \hfill\
        \end{column}
        \begin{column}{0.8\textwidth}
            \begin{itemize}
                \vspace{-3ex}
                \item At the start the 13 lights shown are on.
                \item We press one light (shown in red)
                \item This is the result; continue in this way.
                \item Success!
            \end{itemize}
        \end{column}
    \end{columns}

相关内容