Menu

#65 Infinite loop with scrletter and package datetime2

KOMA-Script 3.42
closed
2024-04-10
2024-04-10
Markus Kohm
No

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.

Related

Issues: #66

Discussion

  • Markus Kohm

    Markus Kohm - 2024-04-10
    • status: open --> closed
     
  • Markus Kohm

    Markus Kohm - 2024-04-10

    Fixed in [r4107].

     

    Related

    Commit: [r4107]


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.