[OS X TeX] LastPage Reference
Roussanka Loukanova
rloukano at stp.lingfil.uu.se
Wed Mar 7 03:21:33 CET 2007
On Tue, 6 Mar 2007, Herbert Schulz wrote:
>>> \cfoot{\ifthenelse{\not\value{page}=\pageref{LastPage}}{\scriptsize
>>> (over)}}
>>>
>>> the \not is only acting on \value{page} and I believe you mean it to be
>>
>> Again, because Maurino's tex code typeset ok (I've ran it several times),
>> it looked to me that \not (number1 = number 2) has also abbreviated form
>> \not number1 = number 2. The documentation is more clear to me in this
>> aspect (than for the lasy evaluation). But they treat "number1 = number 2"
>> as a syntactic unit: atomic proposition, which hints to parsing of
>> \not number1 = number 2 as equivalent to \not (number1 = number 2).
>>
>>>
>>> \not{\value{page}=\pageref{LastPage}} as well as missing the extra {};
>>> i.e., it should be
>>>
>>> \cfoot{\ifthenelse{\not{\value{page}=\pageref{LastPage}}}{\scriptsize
>>> (over)}{}}
>>>
>>> which is the same as the simpler
>>>
>>> \cfoot{\ifthenelse{\value{page}=\pageref{LastPage}}{}{\scriptsize
>>> (over)}}.
>>
>> I think, it is; and I think that one would be on the safe side by following
>> the strict (and clear) syntax as you suggested. Esp. with the drawbacks of
>> the lazy evaluation (or may I just do not like it).
>>
>> Roussanka
>
> All I know is that I get different results if I define it one way or the
> other and I get the expected one if I include the braces: \not{...}.
This puzzles me. It seems to me, that I do get the same results with the
braces and without. I'm including the modifications that I've
tested (note the commented/uncommented lines: I switched them several
times each with 2-3 passes). Plus, a 2nd page.
Perhaps, another yet arbiter to help out this puzzle :)
Good night, for now.
Roussanka
=====
\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,dvipdfm]{hyperref} %% Bruno,
Sat, 3 Mar 2007 22:23:45, MacOSX-TeX
\usepackage[unicode,bookmarks,colorlinks]{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{lastpage} %%% Maurino Bautista, Mar 6, 2007, at 3:31 PM,
MacOSX-TeX
\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}}{\small \today}} %%%
Maurino Bautista, Mar 6, 2007, at 3:31 PM, MacOSX-TeX
\lfoot{\ifthenelse{\value{page}=\pageref{LastPage}}{\tiny \today}{}} %%%
Herb 6 Mar 2007 16:14:45 MacOSX-TeX
%\cfoot{\ifthenelse{\not\value{page}=\pageref{LastPage}}{\small (over)}}
%%% Maurino Bautista, Mar 6, 2007, at 3:31 PM, MacOSX-TeX
\cfoot{\ifthenelse{\not{\value{page}=\pageref{LastPage}}}{\scriptsize
(over)}{}} %%% Herb 6 Mar 2007 16:14:45 MacOSX-TeX
%\cfoot{\ifthenelse{\value{page}=\pageref{LastPage}}{}{\small (over)}} %%%
Herb 6 Mar 2007 16:14:45 MacOSX-TeX
\rfoot{} %%%%\rfoot{\thepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
Long URL:
\url{http://www.washingtonpost.com/wp-dyn/content/artsandliving/movies/?nav=left}
Another WEB address:
$<$\url{http://news.bbc.co.uk/2/hi/science/nature/6411991.stm}$>$
%%\end{document}
\newpage
Another yet WEB address:
\url{http://www.illustratedgarden.org/mobot/rarebooks/browse.asp}
Another another yet:
$<$\url{http://news.bbc.co.uk/2/hi/science/nature/6411991.stm}$>$
\end{document}
------------------------- 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