Added section on cross-referencing

This commit is contained in:
Kenneth John Odle 2023-10-28 15:38:33 -04:00
parent 2a13cf9da8
commit d81f105b92

View File

@ -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.