Menu

#57 No page header marks with scrartcl and emulatestandardclasses in page style headings

once upon a time
open
2023-11-09
2023-11-09
Cabohah
No

When I use

\documentclass[emulatestandardclasses]{scrartcl}
\pagestyle{headings}
\begin{document}
\section{Test}
\newpage
empty page
\end{document}

the resulting PDF does not show the section in the page header. I need to explicitly also add option automark to have a page header. IMHO emulatestandardclasses should load scrlayer-scrpage with option automark otherwise the emulation would be incomplete, because

\documentclass{article}
\pagestyle{headings}
\begin{document}
\section{Test}
\newpage
empty page
\end{document}

does show page headers.

Discussion

  • Markus Kohm

    Markus Kohm - 2023-11-09

    Could be a suggestion. Nevertheless, page style headings still wouldn't be the same:

    \documentclass[emulatestandardclasses,automark]{scrartcl}
    \pagestyle{myheadings}
    \markright{My Document}
    \begin{document}
    \section{Test}
    \newpage
    \pagestyle{headings}
    \section{Another Test}
    \newpage
    empty page
    \newpage
    \end{document}
    

    Maybe I should replace using scrlayer-scrpage by a redefinition of page style headings and myheadings instead. Or myheadings should be redefined to at least show a warning. And maybe the automatic aliasing of scrlayer-scrpage should be extended to myheadings.

    Another suggestion would be to just add a note to option emulatestandardclasses in the German KOMA-Scrpt book. Wobei es dort bereits diesen Hinweis gibt:

    Da es sich hier nicht um eine offiziell dokumentierte Option handelt, […] sollte man keinesfalls erwarten, dass der Satz identisch mit dem der Standardklassen wird.

    Note, that the option currently is not officially documented in the English and the German user manual. So if you expect a dedicated result, you should not use this option, but add some documented options (like sfdefaults=false, fontsize=10pt, paper=letter etc.) and additional settings (like page style changes).

    So currently I would not say, that this is a bug an adding automark would solve it. It is only a not documented feature of a not documented option. And I don't know, if an how I will change it.

     
  • Markus Kohm

    Markus Kohm - 2023-11-09
    • labels: scrartcl, emulatestandardclasses --> scrartcl, emulatestandardclasses, feature request
    • Milestone: KOMA-Script 3.42 --> once upon a time
     

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.