[OS X TeX] LastPage Reference
Alain Matthes
alain.matthes at mac.com
Fri Mar 9 22:55:28 EST 2007
I give a try to ( the first code ) (it works fine)
\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}
with gwtex based on TL2007 .
i prefer
\ifthenelse{\value{page}=\pageref{LastPage}}{\tiny\today}{}
\ifthenelse{\not\value{page}=\pageref{LastPage}}{\scriptsize (over)}{}
the structure : \ifthenelse{\}{}{} is for me more current but
the text is good too
I don't understand the latest version 2.10Beta ? of what you can put a
a package in your texmf personnal if it's necessarry !
greetings
Alain
------------------------- 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 MacOSX-TeX
mailing list