Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xsim.description-list.tex does not compile #125

Open
GustavoFelisbertoValente opened this issue Apr 16, 2024 · 1 comment
Open

xsim.description-list.tex does not compile #125

GustavoFelisbertoValente opened this issue Apr 16, 2024 · 1 comment

Comments

@GustavoFelisbertoValente

When I try to run the example file, I get this error:

LaTeX Error: Something's wrong--perhaps a missing \item.

l.40 \end{solutions}

@muzimuzhi
Copy link

Well it only happens for the first run.

Should be related to how xsim retrieves exercise and solution data from aux file(s). In the first run \printsolutions prints nothing, leaving an empty description environment. The error was raised by that empty (derived) list environment.

You can define a command to typeset a placeholder.

% in preamble
\makeatletter
\newcommand{\dummyitem}{\if@newlist\item[Rerun needed]\fi}
\makeatother

% then in "solutions" environment
\begin{solutions}
  \printsolutions
  \dummyitem
\end{solutions}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants