cgnieder / xsim

eXercise Sheets IMproved
65 stars 20 forks source link

\printsolutions does not work if the option "-output-directory" is used #93

Closed mschneiderwng closed 2 years ago

mschneiderwng commented 2 years ago

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}
cgnieder commented 2 years ago

The reason is the usage of the auxiliary file .xsim. Use

\usepackage[use-aux]{xsim}

to prevent the issue.

mschneiderwng commented 2 years ago

That solves the problem. Thank you for your fast response and this awesome package.