# Headings including sections and/or subsections

i got a problem with my headings. This is what I defined:

\documentclass[paper=a4,12pt,bibliography=totoc,twoside,headsepline]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{graphicx}
\parindent0pt
\usepackage{scrpage2}
%\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
%\usepackage[onehalfspacing]{setspace}
%\markright{}

\title{Bachelorthesis}
\author{Victoria ***} % Removed name
\date{August}

\begin{document}

and of course it ends with
\end{document}


My problem is that i only get simple lines without the sections shown. If I use myheadings, than I can put stuff in, like the date... but i just want to get the section up there. I have no idea what's going wrong! I've also tried to use \pagestyle{headings} then the error !extra\else shows up!

• Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. This question could probably be improved by making the code a minimal working example (MWE) showing the problem, with at least one section, and a plain text page (not a title page). – T. Verron Jul 18 '14 at 10:06
• Is \automark[subsection]{section} \pagestyle{scrheadings} what you want? – LaRiFaRi Jul 18 '14 at 10:55

% arara: pdflatex