Date format changes after loading pdfcomment
Hello,
I noticed that in recent versions of pdfcomment the date format will be redefined after loading the package. In my example I use the a global class option "ngerman" as well as the Package babel (\usepackage[ngerman]{babel}), \today is therefore printed as '28. Juli 2016". If pdfcomment will be loaded after babel, \today is printed as '2016-07-28'.
Greetings, Michael
Comments (5)
-
repo owner -
Thanks for your help, it works!
I adapted the command to
\usepackage[useregional]{datetime2}
so I can switch between german and english without changing the language at multiple locations. -
repo owner Can you please test the global option
german
with your original test file. From the thread at stackchange I seem to understand thatgerman
should work anddatetime2
can not deal withngerman
. If so you can maybe contact Nicola - the maintainer ofdatetime2
- maybe she can do something. Recognizinggerman
but notngerman
as global options is a bit unfortunate these days. -
Thanks for your suggestions, changing the global option to
german
works indeed (but breakssiunitx
localization). I will try to contact Nicola so that the packagedatetime2
can be fixed. -
repo owner - changed status to closed
Not really a problem of pdfcomment. Maybe loading
datetime2
withuseregional
option in future? - Log in to comment
Hi,
with the last update I had to upgrade from obsolete
datetime
todatetime2
, which seems to be a bit more aggressive regarding date settings. Please try to loaddatetime2
with(n)german
option before loadingpdfcomment
.http://tex.stackexchange.com/questions/306049/display-custom-date-in-the-correct-regional-style-with-datetime2 seems to suggest that this should work. Please report back, I have no access to a TeX distribution at the moment and can not test myself.