PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : kopfzeile



felix87
14-10-2009, 19:54
Hallo zusammen,

kann mir jemand sagen, wie ich die linien in der kopf und fußzeile auch grau bekomme? mein bisheriger code zu den kopfzeilen sieht folgendermaßen aus: So ist aber nur die schrift grau und nicht die linien. Kann mir jemand helfen??

Grüße, felix



% Farbe für Kopf- und Fußzeile definieren
\definecolor{grau}{rgb}{0.5,0.5,0.5}

% Kopf- und Fußzeilen
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\small\textcolor{grau}{Wirtschaftsmathematik/Statistik}}
\fancyhead[C]{}
\fancyhead[R]{\small\textcolor{grau}{Quantile und Boxplot}}
\renewcommand{\headrulewidth}{0.5pt}
\fancyfoot[L]{\small\textcolor{grau}{Beuth Hochschule f"ur Technik Berlin}}
\fancyfoot[C]{}
\fancyfoot[R]{\small\textcolor{grau}{\thepage{} von \pageref{LastPage}}}
\renewcommand{\footrulewidth}{0.5pt}

localghost
14-10-2009, 20:21
Das ist ein bisschen in der Anleitung von fancyhdr (http://ctan.org/pkg/fancyhdr) versteckt (Abschnitt 12 - The width of the headers and footers, S. 12f).

\documentclass[11pt,a4paper,ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{fancyhdr}
\usepackage[svgnames]{xcolor}
\usepackage{lastpage}
\usepackage{blindtext}

% Kopf- und Fußzeilen
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\small\textcolor{gray!75}{Wirtschaftsmathematik/Statistik}}
\fancyhead[C]{}
\fancyhead[R]{\small\textcolor{gray!75}{Quantile und Boxplot}}
\renewcommand{\headrulewidth}{0.5pt}
\fancyfoot[L]{\small\textcolor{gray!75}{Beuth Hochschule für Technik Berlin}}
\fancyfoot[C]{}
\fancyfoot[R]{\small\textcolor{gray!75}{\thepage{} von \pageref{LastPage}}}
\renewcommand{\footrulewidth}{0.5pt}

\renewcommand{\headrule}{{%
\color{gray!75}
\hrule width\headwidth height\headrulewidth
\vskip-\headrulewidth
}}
\renewcommand{\footrule}{{%
\color{gray!75}
\vskip-\footruleskip
\vskip-\footrulewidth
\hrule width\headwidth height\footrulewidth
\vskip\footruleskip
}}


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


MfG
Thorsten¹

felix87
14-10-2009, 20:36
Vielen vielen vielen Dank !!!!