I am new to LaTeX and I am using it to write a questionnaire like this:
My current code is the following:
\begin{enumerate}
\item
Statement one.
\begin{tabular}{c c c c c c c}
\square & \square & \square & \square
& \square & \square & \square \\
Strongly agree & Moderately agree & Slightly agree &
Neither agree or disagree & Slightly disagree & Moderately disagree & Strongly disagree
\end{tabular}
\end{enumerate}
I got this error:
Please tell me what is wrong with my code?
Best Answer
\square
is a math mode construct and requires math delimiters, as in$\square$
. Because each field of thetabular
is logically separate from the other fields, the math mode has to be added for each cell containing\square
. I also added a blank line to form the answer choices on a line of its own.For circles, just replace
\square
with\bigcirc
.If all cells of a
tabular
are in math mode, one might preferably employarray
instead oftabular
, which is essentially a math-mode version oftabular
.