Document Classesexam | Multiple Choice Boxes in one Paragraph

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
Jaraqui
Posts: 26
Joined: Wed Feb 08, 2012 3:54 am

exam | Multiple Choice Boxes in one Paragraph

Post by Jaraqui »

Hi,

I am using the following piece of code in document with the exam class:

Code: Select all

\documentclass[addpoints,12pt]{exam}
...
\begin{document}
...
\question[20]
Which team won the gold medal in soccer?

\begin{oneparchoices}
\choice Brazil \choice Mexico \choice Spain \choice Great Britain \choice USA
\end{oneparchoices}
...
\end{questions}
\end{document}
The generated DVI does not present the choices in a single, one on the side of the other. Any help?


Regards
Jaraqui

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

Jaraqui
Posts: 26
Joined: Wed Feb 08, 2012 3:54 am

Re: exam | Multiple Choice Boxes in one Paragraph

Post by Jaraqui »

Any help?

Thanks in advance!
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

exam | Multiple Choice Boxes in one Paragraph

Post by cgnieder »

Hi Jaraqui,

I'm afraid I don't understand your question. For me this gives the output as expected:

Code: Select all

\documentclass[addpoints,12pt]{exam}

\begin{document}

\begin{questions}
\question[20]
Which team won the gold medal in soccer?
\begin{oneparchoices}
\choice Brazil \choice Mexico \choice Spain \choice Great Britain \choice USA
\end{oneparchoices}

\question[20]
Which team won the gold medal in soccer?
\begin{choices}
\choice Brazil \choice Mexico \choice Spain \choice Great Britain \choice USA
\end{choices}
\end{questions}

\end{document}
exam_choices.png
exam_choices.png (18.18 KiB) Viewed 5564 times
site moderator & package author
Jaraqui
Posts: 26
Joined: Wed Feb 08, 2012 3:54 am

Re: exam | Multiple Choice Boxes in one Paragraph

Post by Jaraqui »

It worked for me too... Don´t know how explain. Really.

But thanks anyway for your patience.
Jaraqui
Post Reply