I am trying to ask a multiple choice question in LaTeX. I'm a little confused as to
\begin{question}{MultipleChoice}
- this is what LaTeX can handle by default or I need additional packages, descriptions, ect ... (I'm a super newbie to LaTex).
At the same time, if I run the following code, I do not have a multiple choice question, but rather an error that says "lonely \ item", there may be no list environment.
Thank you in advance for your time and patience!
%%%% ENVIRONMENT FOR LIST FOR QUESTIONS LIST %%%%
\newenvironment{questions}{ % %%%% Begin preliminary environment code
\begin{list}{ % %%%% Begin list item label code
\bfseries\upshape\arabic{qcounter}:
}{ % %%%% Begin list item body code
\usecounter{qcounter}
\setlength{\labelwidth}{1in}
\setlength{\leftmargin}{0.25in}
\setlength{\labelsep}{0.5ex}
\setlength{\itemsep}{2em}
} %%%%% End list item body code
}{ %%%%% Begin wrapup environment code
\end{list}
} %%%%% End wrapup environment code
%%%% ENVIRONMENT FOR A SINGLE QUESTION %%%%
\newenvironment{question}{\item{}}{}
\begin{question}{MultipleChoice}
\qutext{$3\log x-2\log y=$}
\choice*{$\log\left(\displaystyle\frac{x^3}{y^2}\right)$}
\choice{$\log(x^3y^2)$}
\choice{$\log(3x-2y)$}
\choice{$\log(x^3-y^2)$}
\end{question}
source
share