Created
December 3, 2011 10:50
-
-
Save cereda/1426846 to your computer and use it in GitHub Desktop.
Rubber example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{book} | |
\usepackage{lipsum} | |
\usepackage{makeidx} | |
\makeindex | |
\begin{document} | |
\title{My first book} | |
\author{Paulo} | |
\date{\today} | |
\maketitle | |
\tableofcontents | |
\chapter{Hello world} | |
\label{chap:hw} | |
\lipsum[1] | |
\section{Hello John} | |
\label{sec:hj} | |
\lipsum[2-4] | |
\section{Hello Mary} | |
\label{sec:hm} | |
\lipsum[3-6] | |
John\index{Friends!John} said hello in Section~\ref{sec:hj}. | |
\chapter{Goodbye world} | |
\label{chap:gbw} | |
\lipsum[10] | |
In Chapter~\ref{chap:hw}, we said hello. Now it is time to say goodbye. | |
\section{Goodbye John} | |
\label{sec:gbj} | |
\lipsum[12-15] | |
Thanks Mary\index{Friends!Mary}. I know you will say goodbye in Section~\ref{sec:gbm}. | |
\section{Goodbye Mary} | |
\label{sec:gbm} | |
\lipsum[16-19] | |
\printindex | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment