Bug Tracker 
| ID | 131🔗 |
|---|---|
| Date: | 2019-05-29 16:57:08 |
| Status | Closed (Not a Bug) |
| Category | datetime2 |
| Version | 1.5.3 |
| Summary | showdayofmonth setting wrongly said as ignored |
Sign in to subscribe to notifications about this report.
Description
The compilation of the example given in Month/Year Format in Latex displays a warning: "Package datetime2 Warning: Region `english-base' has ignored the following settings:showdayofmonth=false on input line 20." But, in fact, it is taken in account.
MWE
Download (192B)
\listfiles
\documentclass{article}
\usepackage[en-US]{datetime2}
\begin{document}
\today
\DTMlangsetup{showdayofmonth=false}
\today
\DTMlangsetup{showdayofmonth=true}
\today
\end{document}
Evaluation
If the optional argument is missing to the command \DTMlangsetup the settings are passed to all loaded modules. In this example, there are two modules: the base english module and the en-US module. The base module has no option and so warns about trying to set an unknown option. The en-US module supports the showdayofmonth option and sets it. You can avoid the warning by using the optional argument to explicitly set which module to pass the option to:
\DTMlangsetup[en-US]{showdayofmonth=false}
or use the starred version:
\DTMlangsetup*{showdayofmonth=false}
which doesn't issue a warning for unknown options.
Comments
0 comments.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=131
