Infinite loop with scrletter and package datetime2
KOMA-Script is a bundle of versatile LaTeX classes and packages
Brought to you by:
kohm
If package datetime2
is loaded after package scrletter
, this results in an infinite loop, when using \today
, either explicitly or as part of the notepaper:
\documentclass[12pt,a4paper,ngerman]{scrartcl}
\usepackage{scrletter}
\usepackage{babel}
\usepackage[useregional]{datetime2}
\begin{document}
\begin{letter}{
An\\
alle Interessenten\\
00000 Hier
}
\opening{Hi,}
das heutige Datum ist: \DTMtoday
\closing{Mit freundlichen Grüßen}
\end{letter}
\end{document}
With option numericaldate
the issue does not happen, but if the date of datetime2
should be used, this wouldn't be a solution. Adding
\AtBeginDocument{\let\today\DTMtoday}
would be another workaround, but in this case, option numericaldate
would not work any longer.
Fixed in [r4107].
Related
Commit: [r4107]