Move a tag
[latex2e.git] / latex2e-20160201 / required / babel / testfiles / tlb3859.lvt
blobce6c1d8876fd563fea31a82e07631c6a3952d168
2 \input{test2e}
3 \documentclass{book}
4 \START
5 \FORMAT{LaTeX2e <2009/09/24>}
6 \CLASS{books}
8 \PACKAGE[english]{babel}
9 \showboxbreadth=50
10 \showboxdepth=50
11 \def\testit#1{%
12   \setbox0=\vbox{#1}\showbox0}
13 \OMIT
15 \usepackage{ifthen}
16 \usepackage[english]{babel}   % does not import which language
18 \makeatletter
19 \newcommand{\REF}{}
20 \newcommand{\SEE}[1]{%
21  \renewcommand\REF{\ref{#1}}%
22  \ifthenelse{\equal{\@currentlabel}{\REF}}%
23    {(in this section)}{(see section~\ref{#1})}
25 \makeatother
27 \begin{document}
29 \chapter{Introduction}
31 \section{One}
32 \label{sec:one}
34 \TIMO
35 \testit{bla \SEE{sec:one}}
36 \OMIT
37 \section{Two}
39 \TIMO
40 \testit{bla bla \SEE{sec:one}}
41 \OMIT
43 \end{document}