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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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?
\answerline
A few more questions to annoy you :
\bigskip
\question[3] Which is heavier: A pound of feathers, or a pound of lead?
\answerline
A few choices questions :
\bigskip
\question[3] Blabla :
\begin{choices}
\choice John
\choice Paul
\choice George
\choice Ringo
\choice Socrates
\end{choices}
\end{questions}
\end{document}
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: 10360
- 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.