\printsolutions does not work if the option "-output-directory" is used
mschneiderwng opened this issue · comments
mschneiderwng commented
The following command produces exercises and solutions.
lualatex -synctex=1 -interaction=nonstopmode test.tex
The following command creates a pdf with exercises only.
lualatex -synctex=1 -interaction=nonstopmode -output-directory=result test.tex
The test.tex used contains
\documentclass[]{article}
\usepackage{xsim}
\begin{document}
\begin{exercise}
\(x - 1 = 0\)
\end{exercise}
\begin{solution}
\(x = 1\)
\end{solution}
\printsolutions
\end{document}
Clemens Niederberger commented
The reason is the usage of the auxiliary file .xsim
. Use
\usepackage[use-aux]{xsim}
to prevent the issue.
mschneiderwng commented
That solves the problem. Thank you for your fast response and this awesome package.