制作包含数组的投影仪页面。包含代码

制作包含数组的投影仪页面。包含代码

请帮助解决以下代码问题。首先,beamer似乎坚持要求数组代码中的每一行都需要自己的开始和结束$符号。然后,尽管我已经检查了几个小时,它仍然坚持要求\frame{ closing parentheses} needs another$`,而它不会接受。有什么想法吗?非常感谢。:) Frank
这是我第一次使用您的服务,我发现在我输入此内容后打印出来的代码没有正确重现代码,例如,它没有显示我所在的双反斜杠。我被难住了。

\frame{
\frametitle{... and the ``solution vectors'' are the cols of ${\bf q}_{16}{\bf VertexMat}\; =$}
$ \left(\begin{array}{cccccccc}$
$  .3902    & .2803    & 0    & .0732    & 0    & .0732    & 0    & .0732 $\\
$   0    & .0732    & .3902    & .2803    & 0    & .0732    & 0    & .0732$\\
$  .0366    & 0    & .0366    & 0    & 0    & 0    & .0366    & 0$\\
$   0    & .0732    & 0    & .0732    & 0    & .0732    & .3902    & .2803$\\
$   0    & .0732    & 0    & .0732    & .3902    & .2803    & 0    & .0732$\\
$  .0366     &    0    & .0366    &     0    & .0366    & 0    & 0    & 0$\\
$   0    & 0    & .0366    & 0    & .0366    &     0    & .0366    & 0$\\
$  .0366    & 0    & 0    & 0    & .0366    & 0    & .0366    & 0$\\
$  .0366    & 0    & 0    & 0    & .0366    & 0    & .0366    & 0$\\
$   0    & 0    & .0366    & 0    & .0366    & 0    & .0366    & 0$\\
$  .0366    & 0    & .0366    & 0    & .0366    & 0    & 0    & 0$\\
$   0    & .0732    & 0    & .0732    & .3902    & .2803    & 0    & .0732$\\
$   0    & .0732    & 0    & .0732    & 0    & .0732    & .3902    & .2803$\\
$  .0366    & 0    & .0366    & 0    & 0    & 0    & .0366    & 0$\\
$   0    & .0732    & .3902    & .2803    & 0    & .0732    & 0    & .0732$\\
$  .3902    & .2803    & 0    & .0732    & 0    & .0732    & 0    & .0732$
$\end{array}\right)$ \\ 
}

答案1

这里有很多错误。在我看来,frame环境更安全。矩阵不应该在框架标题中排版,也pmatrix应该使用。当然,图形的对齐很困难。

\documentclass{beamer}

\usepackage{mathtools}


\begin{document}


\begin{frame}{A title}
\small
%frametitle{... and the ``solution vectors'' are the cols of ${\bf q}_{16}{\bf VertexMat}\; =$} % Don't understand this????
$\begin{pmatrix}
  .3902    & .2803    & 0    & .0732    & 0    & .0732    & 0    & .0732 \\
  0    & .0732    & .3902    & .2803    & 0    & .0732    & 0    & .0732\\
  .0366    & 0    & .0366    & 0    & 0    & 0    & .0366    & 0\\
  0    & .0732    & 0    & .0732    & 0    & .0732    & .3902    & .2803\\
  0    & .0732    & 0    & .0732    & .3902    & .2803    & 0    & .0732\\
  .0366     &    0    & .0366    &     0    & .0366    & 0    & 0    & 0\\
  0    & 0    & .0366    & 0    & .0366    &     0    & .0366    & 0\\
  .0366    & 0    & 0    & 0    & .0366    & 0    & .0366    & 0\\
  .0366    & 0    & 0    & 0    & .0366    & 0    & .0366    & 0\\
  0    & 0    & .0366    & 0    & .0366    & 0    & .0366    & 0\\
  .0366    & 0    & .0366    & 0    & .0366    & 0    & 0    & 0\\
  0    & .0732    & 0    & .0732    & .3902    & .2803    & 0    & .0732\\
  0    & .0732    & 0    & .0732    & 0    & .0732    & .3902    & .2803\\
  .0366    & 0    & .0366    & 0    & 0    & 0    & .0366    & 0\\
  0    & .0732    & .3902    & .2803    & 0    & .0732    & 0    & .0732\\
  .3902    & .2803    & 0    & .0732    & 0    & .0732    & 0    & .0732
\end{pmatrix}$
\end{frame}

\end{document}

相关内容