Document Classes ⇒ Basic problem with the exam class
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Basic problem with the exam class
The screenshot you have shown just shows enumerated lists. Easy to do, no need for a special class or package.
See https://en.wikibooks.org/w/index.php?ti ... cial_lists
You can also have a look at Teacher's Corner, which covers exsheets, but not yet xsim.
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
Basic problem with the exam class
Here's a working code which is very close to what I need :Stefan Kottwitz wrote:Do you have a current good-looking example to test? I lost the one I worked it when my computer crashed right now.![]()
Code: Select all
\documentclass[11pt]{exam}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage[french]{babel}\usepackage{microtype}\usepackage[margin=1in]{geometry}\setlength\answerskip{4ex}\setlength\answerlinelength{0.5in}\begin{document}\pointsinmargin\pointformat{}A few questions to disturb you :\bigskip\begin{questions}\question[2] Who's buried in Grant's tomb?\answerline\question[2] Blabla?\answerlineA few more questions to annoy you :\bigskip\question[3] Which is heavier: A pound of feathers, or a pound of lead?\answerlineA few choices questions :\bigskip\question[3] Blabla :
1. Slide the answer line to the left, with a slight offset (indent).
2. Remove the answer line number (it's useless if it's at the left)
3. Change the choices capital letters to small letters, or maybe numbers?
Basic problem with the exam class
Code: Select all
\documentclass[11pt]{exam}\usepackage[T1]{fontenc}\usepackage[margin=1in]{geometry}\begin{document}\begin{questions}\question[3] Who are you ?\begin{choices}\choice John\choice Paul\choice George\choice Ringo\choice Socrates\choice Me\choice You\choice Him\end{choices}\end{questions}\end{document}
Basic problem with the exam class
Code: Select all
\newcommand{\TFLine}{\vspace{0.75cm}\hspace{1cm}\rule{1.5cm}{0.5pt}\vspace{0.25cm}}
My exam is almost done !

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Basic problem with the exam class
Code: Select all
\renewcommand\thechoice{\alph{choice})}
Basic problem with the exam class
Also, what other options could we have ? Numbers instead of letters ?
Or circles to mark with an X ? (I think that the last one is described in the manual. I'll check this).
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Basic problem with the exam class
Code: Select all
\renewcommand\thechoice{\alph{choice})}\renewcommand\choicelabel{\thechoice}
Code: Select all
\renewcommand\thechoice{\alph{choice}}\renewcommand\choicelabel{\thechoice)}
Stefan
Basic problem with the exam class

Now, while the result seems pretty with "a)", I'm not sure anymore that it's better looking than "A." ! At least, I now have a choice in the code.
A long time ago, I was creating this kind of exams with a WYSIWYG word processor (pesky Word and the likes). The printed output was good, but editing was always a pain in the arse. Now that I have a full LaTeX version, I could throw away Word to the trash bin. Adios, Micro$ !

-
- Posts: 1
- Joined: Mon Mar 11, 2019 12:18 am
Basic problem with the exam class
In your case type
\uplevel{A few questions to annoy you:}
That's all you need.