## LaTeX forum ⇒ Text Formatting ⇒ Change \choice style with examdesign class

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
eliaspoky
Posts: 1
Joined: Sat Jan 24, 2015 8:31 pm

### Change \choice style with examdesign class

Hi,

I'm working with examdesign multiple choice exams. I use this because I can make the questions go random.

I want to know how can I change the \choice style on the {multiplechoice} environment. I have this:

\documentclass[10pt]{examdesign}\usepackage[spanish]{babel}\usepackage[utf8]{inputenc}\usepackage[top=2cm,left=2cm,right=2cm,bottom=2cm]{geometry}\usepackage{amssymb, amsmath, amsbsy} \usepackage{enumerate}\usepackage{verbatim} \usepackage{pifont}\SectionFont{\large\sffamily}\Fullpages%\ContinuousNumbering%\ShortKey\DefineAnswerWrapper{}{}\NumberOfVersions{2}\IncludeFromFile{foobar.tex}%\NoKey%\NoRearrange\ShortKey \begin{document}\begin{multiplechoice}[title={PSU}, resetcounter=yes, rearrange=yes, keycolumns=5]   \begin{question}    $5 \{- (4 - 5) - 3[-2 + 3 - (-8 - 3)]\} =$     \choice[!]{ $-175$     }     \choice{$150$}     \choice{$-50$}     \choice{$-40$}   \end{question}\end{multiplechoice}\end{document}

That gives to me something like:

(a) -175
(b) 150
(c) -50
(d) -40

but what I want is something like:

A) -175
B) 140
C) -50
D) -40

Do you know what can I do?

Thanks.

Tags:

alainremillard
Posts: 45
Joined: Fri Mar 16, 2012 8:22 pm
Looking through the examdesign class files, there is no mechanism to change this behavior. So, you'll have to redefine the command. The following should do the trick. Place it just before the \begin{document}

\makeatletter\renewcommand{\exam@DefaultChoice}[2][]{%   \ifchoice \relax     \else \@mcstartlist \choicetrue   \fi   \ifanswer     \if#1!%       \ifbox \vspace{-\fboxsep}\item[\hfill\fbox{\Alph{choice})}\hfill] #2         \vspace{-\fboxsep}%       \else          \item[\hfill\MCfont{\Alph{choice})}\hfill] \MCfont{#2}%       \fi     \else \item[\hfill\Alph{choice})\hfill] #2     \fi     \stepcounter{choice}%   \else     \item[\hfill\Alph{choice})\hfill] #2     \stepcounter{choice}%   \fi}\makeatother

Have a nice day
Alain Rémillard

afrendly
Posts: 3
Joined: Thu Oct 27, 2016 4:17 pm
1. How to forward and reverse search with examdesign? Always back to "\end{document}" in reverse search.
2. How to left aligned number of question as image below.

3. I use Google Translate. Thanks.

Johannes_B
Site Moderator
Posts: 3551
Joined: Thu Nov 01, 2012 4:08 pm
Welcome, i don't know what you mean by forward and backward search with examdesign. Can you elaborate?

For the second part, we will need a minimal working example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

afrendly
Posts: 3
Joined: Thu Oct 27, 2016 4:17 pm
Johannes_B wrote:Welcome, i don't know what you mean by forward and backward search with examdesign. Can you elaborate?

For the second part, we will need a minimal working example.

1. How to inverse search when use examdesign clsass? I can't. Example:
https://www.sharelatex.com/project/581206c62fa176004c871af6

It come back to "\end{document}".
2. How to left align number questions. Example: 9 and 10 not left align in above link.
Thank.

Johannes_B
Site Moderator
Posts: 3551
Joined: Thu Nov 01, 2012 4:08 pm
I still don't know what the first part is about.

For the second however, you can use
\usepackage{enumitem}\setlist[enumerate]{align=left}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.