summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/crossreference/xrefexample.tex
blob: 54ea437bec119d2ba0559fd94de97d9e2fa166a2 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%%
%% This is file `xrefexample.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% crossreference.dtx  (with options: `example')
%% 
%% Crossreferencing for technical documents.
%% 
%% Copyright 2001  Vincent Filby (vfilby@acm.org), all rights reserved.
%% 
%% This program may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.2
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%% 
%% This program consists of the files; crossreference.dtx, crossreference.ins
%% and README.
%% 
\def\fileversion{1.0}
\def\filedate{2001/05/19}
\def\docdate{2001/05/19}
\documentclass{article}

\usepackage{crossreference}

\begin{document}

\section{Animals}
\addxref{Animals}
Animals can eat other animals\xref{Animals} or plants\xref{Plants}.

\section{Plants}
\addxref{Plants}
Plants are mostly green and are eaten by Animals\xref{Animals}.

\section{Books and Writings}
\addxref{Books and Writings}
Books and writings are general not read by animals\xref{Animals} or plants\xref{Plants}.

\section{Humans}
Humans can read books and writings\xref{Books and Writings}.
\newpage
\section{Cross-References}
\crossreferences

\end{document}
\endinput
%%
%% End of file `xrefexample.tex'.