PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : This warning



lo2
09-01-2007, 15:21
Hey there

I keep getting some warning which screws up the paging system (which tell on what page you are and how many there are in total). The warning is.

LaTeX Warning: Reference `LastPage' on page 1 undefined in input line 59.
[1{pstfonts.map}] (Test.aux)

What to do in order to fix this?

localghost
09-01-2007, 15:28
Please post the complete preamble of your document. Maybe a reduced running example could also be helpful.

lo2
09-01-2007, 17:09
Here is the preamble.

\documentclass[danish]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{geometry}
\usepackage{babel}
\usepackage{ae}
\usepackage{fancyhdr}
\usepackage[pdftex]{graphicx}
\geometry{verbose,letterpaper,bmargin=2cm,tmargin= 2cm}
\pagestyle{fancy}
\title{Blækregning}
\author{Emil Jørsboe - 3.ax}
\fancyhead[LE,RO]{side \thepage $\ $/ \pageref{LastPage} -- \LaTeX}
\chead{}
\lhead{Emil Jørsboe}

localghost
09-01-2007, 17:19
You have forgotten to include a package within your preamble.

\usepackage{lastpage}
For further information refer to the documentation of lastpage (http://texcatalogue.sarovar.org/entries/lastpage.html).

bischi
09-01-2007, 21:47
And it would be useful to choose a better title next time - I just can't imagine what your problem is, when you just write "This warning".

Greetings,

Bischi

lo2
10-01-2007, 20:09
Hey thanks a lot! And next time I will make a better title!