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 55 56 57 58 59 60 61 62 63 64 65 66
|
% $Id: 20-complexdoc.tex 37 2007-09-25 20:02:31Z andrew $
% Test input file for checking complete document with references, table of contents,
% included file, bibliography and index
% Do not make gratuitous changes here as the text is checked by the
% test script 20-complexdoc.t.
\documentclass{article}
\usepackage{makeidx}
\usepackage{lastpage}
\bibliographystyle{alpha}
\date{20 September 2007}
\author{A.N. Other}
\title{Complex Test Document 20}
\makeindex
\begin{document}
\maketitle
\tableofcontents
\pagebreak
\section{Introduction}
This is a test document with all features.
The document has \pageref{LastPage} pages.
\pagebreak
\section{Forward Reference}
Here is a reference to page~\pageref{otherpage}.
\pagebreak
\section{File Inclusion}
Here we include another f{}ile.
It will start on the next page.
\include{testinc}
\input{testinc2}
\pagebreak
\section{Bibliographic Citations}
We reference the Badger book\cite{wardley-ptt-2003} and the Camel book\cite{wall-perl-2000}.
\pagebreak
\section{Index Term}
Here is the def{}inition of the index term `xyzzy'.
\index{xyzzy}
\pagebreak
\section{Label definition}
This is the other page\label{otherpage} referenced elsewhere.
\pagebreak
\bibliography{testbib}
\pagebreak
\printindex
\section{Colophon}
This is evil -- we are def{}ining index terms after the index.
\index{xyzzy2}
\end{document}
|