Below is a minimalized template I have been using without any trouble for quite some time (Edit: Simplified the code and updated the error message). It no longer runs on my system. I do not know if it's a problem with the xsim
package, with one of its dependencies or just some weird local issue that should not be happening. I have updated my texlive
installation. I'm on MacOS High Sierra
. I am compiling with pdflatex
Any ideas?
The error message I get:
! LaTeX3 Error: File '' not found.
MWE:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{QuestionBank.tex}
\begin{question}[ID={Q001}, points={10}, tags={easy}]
First Question: Select one of the following solutions:
\begin{enumerate}
\item A
\item B
\item C
\end{enumerate}
\end{question}
\begin{answer}
Solution to First Question
\end{answer}
\end{filecontents*}
\usepackage{xsim}
\usepackage[most]{tcolorbox}
\newcommand*\includeQuestion[1]{%
\XSIMexpandcode{\printexercise{question}{\GetExerciseIdForProperty{ID}{#1}}}%
}
\newcommand*\includeSolution[1]{%
\XSIMexpandcode{\printsolution{question}{\GetExerciseIdForProperty{ID}{#1}}}%
}
\DeclareExerciseType{question}{
exercise-env = question,
solution-env = answer,
exercise-name = question, % used with headings=true
solution-name = solution, % used with headings=true
exercise-template = default,
solution-template = default,
}
\DeclareExerciseCollection{myCollection}
\begin{document}
\collectexercises{myCollection}
\input{QuestionBank.tex}
\collectexercisesstop{myCollection}
\includeQuestion{Q001}
\includeSolution{Q001}
\end{document}
aux
is not allowed as a folder name. Withblub
or a different name I can get things to compile. Later on I get a! LaTeX3 Error: File '' not found.
which doesn't look right. Do things work if you setpath = {},
? I don't know about the security settings of TeX live on a Mac, but maybe TeX is not allowed to write in the directory. – moewe Feb 14 at 7:41aux
subfolder, TeX will not create it. About the empty file name I don't know. – egreg Feb 14 at 11:35aux
directory. With theaux
directory created, I get the! LaTeX3 Error: File '' not found.
error. And that is new. – PatrickT Feb 14 at 13:05aux
orblub
. – PatrickT Feb 14 at 13:09\includeSolution{Q001}
: If I comment that line out, the error message disappears. – PatrickT Feb 14 at 13:38