summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/eplain/base/test/xref.tex
blob: 70096bd29e935f9db17a17619646201332737b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% This file is public domain.
%
% Test file for cross-references.
% 
\ifx\undefined\eplain \input eplain \fi

\catcode`\_ = 2

defining ``foo bar'':
\xrdef{foo bar}.

and also a `sect' (make that word `Section') label `s' to be `3.1':
\definexref{s}{3.1}{sect}.
\def\sectword{Section}

Let's also define two labels with a numbers, ``label1'' and ``label2'':
\xrdef{label1}\xrdef{label2}

\vfill\eject

defining ``foo baz''.
\xrdef{foo baz}
\vfill\eject

Define something with all the other characters, including unprintable
ones: \xrdef{1234567890)(@!`['";:]|<>,./?À-=+}.


using everything (these should be page 1 and page 2):
\xref{foo bar} and \xref{foo baz}.

And now the ones with numbers (page 1): \xref{label1} and \xref{label2}.

And now the weird one (page 3): \xref{1234567890)(@!`['";:]|<>,./?À-=+}.

ref, refn, and refs on s: \ref{s}, \refn{s}, \refs{s}.

And an undefined one: \xref{undefined}.
\end