von Seerosengiesser » Di 28. Feb 2012, 14:07
Vielleicht hilft dir das hier weiter (ist auch für Seitenzahlen).
\usepackage{fancyhdr}\setlength{\parindent}{0in}
\pagestyle{fancy} \fancyhf{}
\fancyheadoffset[RO,LE]{30pt}
\makeatletter
\fancyhead[LE]{%
\protected@edef\foo{\rightmark}%
\ifx\foo\@empty\leftmark\else\rightmark\fi}
\makeatother
\fancyhead[RO]{\leftmark}
\renewcommand\headrule
{{\color{blue}%
\hrule height 2pt
width\headwidth
\vspace{1pt}%
\hrule height 1pt
width\headwidth
\vspace{-4pt}}}
\setlength{\headheight}{15pt}
\fancyfoot[RO]{%
\begin{tikzpicture}[remember picture,overlay]%
\node[anchor=east,inner sep=0pt](S){\thepage};%
\path(S.north east)+(-0.6,0.1)coordinate(H);%
\draw[line width=.2mm](H)--(H|-current page.south);%
\end{tikzpicture}%
}
\fancyfoot[LE]{%
\begin{tikzpicture}[remember picture, overlay]%
\node[anchor=west,inner sep=0pt](S){\thepage};%
\path(S.north west)+(0.6,0.1)coordinate(H);%
\draw[line width=.2mm](H)--(H|-current page.south);%
\end{tikzpicture}
}
Dies ist allerdings auf ein zweiseitiges Dokument ausgelegt:
\documentclass[a4paper,12pt,titlepage,twoside]{article}
Es geht aber bestimmt noch einfacher

Vielleicht hilft dir das hier weiter (ist auch für Seitenzahlen).
[code]
\usepackage{fancyhdr}\setlength{\parindent}{0in}
\pagestyle{fancy} \fancyhf{}
\fancyheadoffset[RO,LE]{30pt}
\makeatletter
\fancyhead[LE]{%
\protected@edef\foo{\rightmark}%
\ifx\foo\@empty\leftmark\else\rightmark\fi}
\makeatother
\fancyhead[RO]{\leftmark}
\renewcommand\headrule
{{\color{blue}%
\hrule height 2pt
width\headwidth
\vspace{1pt}%
\hrule height 1pt
width\headwidth
\vspace{-4pt}}}
\setlength{\headheight}{15pt}
\fancyfoot[RO]{%
\begin{tikzpicture}[remember picture,overlay]%
\node[anchor=east,inner sep=0pt](S){\thepage};%
\path(S.north east)+(-0.6,0.1)coordinate(H);%
\draw[line width=.2mm](H)--(H|-current page.south);%
\end{tikzpicture}%
}
\fancyfoot[LE]{%
\begin{tikzpicture}[remember picture, overlay]%
\node[anchor=west,inner sep=0pt](S){\thepage};%
\path(S.north west)+(0.6,0.1)coordinate(H);%
\draw[line width=.2mm](H)--(H|-current page.south);%
\end{tikzpicture}
}
[/code]
Dies ist allerdings auf ein zweiseitiges Dokument ausgelegt: [code]\documentclass[a4paper,12pt,titlepage,twoside]{article}[/code]
Es geht aber bestimmt noch einfacher ;-)