[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#811399: (no subject)



Not a bug in KOMA-script.

    \documentclass{article}
    \usepackage{fancyhdr}
    \usepackage{color}% <--
    \pagestyle{fancy}
    \fancyfoot[L]{without any special options}
    \fancyfoot[R]{\normalcolor with KOMA-Script font}
    \begin{document}
    Miau!
    \end{document}


This can be fixed using `\leavevmode', as the following shows (for the KOMA example):

    \documentclass[enabledeprecatedfontcommands
    	% above is needed to make fancyhdr work, it uses commands
    	% that are obsolete for two decades
    ]{scrartcl}
    \usepackage{fancyhdr}
    \usepackage{color}% <--
    \pagestyle{fancy}
    \fancyfoot[L]{without any special options}
    \fancyfoot[R]{\leavevmode\usekomafont{pagehead} with KOMA-Script font}
    \begin{document}
    Miau!
    \end{document}

The behaviour is known (see `texdoc grfguide', page six).

Possible workaround shown above. Clean solution would be to use package `scrlayer-scrpage' as recommended by the KOMA author. The package is much more powerful in comparison to `fancyhdr'.


There are dedicated places that deal with that kind of stuff, for example question-answer-sites like TeX.stackexchange and TeXwelt.de (german), just as well as classical forums like latex-community.org or goLaTeX.de (german).


Reply to: