xsim: can't write on file (anymore)












0















Below is a minimalized template I have been using without any trouble for quite some time. 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:



I can't write on file `aux/xsim-stackoverflow-4-question-1-exercise-body.tex'. ...stion}[ID={Q001}, points={10}, tags={easy}]


I last successfully ran the code on 16 January 2019. I need a solution or workaround within a week (gasp!).



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}
xsimsetup{
clear-aux,
path = {aux}, % default path empty
}

newcommand*includeQuestion[1]{%
XSIMexpandcode{printexercise{question}{GetExerciseIdForProperty{ID}{#1}}}%
}

newcommand*includeSolution[1]{%
XSIMexpandcode{printsolution{question}{GetExerciseIdForProperty{ID}{#1}}}%
}


DeclareExerciseEnvironmentTemplate{tcb}
{%
tcolorbox[breakable,
drop shadow,
beforeafter skip = 1baselineskip,
fonttitle = bfseries,
fontupper = normalsize,
valign = top,
colframe = IfInsideSolutionF{green!20!white}IfInsideSolutionT{blue!20!white},
colback = IfInsideSolutionF{green!3!white}IfInsideSolutionT{blue!3!white},
coltext = black,
coltitle = black,
boxrule = 1pt,
width = linewidth,
left = 2mm,
title =
IfInsideSolutionT{XSIMmixedcase{XSIMtranslate{solution}}~to~}%
XSIMmixedcase{XSIMtranslate{question}}~GetExerciseProperty{counter}%
IfInsideSolutionF{IfExercisePropertySetT{tags}{textbf{~~[ListExerciseTags{tags}{, }]}}}%
IfInsideSolutionF{%
GetExercisePropertyT{points}{%
hfill[PropertyValue
IfExerciseGoalSingularTF{points}
{XSIMtranslate{point}}~%
{XSIMtranslate{points}}]%
}%
}%
]%
IfInsideSolutionT{}
}{endtcolorbox}

DeclareExerciseType{question}{
exercise-env = question,
solution-env = answer,
exercise-name = question, % used with headings=true
solution-name = solution, % used with headings=true
exercise-template = tcb,
solution-template = tcb,
counter = question,
}

DeclareExerciseCollection{myCollection}


begin{document}

collectexercises{myCollection}
input{QuestionBank.tex}
collectexercisesstop{myCollection}

includeQuestion{Q001}
includeSolution{Q001}

end{document}








share



























    0















    Below is a minimalized template I have been using without any trouble for quite some time. 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:



    I can't write on file `aux/xsim-stackoverflow-4-question-1-exercise-body.tex'. ...stion}[ID={Q001}, points={10}, tags={easy}]


    I last successfully ran the code on 16 January 2019. I need a solution or workaround within a week (gasp!).



    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}
    xsimsetup{
    clear-aux,
    path = {aux}, % default path empty
    }

    newcommand*includeQuestion[1]{%
    XSIMexpandcode{printexercise{question}{GetExerciseIdForProperty{ID}{#1}}}%
    }

    newcommand*includeSolution[1]{%
    XSIMexpandcode{printsolution{question}{GetExerciseIdForProperty{ID}{#1}}}%
    }


    DeclareExerciseEnvironmentTemplate{tcb}
    {%
    tcolorbox[breakable,
    drop shadow,
    beforeafter skip = 1baselineskip,
    fonttitle = bfseries,
    fontupper = normalsize,
    valign = top,
    colframe = IfInsideSolutionF{green!20!white}IfInsideSolutionT{blue!20!white},
    colback = IfInsideSolutionF{green!3!white}IfInsideSolutionT{blue!3!white},
    coltext = black,
    coltitle = black,
    boxrule = 1pt,
    width = linewidth,
    left = 2mm,
    title =
    IfInsideSolutionT{XSIMmixedcase{XSIMtranslate{solution}}~to~}%
    XSIMmixedcase{XSIMtranslate{question}}~GetExerciseProperty{counter}%
    IfInsideSolutionF{IfExercisePropertySetT{tags}{textbf{~~[ListExerciseTags{tags}{, }]}}}%
    IfInsideSolutionF{%
    GetExercisePropertyT{points}{%
    hfill[PropertyValue
    IfExerciseGoalSingularTF{points}
    {XSIMtranslate{point}}~%
    {XSIMtranslate{points}}]%
    }%
    }%
    ]%
    IfInsideSolutionT{}
    }{endtcolorbox}

    DeclareExerciseType{question}{
    exercise-env = question,
    solution-env = answer,
    exercise-name = question, % used with headings=true
    solution-name = solution, % used with headings=true
    exercise-template = tcb,
    solution-template = tcb,
    counter = question,
    }

    DeclareExerciseCollection{myCollection}


    begin{document}

    collectexercises{myCollection}
    input{QuestionBank.tex}
    collectexercisesstop{myCollection}

    includeQuestion{Q001}
    includeSolution{Q001}

    end{document}








    share

























      0












      0








      0








      Below is a minimalized template I have been using without any trouble for quite some time. 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:



      I can't write on file `aux/xsim-stackoverflow-4-question-1-exercise-body.tex'. ...stion}[ID={Q001}, points={10}, tags={easy}]


      I last successfully ran the code on 16 January 2019. I need a solution or workaround within a week (gasp!).



      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}
      xsimsetup{
      clear-aux,
      path = {aux}, % default path empty
      }

      newcommand*includeQuestion[1]{%
      XSIMexpandcode{printexercise{question}{GetExerciseIdForProperty{ID}{#1}}}%
      }

      newcommand*includeSolution[1]{%
      XSIMexpandcode{printsolution{question}{GetExerciseIdForProperty{ID}{#1}}}%
      }


      DeclareExerciseEnvironmentTemplate{tcb}
      {%
      tcolorbox[breakable,
      drop shadow,
      beforeafter skip = 1baselineskip,
      fonttitle = bfseries,
      fontupper = normalsize,
      valign = top,
      colframe = IfInsideSolutionF{green!20!white}IfInsideSolutionT{blue!20!white},
      colback = IfInsideSolutionF{green!3!white}IfInsideSolutionT{blue!3!white},
      coltext = black,
      coltitle = black,
      boxrule = 1pt,
      width = linewidth,
      left = 2mm,
      title =
      IfInsideSolutionT{XSIMmixedcase{XSIMtranslate{solution}}~to~}%
      XSIMmixedcase{XSIMtranslate{question}}~GetExerciseProperty{counter}%
      IfInsideSolutionF{IfExercisePropertySetT{tags}{textbf{~~[ListExerciseTags{tags}{, }]}}}%
      IfInsideSolutionF{%
      GetExercisePropertyT{points}{%
      hfill[PropertyValue
      IfExerciseGoalSingularTF{points}
      {XSIMtranslate{point}}~%
      {XSIMtranslate{points}}]%
      }%
      }%
      ]%
      IfInsideSolutionT{}
      }{endtcolorbox}

      DeclareExerciseType{question}{
      exercise-env = question,
      solution-env = answer,
      exercise-name = question, % used with headings=true
      solution-name = solution, % used with headings=true
      exercise-template = tcb,
      solution-template = tcb,
      counter = question,
      }

      DeclareExerciseCollection{myCollection}


      begin{document}

      collectexercises{myCollection}
      input{QuestionBank.tex}
      collectexercisesstop{myCollection}

      includeQuestion{Q001}
      includeSolution{Q001}

      end{document}








      share














      Below is a minimalized template I have been using without any trouble for quite some time. 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:



      I can't write on file `aux/xsim-stackoverflow-4-question-1-exercise-body.tex'. ...stion}[ID={Q001}, points={10}, tags={easy}]


      I last successfully ran the code on 16 January 2019. I need a solution or workaround within a week (gasp!).



      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}
      xsimsetup{
      clear-aux,
      path = {aux}, % default path empty
      }

      newcommand*includeQuestion[1]{%
      XSIMexpandcode{printexercise{question}{GetExerciseIdForProperty{ID}{#1}}}%
      }

      newcommand*includeSolution[1]{%
      XSIMexpandcode{printsolution{question}{GetExerciseIdForProperty{ID}{#1}}}%
      }


      DeclareExerciseEnvironmentTemplate{tcb}
      {%
      tcolorbox[breakable,
      drop shadow,
      beforeafter skip = 1baselineskip,
      fonttitle = bfseries,
      fontupper = normalsize,
      valign = top,
      colframe = IfInsideSolutionF{green!20!white}IfInsideSolutionT{blue!20!white},
      colback = IfInsideSolutionF{green!3!white}IfInsideSolutionT{blue!3!white},
      coltext = black,
      coltitle = black,
      boxrule = 1pt,
      width = linewidth,
      left = 2mm,
      title =
      IfInsideSolutionT{XSIMmixedcase{XSIMtranslate{solution}}~to~}%
      XSIMmixedcase{XSIMtranslate{question}}~GetExerciseProperty{counter}%
      IfInsideSolutionF{IfExercisePropertySetT{tags}{textbf{~~[ListExerciseTags{tags}{, }]}}}%
      IfInsideSolutionF{%
      GetExercisePropertyT{points}{%
      hfill[PropertyValue
      IfExerciseGoalSingularTF{points}
      {XSIMtranslate{point}}~%
      {XSIMtranslate{points}}]%
      }%
      }%
      ]%
      IfInsideSolutionT{}
      }{endtcolorbox}

      DeclareExerciseType{question}{
      exercise-env = question,
      solution-env = answer,
      exercise-name = question, % used with headings=true
      solution-name = solution, % used with headings=true
      exercise-template = tcb,
      solution-template = tcb,
      counter = question,
      }

      DeclareExerciseCollection{myCollection}


      begin{document}

      collectexercises{myCollection}
      input{QuestionBank.tex}
      collectexercisesstop{myCollection}

      includeQuestion{Q001}
      includeSolution{Q001}

      end{document}






      xsim





      share












      share










      share



      share










      asked 5 mins ago









      PatrickTPatrickT

      1,07921123




      1,07921123






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474813%2fxsim-cant-write-on-file-anymore%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474813%2fxsim-cant-write-on-file-anymore%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          サソリ

          広島県道265号伴広島線

          Setup Asymptote in Texstudio