% $Id: ex5.tex,v 1.2 2006/06/09 18:08:38 dan Exp $
%

\documentclass[11pt]{article}

\usepackage{makeidx}

\title{Example Document Number 5}
\author{Someone}
\date{\today}

\usepackage{fancyheadings}
\pagestyle{fancy}
\rhead{Indexed Doc}
\usepackage{hyperref}

\makeindex
\makeglossary

\begin{document}
\maketitle
\section{Introduction}
This document\glossary{a document} includes\index{documents, with index} an index.

\section{Section 2}
We index words\index{words, indexed} from this section too.

\section{Index}
\printindex

\section{Glossary}
%\printglossary

\end{document}

