Please
always provide a
self-contained and
minimal example to give and
adequate problem description that makes the problem comprehensible instantly for others.
The
fancyhdr manual has lots of examples which explain what to do in this case. One of the simplest looks like this. A click on "Open in writeLaTeX" in the head of the below code box will show you the output.
Code: Select all
\documentclass[
12pt,
a4paper,
danish % global language option for »babel«
]{article}
\usepackage[T1]{fontenc}
\usepackage{selinput} % semi-automatic determination ↵
\SelectInputMappings{ % of input encoding by a ↵
ae={æ}, % list of selected glyphs ↵
oslash={ø} % see: http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt
}
\usepackage{babel}
\usepackage[
margin=2cm,
includeheadfoot,
headheight=15pt
]{geometry}
\usepackage{fancyhdr}
\fancyhf{}
\lhead{\nouppercase{\leftmark}}
\rhead{\thepage}
\pagestyle{fancy}
\usepackage{blindtext} % create dummy text, not for use in actual document
\begin{document}
\blinddocument % create dummy text, not for use in actual document
\end{document}
Thousands of possible solutions can be found by a
forum search since this is FAQ. You only need to adapt them to your needs.
Furthermore there are some concerns about your code, which seems to be derived from ancient templates.
- It uses many obsolete packages.
- graphics is already loaded by graphicx and therefore doesn't need to be loaded explicitly
In general you should take a look at the manuals of the involved packages in your code. Or do you know from memory what
eso-pic is for and what it does? Drop packages which you don't know (and therefore don't use anyway).
Best regards and welcome to the board
Thorsten