choiceshoriz with [o] (Bug #243)
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}
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
- File AMCtest.tex added
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!
- File AMCLyx.png added
- File ACMLyxOneLine.png added
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).
- File ACMLyxAlternative.png added
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