I've got some problems with my document which I created with fancyhdr. It's all fine, everything works, exept for one thing:
In my table of contents I would like to have the sections (in contrast to the subsections) in bold letters. Does anyone know how to do this with fancyhdr?
Thanks

Here's an example of my code:
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage{fancyhdr}
\usepackage[ngerman]{babel}
\usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry}
\usepackage{blindtext}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.5pt}
\rhead{\nouppercase{\rightmark}}\lhead{}
\renewcommand{\sectionmark}[1]{\markright{\ #1}}
\setcounter{secnumdepth}{-2}
\makeatletter
\renewcommand*\l@section{\@dottedtocline{1}{0.5em} {2.3em}}
\renewcommand*\l@subsection{\@dottedtocline{1}{1.5em} {2.3em}}
\makeatother
\begin{document}
\tableofcontents
\newpage
\section{Section 1 (die soll im TOC fett sein)}
\subsection{Subsection 1}
\blindtext
\newpage
\subsection{Subsection 2}
\blindtext
\end{document}