choiceshoriz with [o] (Bug #243)


Added by David Dixon over 11 years ago. Updated over 10 years ago.


Status:WontFix Start date:12/05/2013
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-

Description

The answer sheets I use require that A=True and B=False. If I create a true/false question using choiceshoriz, it shuffles the answers. If I add the [o] option, it no longer displays the answers horizontally.

\begin{question}{Fair Gamble}
A risk-neutral person will always take a fair gamble.
\begin{choiceshoriz}[o]
\correctchoice{True}
\wrongchoice{False}
\end{choiceshoriz} 
\end{question}


horizo.png (6.3 kB) Alexis Bienvenüe, 12/05/2013 09:21 am

AMCtest.tex - Full LaTeX file to reproduce bug (2.6 kB) David Dixon, 12/05/2013 11:25 pm

AMCLyx.png - Screenshot of "normal-looking" Lyx (47.5 kB) David Dixon, 12/05/2013 11:40 pm

ACMLyxOneLine.png - Screenshot of Lyx workaround (19.1 kB) David Dixon, 12/05/2013 11:40 pm

ACMLyxAlternative.png - Lyx alternative (26.2 kB) David Dixon, 12/05/2013 11:43 pm


History

Updated by Alexis Bienvenüe over 11 years ago

Can you provide a minimal source file showing the problem? I tried inserting your code in a simple source file and there was no problem with me.

  • File horizo.png added
  • Description changed from The answer sheets I use require that A=True and B=False. If I create a tru... to The answer sheets I use require that A=True and B=False. If I create a tru... More

Updated by David Dixon over 11 years ago

Updated by Alexis Bienvenüe over 11 years ago

Thanks.

\begin{question}{Risk Neutral}

A risk-neutral person will always take a fair gamble.\begin{choiceshoriz}[o]

\correctchoice{True}

\wrongchoice{False}

\end{choiceshoriz} 

\end{question} 

You have to remove the blank lines between the answers.

Updated by David Dixon over 11 years ago

I don't put the blank lines, Lyx does (see ACMLyx.png screenshot attached). But why should that matter?
If I run them all together into one line, Lyx outputs it to TEX as one line (see ACMLyxOneLine.png), and latex makes dvi that has the correct result. So that's a Lyx workaround, I guess.
Thanks!

Updated by David Dixon over 11 years ago

Another Lyx workaround is to move the closing bracket on the answers to the next line (see attached screenshot).

Updated by Alexis Bienvenüe over 10 years ago

Perhaps you can also define versions with ignorespaces, like

\def\wchoice#1{\wrongchoice{#1}\ignorespaces}
\def\cchoice#1{\correctchoice{#1}\ignorespaces}

I'm afraid I won't change AMC definitions, since this should change the output in some cases where users use this to make some linebreaks between choices.

  • Status changed from New to WontFix

Also available in: Atom PDF