\newcommand\answerboxb{%%
\fbox{\rule{0.3in}{16pt}\rule[-0.5ex]{0pt}{4ex}}}
\newcommand\answerboxw{%%
\fbox{\rule{0.3in}{0pt}\rule[-0.5ex]{0pt}{4ex}}}
.....
\centerline \answerboxb \answerboxb \answerboxb \answerboxw \answerboxw \answerboxw \answerboxw \\
\centerline 1 2 3 4 5 6 7
我想枚举这 7 个框,但我无法对齐它们。我尝试添加空格、居中等等,但都无济于事。
答案1
这是你想要的吗?
\documentclass{report}
\newcommand\answerboxb{%%
\fbox{\rule{0.3in}{16pt}\rule[-0.5ex]{0pt}{4ex}}}
\newcommand\answerboxw{%%
\fbox{\rule{0.3in}{0pt}\rule[-0.5ex]{0pt}{4ex}}}
\begin{document}
\begin{center}
\begin{tabular}{ccccccc}
\answerboxb & \answerboxb & \answerboxb & \answerboxw & \answerboxw & \answerboxw & \answerboxw \\
1 & 2 & 3 & 4 & 5 & 6 & 7
\end{tabular}
\end{center}
\end{document}