Text Formattingexam | Custom Formatting for multiple Choice Questions

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
petey
Posts: 10
Joined: Sat Feb 27, 2010 9:23 pm

exam | Custom Formatting for multiple Choice Questions

Post by petey »

Hi,

I'm using the exam class to create a multiple choice test.

For every question there are four choices and I would like the choices to be listed in rows of two. Right now I can only get latex to print the choices in one row (if the choices fills up more than one line it does not look nice) or in four rows (which often is waste of paper).

So what I would like is this:
What is 2+2?

A. 4 B. 5
C. 6 D. 3
Thanks in advance.


Kind regards
Petey

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

exam | Custom Formatting for multiple Choice Questions

Post by coachbennett1981 »

Do you want space between the choices? You could you multicolor

Code: Select all


\begin{questions}
\question $2+2$?
\begin{multicols}{2}
     \begin{choices}
          \choice 1
           \choice 2
           \choice 3
           \choice 4
   \end{choices}
\end{multicols}

Post Reply