Code:
\documentclass[paper=a4,12pt,bibliography=totocnumbered,headings=small]{scrartcl}
%%%%% Language %%%%%
\usepackage[english]{babel}
\usepackage{setspace}
\usepackage[T1]{fontenc}
%Für Windows:
\usepackage[latin1]{inputenc}
%Für Linux:
%\usepackage[utf8]{inputenc}
\setlength{\parindent}{1em}% Neuer Absatz wird eingerückt.
\setlength{\parskip}{3pt}% Abstand nach Absatz.
\usepackage[a4paper,includehead,includefoot,left=25mm,right=25mm,top=20mm,bottom=20mm]{geometry}
\setkomafont{sectioning}{\normalcolor\bfseries}
%Im Folgenden wird eingestellt, dass die Fußnotennummerierung durchläuft und nicht bei jedem neuen Kapitel wieder bei 1 anfängt.
\usepackage{remreset}
\usepackage{textcomp}
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{4}
\usepackage{xspace}
\usepackage{blindtext}
%%%%% author, version of file %%%%%
\newcommand{\versiondate}{\today}%festes Datum: 15.\,09.\,2008
\def\FileAuthor{}
\def\FileTitle{}
%%%%% PDF 1.2 for Acrobat 3 onwards %%%%%
\pdfoptionpdfminorversion 2
%%%%% Hyperref %%%%%
\usepackage{hyperref}
\hypersetup{%
breaklinks=true,%
colorlinks=true,%
linkcolor=dkblue,%
urlcolor=dkblue,%
citecolor=dkblue,%
pdftitle={},%
pdfsubject={},%
pdfkeywords = {},%
pdfauthor={},%
pdfstartview=FitH,%
bookmarksopen=none,%
bookmarksopenlevel=1,%
}
\urlstyle{rm}
%%%%% Packages %%%%%
\usepackage{array}
\usepackage{longtable}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{amssymb}
\usepackage{hanging}
\usepackage{multicol}
\makeatletter
%%%%% Listings %%%%%
\usepackage{listings}
\lstset{%
frame=none,
language=[LaTeX]TeX,
basicstyle=\ttfamily,%\small,
commentstyle=\color{red},
keywordstyle=, % LaTeX-Befehle werden nicht fett dargestellt
numbers=none,%left/right
breaklines=true,
xleftmargin=25pt,
xrightmargin=20pt,
escapeinside={(*}{*)},
belowskip=\medskipamount,
prebreak=\mbox{$\hookleftarrow$}% "geklaut" vom scrguide (KOMA-Script)
}
%%%%% Colors %%%%%
\usepackage[dvipsnames]{xcolor}
\definecolor{dkblue}{rgb}{0,0.1,0.5} % dark blue
\definecolor{dkred}{rgb}{0.66,0.04,0.04} % dark red
\definecolor{pyellow}{rgb}{1,0.97,0.75} % pale yellow
%%% for Menu references
\newcommand{\menu}[1]{\texorpdfstring{{\color{dkred}\textit{#1}}}{#1}}
%%% Menu separator
\newcommand{\msep}{{\color{dkred}\textit{\guilsinglright}}\xspace}
%%% yellow box with dark blue text
\newcommand{\tip}[2][Tipp: ]{%
\begin{center}%
\colorbox{pyellow}{\parbox{0.85\textwidth}{%
\color{dkblue}\textit{#1}#2}}%
\end{center}%
}%
\newcommand{\verfasser}[1]{%
\begin{flushright}%
\colorbox{pyellow}{\parbox{0.7\textwidth}{%
\color{dkblue}\textit{Dieser Abschnitt stammt von #1}}}%
\end{flushright}%
}%
%%%%% Fonts %%%%%
\usepackage{charter}
\addtokomafont{sectioning}{\rmfamily} % Headings with serifs
\renewcommand{\headfont}{\normalfont\itshape} % Headlines italic, not slanted ***
\usepackage[scaled=.83]{beramono}
%%%%% Other stuff %%%%%
\deffootnote{1.5em}{2em}{\makebox[1.5em][l]{\thefootnotemark}}
\usepackage{microtype} % micro typography
%%%%% Mini TOCs %%%%%
\usepackage{minitoc}
\mtcsetrules{secttoc}{off}
\mtcsetfont{secttoc}{subsection}{}
\mtcsettitle{secttoc}{Inhalt auf einen Blick:}
\@removefromreset{footnote}{chapter}
\makeatother
%%%%% Headings %%%%%
\usepackage{scrpage2}
\pagestyle{scrheadings}
\ihead{\FileTitle{}}
\chead{}
\ohead{\headmark}
\ifoot{}
\cfoot{\pagemark}
\ofoot{}
\automark[section]{section}
\onehalfspacing
\begin{document}
\subject{Dies ist ein Test}
\title{--- Den Titel verrate ich nicht ---\\ Ein fieses Problem}
\author{\small A. N. Onym}
\date{\small \versiondate}
\maketitle
%\vfill
%\addvspace{20mm}
\thispagestyle{empty}
\newpage
\tableofcontents
\newpage
\dosecttoc[c]
%\faketableofcontents{}
\newpage
\section{Introduction}\label{sec:intro}
\secttoc
Dann schreiben wir hier mal was rein, wenn's klappt, dann ist das fein.
\subsection{test1}
Die Untersektion ist wird nicht angezeigt, ich hoffe, dass dem nicht so bleibt.
\subsection{test2}
Untersektion Nummero 2 ist mir völlig einerlei.
\end{document}
Vielen Dank im Voraus,
Lesezeichen