Menu

#84 scrlttr2 conflicts with [newcommands]{ragged2e}

KOMA-Script 3.45
closed
2025-06-04
2025-06-04
Uwe Siart
No

Don't know if it's related to #82 and therefore a duplicate. I observe another scrlttr2 conflict with the latest releases. The MWE

\documentclass{scrlttr2}
\usepackage[newcommands]{ragged2e}
\begin{document}
\begin{letter}{Test}
  \opening{Test}
  Test
  \closing{Test}
\end{letter}
\end{document}

dies away with

! Undefined control sequence.
\@gnewline ...\@nolnerr \else \unskip \reserved@e 
                                                  {\reserved@f #1}\nobreak \...
l.7   \closing{Test}

Without the [newcommands] option the error is gone.

Discussion

  • Markus Kohm

    Markus Kohm - 2025-06-04
    • labels: --> scrletter, scrlttr2, ragged2e
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,5 @@
     Don't know if it's related to #82 and therefore a duplicate. I observe another scrlttr2 conflict with the latest releases. The MWE
    -
    +```latex
     \documentclass{scrlttr2}
     \usepackage[newcommands]{ragged2e}
     \begin{document}
    @@ -9,12 +9,12 @@
       \closing{Test}
     \end{letter}
     \end{document}
    -
    +```
     dies away with
    -
    +```latex
     ! Undefined control sequence.
     \@gnewline ...\@nolnerr \else \unskip \reserved@e 
                                                       {\reserved@f #1}\nobreak \...
     l.7   \closing{Test}
    -
    -Without the [ newcommands] option the error is gone.
    +```
    +Without the `[newcommands]` option the error is gone.
    
    • assigned_to: Markus Kohm
     
  • Markus Kohm

    Markus Kohm - 2025-06-04

    I have always pointed out that the newcommands option of ragged2e is a bad idea and should not be used. KOMA script classes and packages are not the only ones that rely on certain properties of the original commands.

    I don't consider it a bug of KOMA-Script when other packages break things like that.

     
  • Uwe Siart

    Uwe Siart - 2025-06-04

    Ok, understood. I just thought it should be reported because it doesn't appear in 3.43. I'll avoid using the option. One can live quite well without it.

     
    • Markus Kohm

      Markus Kohm - 2025-06-04

      Yes, thank you. Reporting is always a good idea.

       
  • Markus Kohm

    Markus Kohm - 2025-06-04
    • status: open --> closed
     

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.