Latest news 2021-06-05: New blog post: Dickimaw Books Site Account.

Bug Tracker

ID 82🔗
Date: 2015-04-08 09:16:56
Status Closed (Fixed)
Category datetime2-english
Version 1.0
Summary useregional=numeric causes errors

Sign in to subscribe to notifications about this report.

Description

Hello,

I found a problem when using datetime2-english (at least with en-GB and en_US styles) with the useregional=numeric option. In this case, the date is formatted as expected, but it produces error messages (! Package datetime2 Error: Unknown style `en-GB-regional') and warnings (Package datetime2 Warning: No date style `en-GB-regional' defined on input line[...]).

A summary with minimal example can be found here: TeX.SX comment

MWE

Download (227B)

\documentclass{article}
\usepackage[UKenglish]{babel}
\usepackage[useregional=numeric]{datetime2}
\DTMlangsetup[en-GB]{datesep={\space\&,\&\space}}
\begin{document}
\today\\
\DTMdisplaydate{2000}{01}{01}{}
\end{document}

Evaluation

Fixed in v1.01 which I've just uploaded to CTAN. Please allow a few days for it to propagate through the mirrors. A temporary work around is to redefine \dateUKenglish as follows:

\renewcommand\dateenglish{%
  \DTMifcaseregional
  {}% do nothing
  {\DTMsetstyle{en-GB}}%
  {\DTMsetstyle{en-GB-numeric}}%
}%

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=82