我正在尝试水平编号问题集中的一些练习,但出现错误
“缺失数字,视为零。”
在“\multicolumn”后面的两行中显示:
\documentclass[11pt,epsfig]{article}
\oddsidemargin=0in
\evensidemargin=0in
\textwidth=6.3in
\topmargin=-0.5in
\textheight=9in
\parindent=0in
\pagestyle{empty}
\input{notestpoints}
\begin{document}
QUIZ 3.1-3.5 \hfill {Name:} {\underline {\hspace{2.5in}}}
\vspace{1pc}
Simplify each expression by clearing parentheses and combining like terms.
\\
\begin{problem}{0}
$\displaystyle -2(4a+3)-14$
\end{problem}
\vspace{.6 in}
\begin{problem}{0}
$\displaystyle -2(4a+3)-14$
\end{problem}
\vspace{.6 in}
Solve the equation using the appropriate property of equality. %\textit{(2 points each)}
\vspace{1pc}
\begin{tabular}{ll}
\multicolumn{2}{c}
\problem{} $\displaystyle -20t=36$ \hspace{1.5in} \problem{} \hspace{.15in} $\displaystyle 1.2+z=-3.7$ \\\\\\
\problem{} $\displaystyle \frac{2}{3}y=12$ \hspace{1.5in} \problem{} \hspace{.15in} $\displaystyle 7=\frac{x}{4}$
\end{tabular}
\end{document}
我对 LaTeX 还不太熟悉。
答案1
结合@Mario SE 的回答\problem
我刚刚创建了打印计数器的命令。
但我确信这里有很多主题与表格形式的枚举问题列表有关。
\documentclass[11pt,epsfig]{article}
\oddsidemargin=0in
\evensidemargin=0in
\textwidth=6.3in
\topmargin=-0.5in
\textheight=9in
\parindent=0in
\pagestyle{empty}
%\input{notestpoints}
\newcounter{problem}
\setcounter{problem}{0}
\newcommand{\problem}{\stepcounter{problem}\theproblem.\ }
\begin{document}
Solve the equation using the appropriate property of equality. %\textit{(2 points each)}
\begin{center}
\renewcommand*{\arraystretch}{1.5}
\begin{tabular}{|ll@{\hspace*{2in}}||ll@{\hspace*{2in}}|}
\problem $-20t=36$ & & \problem $1.2+z=-3.7$ & \\
\problem $\frac{2y}{3}=12$ & & \problem $7=\frac{x}{4}$ &
\end{tabular}
\end{center}
\end{document}