Added «nameref» package; updated into to «environments»

This commit is contained in:
Kenneth John Odle 2023-07-10 15:55:09 -04:00
parent 1f6e4fec71
commit e909a27e91

View File

@ -101,6 +101,9 @@
% Add custom widths to tables % Add custom widths to tables
\usepackage{array} \usepackage{array}
% Use chapter names in references
\usepackage{nameref}
% Include URLs, but hide the big red box it puts around them in the pdf. % Include URLs, but hide the big red box it puts around them in the pdf.
\usepackage[hidelinks]{hyperref} \usepackage[hidelinks]{hyperref}
@ -300,7 +303,11 @@ If you didn't use that construction, you would need to put a \% in front of each
\section{Environments} \section{Environments}
\noindent{} This is where \LaTeX{} shows its power, as environments are used to to take care of typesetting tasks. Every environment begins with \verb+\begin{<environ\\ment>}+ and ends with \verb+\end{<environment>}+. In fact, we've already seen one environment: the \texttt{document} environment, which encompasses our entire document. Here are a few other useful ones: \noindent{} This is where \LaTeX{} shows its power, as environments are used to to take care of typesetting tasks. Every environment begins with \verb+\begin{<environ+ \verb+ment>}+ and ends with \verb+\end{<environment>}+. In fact, we've already seen one environment: the \texttt{document} environment, which encompasses our entire document.
Many packages introduce additional environments. Here are a few useful ones that do not require additional packages:
\texttt{enumerate} and \texttt{itemize} are used for creating lists. See the chapter ``\nameref{listenv}'' on \pageref{listenv} for more information.
\chapter{Formatting Words} \chapter{Formatting Words}
@ -444,7 +451,7 @@ In most document classes, the ``chapter'' pages do not contain page numbers. If
\end{verbatim} \end{verbatim}
\chapter{List Environments} \chapter{List Environments}\label{listenv}
\section{Enumerate} \section{Enumerate}