diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-11 23:03:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-11 23:03:17 +0000 |
commit | ecf966f305f6aeff2bbdf42c82d8425921aa9eda (patch) | |
tree | db606a57e3619610e4c35cae849d41cf4e0937d5 /Master/texmf-dist/source/eplain/base/test/xref.tex | |
parent | ac3c55a3216b5988f0e48ba9414ddb059f19a699 (diff) |
source 1
git-svn-id: svn://tug.org/texlive/trunk@105 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/eplain/base/test/xref.tex')
-rw-r--r-- | Master/texmf-dist/source/eplain/base/test/xref.tex | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/eplain/base/test/xref.tex b/Master/texmf-dist/source/eplain/base/test/xref.tex new file mode 100644 index 00000000000..70096bd29e9 --- /dev/null +++ b/Master/texmf-dist/source/eplain/base/test/xref.tex @@ -0,0 +1,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 |