Incomprehensible error with babel and isodate

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
10
down vote

favorite












The error in question is:



! Undefined control sequence.
ifthenelse #1#2#3->let bbl@temp@pref
pageref let pageref org@pageref
...
l.19 datetoday


Code:



documentclassmemoir
usepackage[english]babel
usepackage[english]isodate
begindocument
isodate
datetoday
enddocument


Intention:



I would like for thedate to not print e.g. September 10. 2018 but rather 2018-09-10.










share|improve this question

























    up vote
    10
    down vote

    favorite












    The error in question is:



    ! Undefined control sequence.
    ifthenelse #1#2#3->let bbl@temp@pref
    pageref let pageref org@pageref
    ...
    l.19 datetoday


    Code:



    documentclassmemoir
    usepackage[english]babel
    usepackage[english]isodate
    begindocument
    isodate
    datetoday
    enddocument


    Intention:



    I would like for thedate to not print e.g. September 10. 2018 but rather 2018-09-10.










    share|improve this question























      up vote
      10
      down vote

      favorite









      up vote
      10
      down vote

      favorite











      The error in question is:



      ! Undefined control sequence.
      ifthenelse #1#2#3->let bbl@temp@pref
      pageref let pageref org@pageref
      ...
      l.19 datetoday


      Code:



      documentclassmemoir
      usepackage[english]babel
      usepackage[english]isodate
      begindocument
      isodate
      datetoday
      enddocument


      Intention:



      I would like for thedate to not print e.g. September 10. 2018 but rather 2018-09-10.










      share|improve this question













      The error in question is:



      ! Undefined control sequence.
      ifthenelse #1#2#3->let bbl@temp@pref
      pageref let pageref org@pageref
      ...
      l.19 datetoday


      Code:



      documentclassmemoir
      usepackage[english]babel
      usepackage[english]isodate
      begindocument
      isodate
      datetoday
      enddocument


      Intention:



      I would like for thedate to not print e.g. September 10. 2018 but rather 2018-09-10.







      memoir babel date isodate






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 10 at 12:53









      Karl Damgaard Asmussen

      1907




      1907




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          9
          down vote



          accepted










          I tested your example with all versions of TeX Live from 2012 to 2018. Up to 2014 the error is different, but still the code doesn't work.



          This is because memoir has a different definition of date than the standard classes. It performs protected@xdef on the argument to date in order to define thedate so that footnotes or thanks commands disappear from it and this is the problem: isodate redefines today in such a way that it doesn't survive protected@xdef.



          You solve the issue with



          dateprotecttoday





          share|improve this answer






















            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f450244%2fincomprehensible-error-with-babel-and-isodate%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            9
            down vote



            accepted










            I tested your example with all versions of TeX Live from 2012 to 2018. Up to 2014 the error is different, but still the code doesn't work.



            This is because memoir has a different definition of date than the standard classes. It performs protected@xdef on the argument to date in order to define thedate so that footnotes or thanks commands disappear from it and this is the problem: isodate redefines today in such a way that it doesn't survive protected@xdef.



            You solve the issue with



            dateprotecttoday





            share|improve this answer


























              up vote
              9
              down vote



              accepted










              I tested your example with all versions of TeX Live from 2012 to 2018. Up to 2014 the error is different, but still the code doesn't work.



              This is because memoir has a different definition of date than the standard classes. It performs protected@xdef on the argument to date in order to define thedate so that footnotes or thanks commands disappear from it and this is the problem: isodate redefines today in such a way that it doesn't survive protected@xdef.



              You solve the issue with



              dateprotecttoday





              share|improve this answer
























                up vote
                9
                down vote



                accepted







                up vote
                9
                down vote



                accepted






                I tested your example with all versions of TeX Live from 2012 to 2018. Up to 2014 the error is different, but still the code doesn't work.



                This is because memoir has a different definition of date than the standard classes. It performs protected@xdef on the argument to date in order to define thedate so that footnotes or thanks commands disappear from it and this is the problem: isodate redefines today in such a way that it doesn't survive protected@xdef.



                You solve the issue with



                dateprotecttoday





                share|improve this answer














                I tested your example with all versions of TeX Live from 2012 to 2018. Up to 2014 the error is different, but still the code doesn't work.



                This is because memoir has a different definition of date than the standard classes. It performs protected@xdef on the argument to date in order to define thedate so that footnotes or thanks commands disappear from it and this is the problem: isodate redefines today in such a way that it doesn't survive protected@xdef.



                You solve the issue with



                dateprotecttoday






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 10 at 13:13

























                answered Sep 10 at 13:02









                egreg

                685k8418273077




                685k8418273077



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f450244%2fincomprehensible-error-with-babel-and-isodate%23new-answer', 'question_page');

                    );

                    Post as a guest