Open questions with a blank space causes "there is no line to end here" LaTeX error (Bug #356)
Description
When you use the \AMCOpen
question there can't be a blank line above it, or it will throw a "there is no line to end here" error.
However, this behaviour is not standard, and one should expect to be allowed to have blank lines in between the \AMCOpen
and the question.
\documentclass{article} \usepackage[]{automultiplechoice} \begin{document} \onecopy{1}{ \begin{question}{prez} Among the following persons, which one has ever been a President of the French Republic? \AMCOpen{lines=5}{\wrongchoice[W]{w}\scoring{0}\wrongchoice[P]{p}\scoring{2}\correctchoice[C]{c}\scoring{4}} \end{question} } \end{document}
Test the above, and see that if you remove the blank line (or commented it) between the question and the \AMCOpen
you get no error.
My intuition says that in the implementation of the environments there is probably a \\
or something similar that expects text, but as there is nothing there we get an error.
History
Updated by Alexis Bienvenüe about 10 years ago
Can you check with the development version? Your sample file compiles without error with my setup.
- Status changed from New to Feedback
Updated by Adin Ramirez about 10 years ago
Yes, I can confirm that the development version solves the problem. However, in the stable version it is not working.
Probably it will be fixed when you push the current version to the stable branch.
Updated by Alexis Bienvenüe over 4 years ago
- Status changed from Feedback to Closed
- % Done changed from 0 to 100