probsoln package: Too many }'s with ExcludePreviousFile












0















I have used probsoln for a number of years and have found it incredibly useful. I am sincerely grateful to the author for providing this package. I have used it to specify the inclusion of specific problems and to select random problems, given a specified seed. I would however, like to use all of its capabilities and allow it to automatically exclude problems that have been used within the past number of years. Unfortunately, I am not able to get this functionality to work. When I compile hwk.tex as given below, I get a LaTeX error indicating "Two documentclass or documentstyle commands." and no hwk.prb file is generated. I am using a full install of TeXLive 2018.



The minimal primary tex file (hwk.tex) I have tried to use is the following:



documentclass{article}
usepackage{probsoln}
ExcludePreviousFile[2]{hwk.prb}

begin{document}
loadrandomproblems[myset]{2}{pdbhwk}
begin{enumerate}
foreachproblem[myset]{item thisproblem}
end{enumerate}
end{document}


The content of the pdbhwk.tex file is the following:



newproblem{myhwk01}{Problem 01}{$x=1$}
newproblem{myhwk02}{Problem 02}{$x=2$}
newproblem{myhwk03}{Problem 03}{$x=3$}
newproblem{myhwk04}{Problem 04}{$x=4$}
newproblem{myhwk05}{Problem 05}{$x=5$}
newproblem{myhwk06}{Problem 06}{$x=6$}


After a pdflatex compile of hwk.tex, the hwk.prb file generated contains the following:



usedproblem{myminhwk08}{myset}{2018}
usedproblem{myminhwk04}{myset}{2018}
}{2018}


A subsequent pdflatex compile gives the error indicating Too many }'s.



On a related note, I don't fully understand the two files referred to in the documentation as "The previously used labels file" and the "The current used labels file". Where are these located, if not in the current directory? Any help will be greatly appreciated!










share|improve this question





























    0















    I have used probsoln for a number of years and have found it incredibly useful. I am sincerely grateful to the author for providing this package. I have used it to specify the inclusion of specific problems and to select random problems, given a specified seed. I would however, like to use all of its capabilities and allow it to automatically exclude problems that have been used within the past number of years. Unfortunately, I am not able to get this functionality to work. When I compile hwk.tex as given below, I get a LaTeX error indicating "Two documentclass or documentstyle commands." and no hwk.prb file is generated. I am using a full install of TeXLive 2018.



    The minimal primary tex file (hwk.tex) I have tried to use is the following:



    documentclass{article}
    usepackage{probsoln}
    ExcludePreviousFile[2]{hwk.prb}

    begin{document}
    loadrandomproblems[myset]{2}{pdbhwk}
    begin{enumerate}
    foreachproblem[myset]{item thisproblem}
    end{enumerate}
    end{document}


    The content of the pdbhwk.tex file is the following:



    newproblem{myhwk01}{Problem 01}{$x=1$}
    newproblem{myhwk02}{Problem 02}{$x=2$}
    newproblem{myhwk03}{Problem 03}{$x=3$}
    newproblem{myhwk04}{Problem 04}{$x=4$}
    newproblem{myhwk05}{Problem 05}{$x=5$}
    newproblem{myhwk06}{Problem 06}{$x=6$}


    After a pdflatex compile of hwk.tex, the hwk.prb file generated contains the following:



    usedproblem{myminhwk08}{myset}{2018}
    usedproblem{myminhwk04}{myset}{2018}
    }{2018}


    A subsequent pdflatex compile gives the error indicating Too many }'s.



    On a related note, I don't fully understand the two files referred to in the documentation as "The previously used labels file" and the "The current used labels file". Where are these located, if not in the current directory? Any help will be greatly appreciated!










    share|improve this question



























      0












      0








      0








      I have used probsoln for a number of years and have found it incredibly useful. I am sincerely grateful to the author for providing this package. I have used it to specify the inclusion of specific problems and to select random problems, given a specified seed. I would however, like to use all of its capabilities and allow it to automatically exclude problems that have been used within the past number of years. Unfortunately, I am not able to get this functionality to work. When I compile hwk.tex as given below, I get a LaTeX error indicating "Two documentclass or documentstyle commands." and no hwk.prb file is generated. I am using a full install of TeXLive 2018.



      The minimal primary tex file (hwk.tex) I have tried to use is the following:



      documentclass{article}
      usepackage{probsoln}
      ExcludePreviousFile[2]{hwk.prb}

      begin{document}
      loadrandomproblems[myset]{2}{pdbhwk}
      begin{enumerate}
      foreachproblem[myset]{item thisproblem}
      end{enumerate}
      end{document}


      The content of the pdbhwk.tex file is the following:



      newproblem{myhwk01}{Problem 01}{$x=1$}
      newproblem{myhwk02}{Problem 02}{$x=2$}
      newproblem{myhwk03}{Problem 03}{$x=3$}
      newproblem{myhwk04}{Problem 04}{$x=4$}
      newproblem{myhwk05}{Problem 05}{$x=5$}
      newproblem{myhwk06}{Problem 06}{$x=6$}


      After a pdflatex compile of hwk.tex, the hwk.prb file generated contains the following:



      usedproblem{myminhwk08}{myset}{2018}
      usedproblem{myminhwk04}{myset}{2018}
      }{2018}


      A subsequent pdflatex compile gives the error indicating Too many }'s.



      On a related note, I don't fully understand the two files referred to in the documentation as "The previously used labels file" and the "The current used labels file". Where are these located, if not in the current directory? Any help will be greatly appreciated!










      share|improve this question
















      I have used probsoln for a number of years and have found it incredibly useful. I am sincerely grateful to the author for providing this package. I have used it to specify the inclusion of specific problems and to select random problems, given a specified seed. I would however, like to use all of its capabilities and allow it to automatically exclude problems that have been used within the past number of years. Unfortunately, I am not able to get this functionality to work. When I compile hwk.tex as given below, I get a LaTeX error indicating "Two documentclass or documentstyle commands." and no hwk.prb file is generated. I am using a full install of TeXLive 2018.



      The minimal primary tex file (hwk.tex) I have tried to use is the following:



      documentclass{article}
      usepackage{probsoln}
      ExcludePreviousFile[2]{hwk.prb}

      begin{document}
      loadrandomproblems[myset]{2}{pdbhwk}
      begin{enumerate}
      foreachproblem[myset]{item thisproblem}
      end{enumerate}
      end{document}


      The content of the pdbhwk.tex file is the following:



      newproblem{myhwk01}{Problem 01}{$x=1$}
      newproblem{myhwk02}{Problem 02}{$x=2$}
      newproblem{myhwk03}{Problem 03}{$x=3$}
      newproblem{myhwk04}{Problem 04}{$x=4$}
      newproblem{myhwk05}{Problem 05}{$x=5$}
      newproblem{myhwk06}{Problem 06}{$x=6$}


      After a pdflatex compile of hwk.tex, the hwk.prb file generated contains the following:



      usedproblem{myminhwk08}{myset}{2018}
      usedproblem{myminhwk04}{myset}{2018}
      }{2018}


      A subsequent pdflatex compile gives the error indicating Too many }'s.



      On a related note, I don't fully understand the two files referred to in the documentation as "The previously used labels file" and the "The current used labels file". Where are these located, if not in the current directory? Any help will be greatly appreciated!







      probsoln






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 22 mins ago







      Kelly O. Homan

















      asked 1 hour ago









      Kelly O. HomanKelly O. Homan

      162




      162






















          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%2f472489%2fprobsoln-package-too-many-s-with-excludepreviousfile%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%2f472489%2fprobsoln-package-too-many-s-with-excludepreviousfile%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