Marky Mark
31-05-2006, 16:27
Hallo.
Hab so meine Problem mit dem Package fancyheadings. Ich kann machen was ich will, ich kriegs einfach nicht hin, dass mir die gewünschten Kopfzeilen erstellt werden. Was mach ich falsch?
Wär nett, wenn mir jemand helfen könnte.
----------------------------------------------------------------
\documentclass[a4paper,11pt,english,pdftex,twopage]{book}
\usepackage{graphicx}
%% packages for using german characters
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
%%\usepackage{ngerman}
%% other package
\usepackage[english]{babel}
\usepackage{pslatex}
\usepackage{times,latexsym}
\usepackage{mathptmx}
\usepackage{multirow}
% packages for figures and graphics
%\usepackage{floatfig}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{subfigure}
\usepackage{nameref}
% package for mathematical formulas
\usepackage{amsmath}
% packages for tables
\usepackage{tabularx}
\usepackage{supertabular}
% package for multirows in tables
\usepackage{multirow}
% packge for code listings
\usepackage{listings}
% show introduction, table of figures and bibliography in toc
\usepackage{tocbibind}
%
\usepackage{boxedminipage}
% verbatime-like environment
\usepackage{alltt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\ref}[1]{\ref{#1} (p. \pageref{#1})}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% set default header with fancyheadings
\usepackage{fancyheadings}
\pagestyle{fancyplain}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection. #1}}
\renewcommand{\subsectionmark}[1]{\markright{\thesubsection. #1}}
% header contains chapter and section or subsection headline
% pagenumber is displayed as well
\headrulewidth 0.4pt
\chead{}
\rhead[\fancyplain{}{\leftmark}]{\fancyplain{}{\thepage}}
\lhead[\fancyplain{}{\thepage}]{\fancyplain{}{\rightmark}}
\newcommand{\LHEAD}[0]{\lhead[\fancyplain{}{\footnotesize\thepage}]{\fancyplain{}{\footnotesize\rightmark}}}
\newcommand{\RHEAD}[0]{\rhead[\fancyplain{}{\footnotesize\leftmark}]{\fancyplain{}{\footnotesize\thepage}}}
\LHEAD{}
\RHEAD{}
% display pagenumber in the center of plainpages
\footrulewidth 0pt
\cfoot{\fancyplain{\thepage}{}}
\rfoot{}
\lfoot{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% german style indention
\parindent=0cm
%\parskip=3mm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{empty}
%\input{frontpage}
%\newpage
\input{titlepage}
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{ TITLE }
\author{Marky Mark}
\newpage
\maketitle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{plain}
%% number introduction in roman numbers -> you still need to set \pagenumbering{arabic} in your first included chapter
\pagenumbering{Roman}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\tableofcontents
\listoffigures
\listoftables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{acknowledgements}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% main part of the document
\chapter{Halli}
\section{Hallo}
Dies ist ein Testdokument
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% appendix
%\appendix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% bibliography (using bibtex)
%\nocite{*}
%\bibliographystyle{acm}
%\bibliographystyle{ieeetr}
%\bibliographystyle{plain}
%\bibliography{test}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\include{statement}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Hab so meine Problem mit dem Package fancyheadings. Ich kann machen was ich will, ich kriegs einfach nicht hin, dass mir die gewünschten Kopfzeilen erstellt werden. Was mach ich falsch?
Wär nett, wenn mir jemand helfen könnte.
----------------------------------------------------------------
\documentclass[a4paper,11pt,english,pdftex,twopage]{book}
\usepackage{graphicx}
%% packages for using german characters
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
%%\usepackage{ngerman}
%% other package
\usepackage[english]{babel}
\usepackage{pslatex}
\usepackage{times,latexsym}
\usepackage{mathptmx}
\usepackage{multirow}
% packages for figures and graphics
%\usepackage{floatfig}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{subfigure}
\usepackage{nameref}
% package for mathematical formulas
\usepackage{amsmath}
% packages for tables
\usepackage{tabularx}
\usepackage{supertabular}
% package for multirows in tables
\usepackage{multirow}
% packge for code listings
\usepackage{listings}
% show introduction, table of figures and bibliography in toc
\usepackage{tocbibind}
%
\usepackage{boxedminipage}
% verbatime-like environment
\usepackage{alltt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\ref}[1]{\ref{#1} (p. \pageref{#1})}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% set default header with fancyheadings
\usepackage{fancyheadings}
\pagestyle{fancyplain}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection. #1}}
\renewcommand{\subsectionmark}[1]{\markright{\thesubsection. #1}}
% header contains chapter and section or subsection headline
% pagenumber is displayed as well
\headrulewidth 0.4pt
\chead{}
\rhead[\fancyplain{}{\leftmark}]{\fancyplain{}{\thepage}}
\lhead[\fancyplain{}{\thepage}]{\fancyplain{}{\rightmark}}
\newcommand{\LHEAD}[0]{\lhead[\fancyplain{}{\footnotesize\thepage}]{\fancyplain{}{\footnotesize\rightmark}}}
\newcommand{\RHEAD}[0]{\rhead[\fancyplain{}{\footnotesize\leftmark}]{\fancyplain{}{\footnotesize\thepage}}}
\LHEAD{}
\RHEAD{}
% display pagenumber in the center of plainpages
\footrulewidth 0pt
\cfoot{\fancyplain{\thepage}{}}
\rfoot{}
\lfoot{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% german style indention
\parindent=0cm
%\parskip=3mm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{empty}
%\input{frontpage}
%\newpage
\input{titlepage}
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{ TITLE }
\author{Marky Mark}
\newpage
\maketitle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{plain}
%% number introduction in roman numbers -> you still need to set \pagenumbering{arabic} in your first included chapter
\pagenumbering{Roman}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\tableofcontents
\listoffigures
\listoftables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{acknowledgements}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% main part of the document
\chapter{Halli}
\section{Hallo}
Dies ist ein Testdokument
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% appendix
%\appendix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% bibliography (using bibtex)
%\nocite{*}
%\bibliographystyle{acm}
%\bibliographystyle{ieeetr}
%\bibliographystyle{plain}
%\bibliography{test}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\include{statement}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%