# How can I use scrpage2 with scrartcl?

For displaying the current section's title in the page-header, I usually use the scrpage2 package with scrbook. However, now I would like to write a report with scrartcl, and my settings are not supported anymore: the section is not displayed. Here is the scrpage2 code, that works with scrbook:

\usepackage[%
headsepline,                %% Separation line below the header
%   footsepline,                %% Separation line above the footer
markuppercase
]{scrpage2}

\lefoot{}                      %% Bottom left on even pages
\lofoot{}                      %% Bottom left on odd pages
\refoot{}                      %% Bottom right on even pages
\rofoot{}                      %% Bottom right on odd pages
\cfoot{}                           %% Bottom center

\lehead{\bfseries\pagemark}    %% Top left on even pages
\lohead{\bfseries\headmark}    %% Top left on odd pages
\rehead{\bfseries\headmark}    %% Top right on even pages
\rohead{\bfseries\pagemark}    %% Top right on odd pages
\chead{}                           %% Top center

\pagestyle{scrheadings}


I found this resource (in German), but I do not understand the solution from that. How can I make the packages work with each other?

-
The FAQ entry you mention points to section 4.1.2 of the KOMA-Script documentation (English), more information can be found there. –  diabonas May 30 '11 at 10:23

## 1 Answer

Some more useful information would have been nice. For the present you can test this.

\documentclass[english,twoside]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[%
automark,
headsepline,                %% Separation line below the header
%  footsepline,               %% Separation line above the footer
markuppercase
]{scrpage2}
\usepackage{babel}
\usepackage{blindtext}

\lehead{\bfseries\pagemark}    %% Top left on even pages
\lohead{\bfseries\headmark}    %% Top left on odd pages
\rehead{\bfseries\headmark}    %% Top right on even pages
\rohead{\bfseries\pagemark}    %% Top right on odd pages
\chead{}                       %% Top center

\automark[subsection]{section}
\pagestyle{scrheadings}

\begin{document}
\blinddocument
\end{document}


Further adjustments are left to the interested reader.

As always, the blindtext package is only for creating dummy text thus not part of the solution.

-
Thorsten, thank you very much. This worked flawlessly. –  Ingo May 30 '11 at 13:07