Latest news 2021-09-06: new blog post "Legacy Documents and TeX Live Docker Images".

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

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:

You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=131