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

collections and printing solutions #56

Closed
cgnieder opened this issue Feb 22, 2020 · 0 comments
Closed

collections and printing solutions #56

cgnieder opened this issue Feb 22, 2020 · 0 comments
Assignees
Labels
bug error in the code

Comments

@cgnieder
Copy link
Owner

\documentclass{article}

\usepackage{xsim}

\DeclareExerciseCollection{test}
\xsimsetup{print-solutions/headings=false}

\begin{filecontents*}{testproblems.tex}
\begin{exercise}[ID=one]
  Exercise one.
\end{exercise}
\begin{solution}
  Answer one.
\end{solution}

\begin{exercise}[ID=two]
  Exercise two.
\end{exercise}
\begin{solution}
  Answer two.
\end{solution}

\begin{exercise}[ID=three]
  Exercise three.
\end{exercise}
\begin{solution}
  Answer three.
\end{solution}
\end{filecontents*}

\begin{document}

\collectexercises{test}
\input{testproblems.tex}
\collectexercisesstop{test}

\printrandomexercises[collection=test,exclude=two]{3}

\printsolutions

\end{document}

image

@cgnieder cgnieder added the bug error in the code label Feb 22, 2020
@cgnieder cgnieder self-assigned this Feb 22, 2020
cgnieder added a commit that referenced this issue Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug error in the code
Projects
None yet
Development

No branches or pull requests

1 participant