Since datetime is no longer getting bug fixes, I've been looking at the possibility of switching to datetime2. However, aside from the fact that I'd need to write my own language module, I can't even get to grips with the existing module for English.
Suppose that I want mostly to produce textual dates with the default settings for my locale and I'm using British English at the document level. At some point in the document, though, I'd like to switch the style in which dates are displayed so that the day of the week is also printed.
I'm trying:
\documentclass[british]{article}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[calc]{datetime2}
\DTMsetup{useregional}
\begin{document}
\DTMlangsetup[british]{showdow}\today
\end{document}
I've also tried passing useregional and showdow as options to datetime2 when loading the package but then I get a compilation error. I've tried en-GB, too, because datetime2 doesn't always recognise the british alias. But I didn't get far with that either. And I've tried using the \DTMlangsetup in the preamble with no better luck.
The error I'm getting is
Package datetime2 Warning: Region `british' has ignored
(datetime2) the following settings:
(datetime2) showdow
on input line 22.
Since I've got a fix for Welsh support in datetime, this is no longer of the immediate interest it was since I'd have to write a language module to switch to datetime2 (rather than just correcting a .def file). But I'd still like to know how datetime2 thinks even though I've no intention of switching unless I really have to. (I'm hoping something I understand better may turn up before then!)
I admit that I find the package extremely confusing: I have no idea at all how the different commands and different files are supposed to play nicely together. (This is not a criticism of the author: datetime2 is just much more ambitious than datetime and I simply don't understand the key concepts underlying its organisational structure.) But I thought from the documentation that showdow ought to work with British English and I don't understand why it doesn't.
datetime2, which "should" instead read\usepackage[useregional,showdow,calc]{datetime2}. – jon Aug 12 '15 at 02:04showdowwithin a document? Either it is on or it is off, and that's it? If so,datetime2is much less flexible on this thandatetime, and the documentation should make this limitation much clearer, along with explicit guidance on how to enable it. – cfr Aug 12 '15 at 17:02