[Tex/LaTex] Missing $ inserted. ^^I^^I &\square

errorsxtable

I am new to LaTeX and I am using it to write a questionnaire like this:

enter image description here

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:

enter image description here

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 the tabular 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 employ array instead of tabular, which is essentially a math-mode version of tabular.

\documentclass{article}
\usepackage[landscape,margin=1cm,]{geometry}
\usepackage{amssymb}
\begin{document}
\begin{enumerate}
    \item
    Statement one.

    \begin{tabular}{c c c c c c c}
        $\bigcirc$    & $\bigcirc$  & $\bigcirc$ & $\bigcirc$ 
                   & $\bigcirc$  & $\bigcirc$ & $\bigcirc$ \\
    Strongly agree & Moderately agree & Slightly agree &
Neither agree or disagree & Slightly disagree & Moderately disagree & Strongly disagree 
    \end{tabular}
\end{enumerate}
\end{document}

enter image description here