[OS X TeX] LastPage Reference

Maurino Bautista maobautista at gmail.com
Tue Mar 6 22:31:07 CET 2007


I copied the following code from Roussanka's posting which works
properly. I added the lines marked with %%%  and I commented the right
footer command. I now get the following error:

AED: lastpage setting LastPage
! Missing number, treated as zero.
<to be read again>
                   \protect
l.46 \end{document}

Anybody knows what is wrong? All I know is that the package hyperref
uses (or modifies-redefines-omits?? ) the LastPage reference.

Here is Roussanka's code with the modifications:

***********************************************************************************************************************************

\documentclass[12pt]{article}

\usepackage[total={6.5in,9.3in},top=1in, left=1in]{geometry} %%%

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{textcomp}

\usepackage{url}
\usepackage[unicode,bookmarks,colorlinks]{hyperref}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\pagestyle{fancy}

\usepackage{lastpage} %%%
\usepackage{ifthen} %%%

\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}

\addtolength{\headheight}{14pt} % space for the rule
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\lhead{\small Roussanka Loukanova \hfill
$<$\href{mailto:rloukano at stp.lingfil.uu.se}%
{rloukano at stp.lingfil.uu.se }$>$}

\chead{}
\rhead{}
\lfoot{\ifthenelse{\value{page}=\pageref{LastPage}}{\tiny\today}} %%%
\cfoot{\ifthenelse{\not\value{page}=\pageref{LastPage}}{\scriptsize (over)}} %%%
%\rfoot{\thepage}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

Long URL:

\url{http://science.nasa.gov/headlines/y2007/12feb_lunareclipse.htm }

Another WEB address:

$<$\url{http://news.bbc.co.uk/2/hi/science/nature/6411991.stm}$>$

\end{document}

***********************************************************************************************************************************
-- 
Maurino P. Bautista, Ph.D.
Professor of Mathematics
(585)-475-6122
maobautista at gmail.com

School of Mathematical Sciences
Rochester Institute of Technology
85 Lomb Memorial Drive
Rochester, NY 14623

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list