From d81f105b92ac2987d7f69bb0492a793111cf3ac5 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Sat, 28 Oct 2023 15:38:33 -0400 Subject: [PATCH] Added section on cross-referencing --- lbol.tex | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lbol.tex b/lbol.tex index 5c34be8..4b04858 100644 --- a/lbol.tex +++ b/lbol.tex @@ -929,6 +929,28 @@ The following array shows the difference between ordinary and ``nice'' fractions \section{Internal References} +To refer to something somewhere else in your document, you first have to label it using the \verb+\label{}+ command:\label{example1} + +\begin{Verbatim} +This is a line of text. \label{example1} +\end{Verbatim} + +To refer to it, you can use \verb+\ref{example1}+. This will insert either the section number, the page number, the equation number, or the figure number, depending on what you attached the label to. + +If you \textbf{must} refer to a page number, use \verb+\pageref{example1}+. + +\begin{Verbatim}[frame=lines,framesep=3mm, breaklines=true, label=\fbox{Cross-Referencing Example}] +Internal references (i.e., cross-references) are explained in section \ref{example1} on page \pageref{example1}. +\end{Verbatim} + +\noindent{}produces this output: + +\klab{8pt}{Cross-Referencing Example}{8pt} + +\noindent{}Internal references (i.e., cross-references) are explained in section \ref{example1} on page \pageref{example1}. + +\krule{8pt}{8pt} + \section{Bibliographies} \LaTeX{} has two major ways of handling bibliographies: an embedded system using the \texttt{bibitem} command, and an external system using \texttt{BibTeX}. Both systems have their advantages and disadvantages.