Small edits for space

This commit is contained in:
Kenneth John Odle 2023-10-26 12:00:02 -04:00
parent 0943b55bb6
commit 0f05adfaa7

View File

@ -199,7 +199,7 @@ In this book, I use the word \textit{file} to refer to the \texttt{.tex} file yo
\section{Files}
\LaTeX{} uses plain files with a file extension of \texttt{.tex}. That's it! They contain plain text only and no binary codes or hidden formatting extensions. (Try opening any word processing document in a text editor and see what I mean here.) You can use any text editor, although a GUI is available for most operating systems.
\LaTeX{} uses plain files with a file extension of \texttt{.tex}. That's it! They contain plain text only and no binary codes or hidden formatting extensions. You can use any text editor, although a GUI is available for most operating systems.
\section{File Structure}
@ -214,7 +214,7 @@ If you are familiar with \texttt{html}, these correspond roughly to the \texttt{
\subsection{The Preamble}
Within the preamble, you can declare the document's \textit{class}, which is a description of the type of document you are creating. The most common classes are \texttt{article}, \texttt{report}, \texttt{book}, \texttt{memoir}, and \texttt{beamer} (for presentations). A typical class declaration looks like:
Within the preamble, you can declare the document's \textit{class}, which is a description of the type of document you are creating. The most common classes are summarized in section \ref{sec:document-classes}. A typical class declaration looks like:
\begin{Verbatim}
\documentclass[twoside]{report}
@ -254,9 +254,9 @@ Notice that we have the option \texttt{[Books]} which describes how this chapter
\kpic{1}{standalone/build/book*}
For best results, stick to the hierarchical structure shown above, as this is also how each section will be numbered. See the table of contents of this zine as an example.
For best results, stick to the hierarchical structure shown above, as this is also how each section will be numbered. See the table of contents of this booklet as an example.
\section{Document Classes}
\section{Document Classes}\label{sec:document-classes}
The different types of document classes help you build a specific type of document. Here is a brief description of the most common classes:
@ -280,7 +280,7 @@ The different types of document classes help you build a specific type of docume
\hline
\textbf{letter} & For writing letters \\
\hline
\textbf{exam} & Exams and quizzes \\
\textbf{exam} & For producing exams and quizzes \\
\hline
\textbf{proc} & For writing meeting proceedings \\
\hline
@ -696,7 +696,7 @@ The problem with this approach is that \LaTeX{} will attempt to execute any comm
As usefule as \verb+\verb+ is, it has one drawback: it does not wrap. That is, if whatever you place between the delimiters is longer than the line length, it will simply go off the page. Here's an example: \verb+verb|This text is longer than the line length and will simply go off the page|+.
The only way around that is to break that text into two part like this:
The only way around that is to break that text into two parts like this:
\begin{verbatim}
\verb|This text is longer| \\ \verb|than the line length and w
@ -705,7 +705,7 @@ ill simply go off the page|
It works, but it's clunky. If you change anything around those two \texttt{verb} commands, you'll need to adjust what is contained within each of them.
For longer code examples, you will need to use the built-in environment \texttt{verbatim}. To gain more control over those environments, you will need to use the package \texttt{fancyvrb}. Need even more control than the \texttt{fancyvrb} package gives you? Try the \texttt{fvextra} package. (I used it because it very nicely breaks lines inside this environment.)
For longer code examples, you will need to use the built-in environment \texttt{verbatim}. To gain more control over those environments, you will need to use the package \texttt{fancyvrb} (which uses the \texttt{Verbatim} environment—note the capital letter). Need even more control than the \texttt{fancyvrb} package gives you? Try the \texttt{fvextra} package. (I used it because it very nicely breaks lines inside this environment.)
\section{Quotations}