Document Classestrying out examdesign...

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
mathfeel
Posts: 11
Joined: Fri Jun 13, 2008 1:17 pm

trying out examdesign...

Post by mathfeel »

I am looking for a class that help me generates randomized multiple choice quizzes. The only one I found to claim such capability is examdesign. I am following the manual to create the following minimal tex (mostly copy-and-pasted from manual.pdf):

Code: Select all

\documentclass{examdesign}
\begin{document}
\begin{multiplechoice}
  \begin{question}
    How much wood could a woodchuck chuck if a woodchuck could chuck wood?
    \choice{A lot.}
    \choice{More than most.}
    \choice{Exactly $\pi$ cords.}
    \choice[!]{It depends on the nature of the woodchuck.}
  \end{question}
\end{multiplechoice}
\end{document}
It compiles but with error:

Code: Select all

$ latex quiz1
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
 %&-line parsing enabled.
entering extended mode
(./quiz1.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, pinyin, ukenglish, loaded.
(/usr/share/texmf-dist/tex/latex/examdesign/examdesign.cls
Document Class: examdesign
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/tools/enumerate.sty)
(/usr/share/texmf-dist/tex/latex/tools/multicol.sty)
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
Randomizer initialized to 43378891.)
No file quiz1.aux.

! LaTeX Error: There's no line here to end.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.12 \end{document}

?

Overfull \hbox (90.84221pt too wide) detected at line 12
$[]$  $[]$
Scrambling section 1, question:
1. [1] [1] (./quiz1.aux) )
Output written on quiz1.dvi (2 pages, 1564 bytes).
Transcript written on quiz1.log.
Is anyone familiar with this class or the error?

Also this class do not seems to scramble the choices of a multiple choice question. Do anyone have a good class recommendation for this purpose?

[EDIT]: After an unnecessarily long struggle, apparently certain macro like \class must be defined. So at least latex does not spit any more error.

Recommended reading 2024:

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

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

Post Reply