Menu

#76 \setkomavar{firsrhead}{…} not working with KOMA-Script v3.42

KOMA-Script 3.43
closed
Marei
2024-10-24
2024-10-24
Markus Kohm
No

After the update to KOMA-Script 3.42, something like

\documentclass{scrletter}% or scrlttr2

\setkomavar{firsthead}{First Head}
\setkomavar{firstfoot}{First Foot}
\setkomavar{fromname}{Me}
\setkomavar{fromaddress}{Here}

\begin{document}

\begin{letter}{Your\\There}
  \opening{Hello You,}
  Test
  \closing{Bye}
\end{letter}

\end{document}

shows the default header with Me and Here at the first page, instead of First Head.

Discussion

  • Markus Kohm

    Markus Kohm - 2024-10-24
    • status: open --> closed
     
  • Marei

    Marei - 2024-10-24

    OT: Sorry, forgot to create the ticket, as I had not network connection on the train -> thanks for fixing that.

     
  • Markus Kohm

    Markus Kohm - 2024-10-24

    There is also a workaround for this issue:

    \documentclass{scrlttr2}
    
    \setkomavar{firsthead}{First Head}
    \setkomavar{firstfoot}{First Foot}
    \setkomavar{fromname}{Me}
    \setkomavar{fromaddress}{Here}
    \KOMAoptions{fromalign=false}
    
    \begin{document}
    
    \begin{letter}{Your\\There}
      \opening{Hello You,}
      Test
      \closing{Bye}
    \end{letter}
    
    \end{document}
    

    You can set the option also at \documentclass resp. when loading package scrletter. I've shown here the version using \KOMAoptions, because \setkomavar{firsthead}{…} is often used in LCO files. In this case it would be save to add the \KOMAoptions command also to that LCO file.

     
    👍
    1

Log in to post a comment.