1 % Test file for LaTeX2e/Babel bug report 2253
2 % Conflict between babel and ifthen. The construction \isodd{\pageref{key}}
3 % does not work when babel is active.
6 \documentclass{article}
8 \AUTHOR{jl@mmf.ruc.dk (J\o rgen Larsen)}
9 \FORMAT{LaTeX2e <1995/12/01>}
11 \PACKAGE[english]{babel}
15 \usepackage[english]{babel}
16 \RequirePackage{ifthen}
18 \newcommand*{\mytest}[1]{%
19 \ifthenelse{\equal{\pageref{#1}}{\arabic{page}}}
20 {TRUE\wlog{TRUE}}{FALSE\wlog{FALSE}}}
27 I expect this to return True,
29 but in fact it returns False: \mytest{stk1}.
33 The problem is related to the newline char in the definition
34 of \verb!\pageref! in the file latex.ltx,
35 because if I take the definition of \verb!\pageref!
36 and remove the newline char, things work
40 %\def\pageref#1{\expandafter\@setref\csname r@#1\endcsname%
43 %Now it returns True: \mytest{stk1}.
45 %The Babel package is essential for the problem:
46 %if it is not loaded, everything works fine !