Why do people specify date as an option for usepackage?

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












17















In LaTeX code written by other people, I sometimes see a date specified as an optional argument for usepackage:



usepackageiftex[2013/04/04]


Intuition tells me that this is some way to ensure that the package version meets a certain minimal requirement, but I would like to read about its usage in the official manual, as opposed to blindly paste it in my code based on guesswork.










share|improve this question




























    17















    In LaTeX code written by other people, I sometimes see a date specified as an optional argument for usepackage:



    usepackageiftex[2013/04/04]


    Intuition tells me that this is some way to ensure that the package version meets a certain minimal requirement, but I would like to read about its usage in the official manual, as opposed to blindly paste it in my code based on guesswork.










    share|improve this question


























      17












      17








      17


      2






      In LaTeX code written by other people, I sometimes see a date specified as an optional argument for usepackage:



      usepackageiftex[2013/04/04]


      Intuition tells me that this is some way to ensure that the package version meets a certain minimal requirement, but I would like to read about its usage in the official manual, as opposed to blindly paste it in my code based on guesswork.










      share|improve this question
















      In LaTeX code written by other people, I sometimes see a date specified as an optional argument for usepackage:



      usepackageiftex[2013/04/04]


      Intuition tells me that this is some way to ensure that the package version meets a certain minimal requirement, but I would like to read about its usage in the official manual, as opposed to blindly paste it in my code based on guesswork.







      packages optional-arguments package-options latex-base






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 14 at 10:24









      Phelype Oleinik

      24k54688




      24k54688










      asked Feb 13 at 19:26









      ScumCoderScumCoder

      558412




      558412




















          2 Answers
          2






          active

          oldest

          votes


















          20














          From source2e.pdf, page 479 (CTAN page or texdoc source2e in a terminal):




          <code>usepackage[<package-option-list>]<package-list>[<version>]</code>//There can be any number of these declarations. All packages in <code><package-list></code> are called with the same options.//Each <code><package></code> file defines new elements (or modifies those defined in the <code><class></code>), and thus extends the range of documents which can be processed. The <code><package-option-list></code> is a list of options which can modify the formatting of elements defined in the <code><package></code> file. The <code><version></code> is a version number, beginning with a date in the format <code>YYYY/MM/DD</code>. If an older version of the package is found, a warning is issued.







          share|improve this answer

























          • Perfect. (I guess I failed to find it myself because of the non-obvious name of the manual file).

            – ScumCoder
            Feb 13 at 19:36












          • @ScumCoder There are probably other documents saying this :) (sorry, but 7 what?)

            – Phelype Oleinik
            Feb 13 at 19:38











          • @PhelypeOleinik we should update that documentation.....

            – David Carlisle
            Feb 13 at 20:48











          • @DavidCarlisle Ooh, Frank's format :)

            – Phelype Oleinik
            Feb 13 at 20:53


















          11














          Phelype Oleinik pointed you at the LaTeX sources but there is also a user guide called usrguide.pdf



           texdoc usrguide


          will open the document in texlive. Section 3.2 on preamble commands has the syntax for usepackage.



          This argument was extended with new syntax last year so you may also want to look at LaTeX News 28 in texdoc ltnews which points you at this article from TUGBoat on the project website



          https://www.latex-project.org/publications/2018-FMi-TUB-tb122mitt-version-rollback.pdf






          share|improve this answer























          • How can I access the usrguide.pdf document from MiKTeX?

            – Reinhard Neuwirth
            Feb 19 at 21:40







          • 1





            @ReinhardNeuwirth no idea about miktex, I assume it has some option equivalent to texdoc, but the document is available from multiple places on the net eg latex-project.org/help/documentation/usrguide.pdf

            – David Carlisle
            Feb 19 at 22:34











          • Unable to determine the miktex option, but found the document.

            – Reinhard Neuwirth
            Feb 21 at 5:49






          • 1





            I'm told texdoc should work in miktex just as in texlive.

            – David Carlisle
            Feb 27 at 12:51











          • Just noticed that for texdoc url, texdoc siunitx etc. plugged in at the command prompt MiKTeX delivers the goods as expected. texdoc usrguide seems to be the one exception. Perhaps the document goes by another name?

            – Reinhard Neuwirth
            Feb 28 at 13:40










          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%2f474752%2fwhy-do-people-specify-date-as-an-option-for-usepackage%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          20














          From source2e.pdf, page 479 (CTAN page or texdoc source2e in a terminal):




          <code>usepackage[<package-option-list>]<package-list>[<version>]</code>//There can be any number of these declarations. All packages in <code><package-list></code> are called with the same options.//Each <code><package></code> file defines new elements (or modifies those defined in the <code><class></code>), and thus extends the range of documents which can be processed. The <code><package-option-list></code> is a list of options which can modify the formatting of elements defined in the <code><package></code> file. The <code><version></code> is a version number, beginning with a date in the format <code>YYYY/MM/DD</code>. If an older version of the package is found, a warning is issued.







          share|improve this answer

























          • Perfect. (I guess I failed to find it myself because of the non-obvious name of the manual file).

            – ScumCoder
            Feb 13 at 19:36












          • @ScumCoder There are probably other documents saying this :) (sorry, but 7 what?)

            – Phelype Oleinik
            Feb 13 at 19:38











          • @PhelypeOleinik we should update that documentation.....

            – David Carlisle
            Feb 13 at 20:48











          • @DavidCarlisle Ooh, Frank's format :)

            – Phelype Oleinik
            Feb 13 at 20:53















          20














          From source2e.pdf, page 479 (CTAN page or texdoc source2e in a terminal):




          <code>usepackage[<package-option-list>]<package-list>[<version>]</code>//There can be any number of these declarations. All packages in <code><package-list></code> are called with the same options.//Each <code><package></code> file defines new elements (or modifies those defined in the <code><class></code>), and thus extends the range of documents which can be processed. The <code><package-option-list></code> is a list of options which can modify the formatting of elements defined in the <code><package></code> file. The <code><version></code> is a version number, beginning with a date in the format <code>YYYY/MM/DD</code>. If an older version of the package is found, a warning is issued.







          share|improve this answer

























          • Perfect. (I guess I failed to find it myself because of the non-obvious name of the manual file).

            – ScumCoder
            Feb 13 at 19:36












          • @ScumCoder There are probably other documents saying this :) (sorry, but 7 what?)

            – Phelype Oleinik
            Feb 13 at 19:38











          • @PhelypeOleinik we should update that documentation.....

            – David Carlisle
            Feb 13 at 20:48











          • @DavidCarlisle Ooh, Frank's format :)

            – Phelype Oleinik
            Feb 13 at 20:53













          20












          20








          20







          From source2e.pdf, page 479 (CTAN page or texdoc source2e in a terminal):




          <code>usepackage[<package-option-list>]<package-list>[<version>]</code>//There can be any number of these declarations. All packages in <code><package-list></code> are called with the same options.//Each <code><package></code> file defines new elements (or modifies those defined in the <code><class></code>), and thus extends the range of documents which can be processed. The <code><package-option-list></code> is a list of options which can modify the formatting of elements defined in the <code><package></code> file. The <code><version></code> is a version number, beginning with a date in the format <code>YYYY/MM/DD</code>. If an older version of the package is found, a warning is issued.







          share|improve this answer















          From source2e.pdf, page 479 (CTAN page or texdoc source2e in a terminal):




          <code>usepackage[<package-option-list>]<package-list>[<version>]</code>//There can be any number of these declarations. All packages in <code><package-list></code> are called with the same options.//Each <code><package></code> file defines new elements (or modifies those defined in the <code><class></code>), and thus extends the range of documents which can be processed. The <code><package-option-list></code> is a list of options which can modify the formatting of elements defined in the <code><package></code> file. The <code><version></code> is a version number, beginning with a date in the format <code>YYYY/MM/DD</code>. If an older version of the package is found, a warning is issued.








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 13 at 20:43









          moewe

          93.1k10115351




          93.1k10115351










          answered Feb 13 at 19:32









          Phelype OleinikPhelype Oleinik

          24k54688




          24k54688












          • Perfect. (I guess I failed to find it myself because of the non-obvious name of the manual file).

            – ScumCoder
            Feb 13 at 19:36












          • @ScumCoder There are probably other documents saying this :) (sorry, but 7 what?)

            – Phelype Oleinik
            Feb 13 at 19:38











          • @PhelypeOleinik we should update that documentation.....

            – David Carlisle
            Feb 13 at 20:48











          • @DavidCarlisle Ooh, Frank's format :)

            – Phelype Oleinik
            Feb 13 at 20:53

















          • Perfect. (I guess I failed to find it myself because of the non-obvious name of the manual file).

            – ScumCoder
            Feb 13 at 19:36












          • @ScumCoder There are probably other documents saying this :) (sorry, but 7 what?)

            – Phelype Oleinik
            Feb 13 at 19:38











          • @PhelypeOleinik we should update that documentation.....

            – David Carlisle
            Feb 13 at 20:48











          • @DavidCarlisle Ooh, Frank's format :)

            – Phelype Oleinik
            Feb 13 at 20:53
















          Perfect. (I guess I failed to find it myself because of the non-obvious name of the manual file).

          – ScumCoder
          Feb 13 at 19:36






          Perfect. (I guess I failed to find it myself because of the non-obvious name of the manual file).

          – ScumCoder
          Feb 13 at 19:36














          @ScumCoder There are probably other documents saying this :) (sorry, but 7 what?)

          – Phelype Oleinik
          Feb 13 at 19:38





          @ScumCoder There are probably other documents saying this :) (sorry, but 7 what?)

          – Phelype Oleinik
          Feb 13 at 19:38













          @PhelypeOleinik we should update that documentation.....

          – David Carlisle
          Feb 13 at 20:48





          @PhelypeOleinik we should update that documentation.....

          – David Carlisle
          Feb 13 at 20:48













          @DavidCarlisle Ooh, Frank's format :)

          – Phelype Oleinik
          Feb 13 at 20:53





          @DavidCarlisle Ooh, Frank's format :)

          – Phelype Oleinik
          Feb 13 at 20:53











          11














          Phelype Oleinik pointed you at the LaTeX sources but there is also a user guide called usrguide.pdf



           texdoc usrguide


          will open the document in texlive. Section 3.2 on preamble commands has the syntax for usepackage.



          This argument was extended with new syntax last year so you may also want to look at LaTeX News 28 in texdoc ltnews which points you at this article from TUGBoat on the project website



          https://www.latex-project.org/publications/2018-FMi-TUB-tb122mitt-version-rollback.pdf






          share|improve this answer























          • How can I access the usrguide.pdf document from MiKTeX?

            – Reinhard Neuwirth
            Feb 19 at 21:40







          • 1





            @ReinhardNeuwirth no idea about miktex, I assume it has some option equivalent to texdoc, but the document is available from multiple places on the net eg latex-project.org/help/documentation/usrguide.pdf

            – David Carlisle
            Feb 19 at 22:34











          • Unable to determine the miktex option, but found the document.

            – Reinhard Neuwirth
            Feb 21 at 5:49






          • 1





            I'm told texdoc should work in miktex just as in texlive.

            – David Carlisle
            Feb 27 at 12:51











          • Just noticed that for texdoc url, texdoc siunitx etc. plugged in at the command prompt MiKTeX delivers the goods as expected. texdoc usrguide seems to be the one exception. Perhaps the document goes by another name?

            – Reinhard Neuwirth
            Feb 28 at 13:40















          11














          Phelype Oleinik pointed you at the LaTeX sources but there is also a user guide called usrguide.pdf



           texdoc usrguide


          will open the document in texlive. Section 3.2 on preamble commands has the syntax for usepackage.



          This argument was extended with new syntax last year so you may also want to look at LaTeX News 28 in texdoc ltnews which points you at this article from TUGBoat on the project website



          https://www.latex-project.org/publications/2018-FMi-TUB-tb122mitt-version-rollback.pdf






          share|improve this answer























          • How can I access the usrguide.pdf document from MiKTeX?

            – Reinhard Neuwirth
            Feb 19 at 21:40







          • 1





            @ReinhardNeuwirth no idea about miktex, I assume it has some option equivalent to texdoc, but the document is available from multiple places on the net eg latex-project.org/help/documentation/usrguide.pdf

            – David Carlisle
            Feb 19 at 22:34











          • Unable to determine the miktex option, but found the document.

            – Reinhard Neuwirth
            Feb 21 at 5:49






          • 1





            I'm told texdoc should work in miktex just as in texlive.

            – David Carlisle
            Feb 27 at 12:51











          • Just noticed that for texdoc url, texdoc siunitx etc. plugged in at the command prompt MiKTeX delivers the goods as expected. texdoc usrguide seems to be the one exception. Perhaps the document goes by another name?

            – Reinhard Neuwirth
            Feb 28 at 13:40













          11












          11








          11







          Phelype Oleinik pointed you at the LaTeX sources but there is also a user guide called usrguide.pdf



           texdoc usrguide


          will open the document in texlive. Section 3.2 on preamble commands has the syntax for usepackage.



          This argument was extended with new syntax last year so you may also want to look at LaTeX News 28 in texdoc ltnews which points you at this article from TUGBoat on the project website



          https://www.latex-project.org/publications/2018-FMi-TUB-tb122mitt-version-rollback.pdf






          share|improve this answer













          Phelype Oleinik pointed you at the LaTeX sources but there is also a user guide called usrguide.pdf



           texdoc usrguide


          will open the document in texlive. Section 3.2 on preamble commands has the syntax for usepackage.



          This argument was extended with new syntax last year so you may also want to look at LaTeX News 28 in texdoc ltnews which points you at this article from TUGBoat on the project website



          https://www.latex-project.org/publications/2018-FMi-TUB-tb122mitt-version-rollback.pdf







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 13 at 20:32









          David CarlisleDavid Carlisle

          494k4111371885




          494k4111371885












          • How can I access the usrguide.pdf document from MiKTeX?

            – Reinhard Neuwirth
            Feb 19 at 21:40







          • 1





            @ReinhardNeuwirth no idea about miktex, I assume it has some option equivalent to texdoc, but the document is available from multiple places on the net eg latex-project.org/help/documentation/usrguide.pdf

            – David Carlisle
            Feb 19 at 22:34











          • Unable to determine the miktex option, but found the document.

            – Reinhard Neuwirth
            Feb 21 at 5:49






          • 1





            I'm told texdoc should work in miktex just as in texlive.

            – David Carlisle
            Feb 27 at 12:51











          • Just noticed that for texdoc url, texdoc siunitx etc. plugged in at the command prompt MiKTeX delivers the goods as expected. texdoc usrguide seems to be the one exception. Perhaps the document goes by another name?

            – Reinhard Neuwirth
            Feb 28 at 13:40

















          • How can I access the usrguide.pdf document from MiKTeX?

            – Reinhard Neuwirth
            Feb 19 at 21:40







          • 1





            @ReinhardNeuwirth no idea about miktex, I assume it has some option equivalent to texdoc, but the document is available from multiple places on the net eg latex-project.org/help/documentation/usrguide.pdf

            – David Carlisle
            Feb 19 at 22:34











          • Unable to determine the miktex option, but found the document.

            – Reinhard Neuwirth
            Feb 21 at 5:49






          • 1





            I'm told texdoc should work in miktex just as in texlive.

            – David Carlisle
            Feb 27 at 12:51











          • Just noticed that for texdoc url, texdoc siunitx etc. plugged in at the command prompt MiKTeX delivers the goods as expected. texdoc usrguide seems to be the one exception. Perhaps the document goes by another name?

            – Reinhard Neuwirth
            Feb 28 at 13:40
















          How can I access the usrguide.pdf document from MiKTeX?

          – Reinhard Neuwirth
          Feb 19 at 21:40






          How can I access the usrguide.pdf document from MiKTeX?

          – Reinhard Neuwirth
          Feb 19 at 21:40





          1




          1





          @ReinhardNeuwirth no idea about miktex, I assume it has some option equivalent to texdoc, but the document is available from multiple places on the net eg latex-project.org/help/documentation/usrguide.pdf

          – David Carlisle
          Feb 19 at 22:34





          @ReinhardNeuwirth no idea about miktex, I assume it has some option equivalent to texdoc, but the document is available from multiple places on the net eg latex-project.org/help/documentation/usrguide.pdf

          – David Carlisle
          Feb 19 at 22:34













          Unable to determine the miktex option, but found the document.

          – Reinhard Neuwirth
          Feb 21 at 5:49





          Unable to determine the miktex option, but found the document.

          – Reinhard Neuwirth
          Feb 21 at 5:49




          1




          1





          I'm told texdoc should work in miktex just as in texlive.

          – David Carlisle
          Feb 27 at 12:51





          I'm told texdoc should work in miktex just as in texlive.

          – David Carlisle
          Feb 27 at 12:51













          Just noticed that for texdoc url, texdoc siunitx etc. plugged in at the command prompt MiKTeX delivers the goods as expected. texdoc usrguide seems to be the one exception. Perhaps the document goes by another name?

          – Reinhard Neuwirth
          Feb 28 at 13:40





          Just noticed that for texdoc url, texdoc siunitx etc. plugged in at the command prompt MiKTeX delivers the goods as expected. texdoc usrguide seems to be the one exception. Perhaps the document goes by another name?

          – Reinhard Neuwirth
          Feb 28 at 13:40

















          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%2f474752%2fwhy-do-people-specify-date-as-an-option-for-usepackage%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

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)