Move a tag
[latex2e.git] / latex2e-20160201 / required / babel / testfiles / tlb3224.lvt
blobb336cbb0f7e9e35062ae7bc2f3147bf7d554ffa4
1 \iffalse
2 >Number:         3224
3 >Synopsis:       \pageref in second/third argument of \ifthenelse
4 >Arrival-Date:   Thu Jun 22 11:41:05 2000
5 >Originator:     oberdiek@ruf.uni-freiburg.de (Heiko Oberdiek)
6 >Release:        LaTeX2e <1999/12/01> patch level 1
7 >Environment:
8  Hyphenation: standard
9  \@TeXversion: undefined (Standard setting for TeX3.141 and later)
10  \@currdir: macro:->./
11  \input@path: undefined (Standard setting)
12 >Description:
13 Description of bug:
14 For the first argument of \ifthenelse \pageref has to be
15 redefined, in order to make it expandible. But the
16 redefinition of \pageref does also have an effect in the
17 second and third argument of \ifthenelse. Here \pageref
18 should have its normal meaning.
19 \fi
20 \input{test2e}
22 \documentclass{article}
24 \START
25 \FORMAT{LaTeX2e<1999/12/01>}
26 \CLASS{article}
27 \AUTHOR{oberdiek@ruf.uni-freiburg.de (Heiko Oberdiek)}
28 \PACKAGE{ifthen}
29 \PACKAGE[german]{babel}
31 \OMIT
32 \usepackage{ifthen}
33 \usepackage[german]{babel}
34 \def\testit#1{%
35   \setbox0=\hbox{#1}\showbox0}
36 \begin{document}
37 \TIMO
38 \showboxbreadth=50\showboxdepth=50
39 \label{first:one}
40 \testit{See \pageref{first:one}} % works
42 \testit{\ifthenelse{\equal{a}{a}}{See \pageref{first:one}}{}}
43 % did not work, because of wrong meaning of \pageref
45 \typeout{* Before nested \string\ifthenelse: \meaning\pageref}
46 \testit{See \pageref{first:one}}% works
48 \testit{\ifthenelse{\equal{a}{a}}{%
49   \ifthenelse{\equal{b}{b}}{}{}%
50 }{}}
52 \typeout{* After nested \string\ifthenelse: \meaning\pageref}
53 See \pageref{first:one}
54 % did not work here,
55 % because \pageref has now the meaning
56 % of \org@pageref
57 \end{document}