我想为矩阵和行列式系列测试设置一份多项选择题试卷。在某些问题中,我必须提供矩阵作为选项。对于其他选项,我使用
\begin{oneparchoices}
\choice
\end{oneparchoices}
答案1
\documentclass{exam}
\usepackage{amsmath}
\newenvironment{smallpmatrix}{%
\bigl(\begin{smallmatrix}%
}{%
\end{smallmatrix}\bigr)%
}
\begin{document}
\begin{questions}
\question Question with regular matrices.
\begin{oneparchoices}
\choice $\begin{pmatrix} a & b \\ c & d \end{pmatrix}$
\choice $\begin{pmatrix} \alpha & \beta \\ \gamma & \delta \end{pmatrix}$
\end{oneparchoices}
\question Question with smaller matrices.
\begin{oneparchoices}
\choice $\begin{smallpmatrix} a & b \\ c & d \end{smallpmatrix}$
\choice $\begin{smallpmatrix} \alpha & \beta \\ \gamma & \delta \end{smallpmatrix}$
\end{oneparchoices}
\end{questions}
\end{document}