All chapters two columns now
This commit is contained in:
parent
3845388ba8
commit
3edfc401ad
60
lbol.tex
60
lbol.tex
@ -222,6 +222,8 @@ These are listed roughly in the order of how often I consult them.
|
|||||||
|
|
||||||
\chapter{\LaTeX{} Basics}
|
\chapter{\LaTeX{} Basics}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\section{Files vs. Documents}
|
\section{Files vs. Documents}
|
||||||
|
|
||||||
In this book, I use the word \textit{file} to refer to the \texttt{.tex} file you are entering text and code into, whereas I use the word \textit{document} to refer to the output you get from processing that file, which is usually a \texttt{.pdf} file/document.
|
In this book, I use the word \textit{file} to refer to the \texttt{.tex} file you are entering text and code into, whereas I use the word \textit{document} to refer to the output you get from processing that file, which is usually a \texttt{.pdf} file/document.
|
||||||
@ -369,8 +371,13 @@ If the use of \verb|\iffalse| and \verb|\fi| is not intuitive to you, you can al
|
|||||||
|
|
||||||
Many packages introduce additional environments. For other useful environments that do not require additional packages (but which can easily be expanded upon by other packages), please see the chapter ``\nameref{specenv}'' on page \pageref{specenv} for more information.
|
Many packages introduce additional environments. For other useful environments that do not require additional packages (but which can easily be expanded upon by other packages), please see the chapter ``\nameref{specenv}'' on page \pageref{specenv} for more information.
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Formatting Words}
|
\chapter{Formatting Words}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\section{Font Variations}
|
\section{Font Variations}
|
||||||
|
|
||||||
\LaTeX{} has various ways of formatting type:
|
\LaTeX{} has various ways of formatting type:
|
||||||
@ -465,9 +472,13 @@ Note that all of these sizes are relative to the base size you set up in your pr
|
|||||||
|
|
||||||
For more information, see the section ``\nameref{codeexp}'' on page \pageref{codeexp}.
|
For more information, see the section ``\nameref{codeexp}'' on page \pageref{codeexp}.
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Formatting Paragraphs}
|
\chapter{Formatting Paragraphs}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\section{Alignment}
|
\section{Alignment}
|
||||||
|
|
||||||
By default, \LaTeX{} fully justifies text. That is, there are equal margins for each line on both the left and the right sides.
|
By default, \LaTeX{} fully justifies text. That is, there are equal margins for each line on both the left and the right sides.
|
||||||
@ -703,9 +714,13 @@ To insert a space that is the same width as your paragraph indentation, you can
|
|||||||
\hspace{\parindent}
|
\hspace{\parindent}
|
||||||
\end{Verbatim}
|
\end{Verbatim}
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Formatting Pages}
|
\chapter{Formatting Pages}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\section{Page Size}
|
\section{Page Size}
|
||||||
|
|
||||||
The usual way to define a page size is to pass it as an option to the document class:
|
The usual way to define a page size is to pass it as an option to the document class:
|
||||||
@ -843,9 +858,13 @@ In most document classes, the ``chapter'' pages do not contain page numbers. If
|
|||||||
\item Need to control the gap between the header and the rest of the text? Pass the \verb|headsep| argument to the \texttt{geometry} package and set it equal to the amount of space you need (i.e., \texttt{headsep=12pt}).
|
\item Need to control the gap between the header and the rest of the text? Pass the \verb|headsep| argument to the \texttt{geometry} package and set it equal to the amount of space you need (i.e., \texttt{headsep=12pt}).
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Basic List Environments}\label{listenv}
|
\chapter{Basic List Environments}\label{listenv}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
A list is a series of items that are related solely by being a subset of something else. Their relationship may be ordered or unordered. Ordered lists are usually numbered (although other items can be used, such as letters), and unordered lists usually use a symbol, such as a bullet, to denote each items.
|
A list is a series of items that are related solely by being a subset of something else. Their relationship may be ordered or unordered. Ordered lists are usually numbered (although other items can be used, such as letters), and unordered lists usually use a symbol, such as a bullet, to denote each items.
|
||||||
|
|
||||||
Lists in \LaTeX{} can be nested, as the following examples will show.
|
Lists in \LaTeX{} can be nested, as the following examples will show.
|
||||||
@ -971,8 +990,13 @@ You can replace the bullets with any math symbol availabe in \LaTeX{} like this:
|
|||||||
\end{itemize}
|
\end{itemize}
|
||||||
\krule{0mm}{2mm}
|
\krule{0mm}{2mm}
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Special Environments}\label{specenv}
|
\chapter{Special Environments}\label{specenv}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\LaTeX{} includes a number of built-in environments which are useful out-of-the-box, but can often be improved upon by adding additional packages. In this chapter, we'll take a look at some of them, and examine how other packages extend their functionality.
|
\LaTeX{} includes a number of built-in environments which are useful out-of-the-box, but can often be improved upon by adding additional packages. In this chapter, we'll take a look at some of them, and examine how other packages extend their functionality.
|
||||||
|
|
||||||
\section{Code Blocks}\label{codeexp}
|
\section{Code Blocks}\label{codeexp}
|
||||||
@ -1093,9 +1117,13 @@ produces this example:
|
|||||||
|
|
||||||
\noindent{}I can probably live with that. Probably.
|
\noindent{}I can probably live with that. Probably.
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Tables}
|
\chapter{Tables}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
Tables in \LaTeX{} are often confusing to beginners, because there are two environments that are not quite what they seem. The \texttt{tabular} environment is used to create a table, (i.e., it contains \textit{tabular} data) while the \texttt{table} environment is a float that surrounds the table and can contain a caption.
|
Tables in \LaTeX{} are often confusing to beginners, because there are two environments that are not quite what they seem. The \texttt{tabular} environment is used to create a table, (i.e., it contains \textit{tabular} data) while the \texttt{table} environment is a float that surrounds the table and can contain a caption.
|
||||||
|
|
||||||
\section{Built-in Table Environments}
|
\section{Built-in Table Environments}
|
||||||
@ -1324,9 +1352,13 @@ Fish & Chips & Mushy Peas \\
|
|||||||
|
|
||||||
The typical way of doing this requires use of the \Verb+\multicolumn+ command (which requires you to load the \texttt{multirow} package), and it requires that omitted cells must be empty. This is not the case with \texttt{tabularray}, however. As you can see from the source code, the words ``Meatballs'' and ``Fish'' have simply been omitted from the resulting table. We are also able to change the horizontal alignment by specifying it after we specify how many rows or columns to span. (I have found that if you do not specify an alignment, you still need to include an empty set of curly brackets or \LaTeX{} will throw out an error.)
|
The typical way of doing this requires use of the \Verb+\multicolumn+ command (which requires you to load the \texttt{multirow} package), and it requires that omitted cells must be empty. This is not the case with \texttt{tabularray}, however. As you can see from the source code, the words ``Meatballs'' and ``Fish'' have simply been omitted from the resulting table. We are also able to change the horizontal alignment by specifying it after we specify how many rows or columns to span. (I have found that if you do not specify an alignment, you still need to include an empty set of curly brackets or \LaTeX{} will throw out an error.)
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Math in \LaTeX{}}\label{ch:math}
|
\chapter{Math in \LaTeX{}}\label{ch:math}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\LaTeX{} has two environments that are useful for typesetting math: (\texttt{align} and \texttt{array}. In addition, there are other packages (in particular \texttt{amsmath} and \texttt{mathtools}) that greatly extend the power of LaTeX to handle mathematical typesetting, but they are beyond the scope of this book.
|
\LaTeX{} has two environments that are useful for typesetting math: (\texttt{align} and \texttt{array}. In addition, there are other packages (in particular \texttt{amsmath} and \texttt{mathtools}) that greatly extend the power of LaTeX to handle mathematical typesetting, but they are beyond the scope of this book.
|
||||||
|
|
||||||
\section{Math Entry Modes}\label{math-entry-modes}
|
\section{Math Entry Modes}\label{math-entry-modes}
|
||||||
@ -1535,9 +1567,13 @@ The following array shows the difference between ordinary and ``nice'' fractions
|
|||||||
|
|
||||||
\end{array}\]
|
\end{array}\]
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Images}\label{ch:images}
|
\chapter{Images}\label{ch:images}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
You can use images in \LaTeX{}, but it requires the \texttt{graphicx} package, as this is not something that \LaTeX{} can handle on its own. You will need to include this line in your preamble:
|
You can use images in \LaTeX{}, but it requires the \texttt{graphicx} package, as this is not something that \LaTeX{} can handle on its own. You will need to include this line in your preamble:
|
||||||
|
|
||||||
\begin{Verbatim}[]
|
\begin{Verbatim}[]
|
||||||
@ -1734,9 +1770,13 @@ o & O & Outside edge of a \texttt{twoside} document
|
|||||||
|
|
||||||
\noindent{}Use the lowercase version of the parameter when you want to place the figure at the same point in your document that it is in your file. Use the uppercase version when you want to let it float.
|
\noindent{}Use the lowercase version of the parameter when you want to place the figure at the same point in your document that it is in your file. Use the uppercase version when you want to let it float.
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{References}\label{ch:referencing}
|
\chapter{References}\label{ch:referencing}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\section{Internal (Cross) References}
|
\section{Internal (Cross) References}
|
||||||
|
|
||||||
To refer to something somewhere else in your document, you first have to label it using the \verb+\label{}+ command:\label{example1}
|
To refer to something somewhere else in your document, you first have to label it using the \verb+\label{}+ command:\label{example1}
|
||||||
@ -1785,9 +1825,13 @@ bibtex build/lbol
|
|||||||
|
|
||||||
\paragraph{Note:} If the bibliography tools that are built into \LaTeX{} seem like overkill to you, consider whether or not your document actually \textit{needs} a bibliography. I could have done it for this book, but it made much more sense to me to simply add links in footnotes. If you are writing for a publication, or writing a thesis or dissertation, you will need to follow the style guide provide. But in most other circumstances, the choice will be yours.
|
\paragraph{Note:} If the bibliography tools that are built into \LaTeX{} seem like overkill to you, consider whether or not your document actually \textit{needs} a bibliography. I could have done it for this book, but it made much more sense to me to simply add links in footnotes. If you are writing for a publication, or writing a thesis or dissertation, you will need to follow the style guide provide. But in most other circumstances, the choice will be yours.
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Macros}
|
\chapter{Macros}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\section{New Commands}
|
\section{New Commands}
|
||||||
|
|
||||||
If you often use a group of commands together, you can group them into a single command by using the \verb+\newcommand[]{}+ command in the preamble.
|
If you often use a group of commands together, you can group them into a single command by using the \verb+\newcommand[]{}+ command in the preamble.
|
||||||
@ -1818,8 +1862,13 @@ and to use it, you would enter
|
|||||||
|
|
||||||
This means less typing, but you are always restricted to using the same units.
|
This means less typing, but you are always restricted to using the same units.
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Installation}
|
\chapter{Installation}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\section{Installing \LaTeX{}}
|
\section{Installing \LaTeX{}}
|
||||||
|
|
||||||
Nope. I'm not going to discuss this subject, because this would make this a very long book, and it would also make it a quickly outdated and inaccurate book. Your best approach would be to do a web search for your operating system + ``\texttt{install latex}''. If you want a GUI (and who doesn't?), search for your operating system + ``\texttt{install latex gui}''.
|
Nope. I'm not going to discuss this subject, because this would make this a very long book, and it would also make it a quickly outdated and inaccurate book. Your best approach would be to do a web search for your operating system + ``\texttt{install latex}''. If you want a GUI (and who doesn't?), search for your operating system + ``\texttt{install latex gui}''.
|
||||||
@ -1900,9 +1949,13 @@ $ cp * ~/texmf
|
|||||||
$ texhash ~/texmf
|
$ texhash ~/texmf
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Miscellaneous}
|
\chapter{Miscellaneous}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\section{Special Characters in \LaTeX{}}
|
\section{Special Characters in \LaTeX{}}
|
||||||
|
|
||||||
There are ten characters that have special meaning in \LaTeX{}. To typeset:
|
There are ten characters that have special meaning in \LaTeX{}. To typeset:
|
||||||
@ -2015,11 +2068,13 @@ Variable sized proportional to & $\varpropto$ & & \Verb +$\varpropto$+ \\
|
|||||||
Wedge & $\wedge$ & & \Verb+$\wedge$+ \\
|
Wedge & $\wedge$ & & \Verb+$\wedge$+ \\
|
||||||
\end{longtblr}
|
\end{longtblr}
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
|
|
||||||
\chapter{Troubleshooting}
|
\chapter{Troubleshooting}
|
||||||
|
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
\section{Minimal Working Examples}
|
\section{Minimal Working Examples}
|
||||||
|
|
||||||
In particular with \LaTeX{}, it can help if you create an MWE (minimal working example) when working with new things, to rule out interference from other bits of code.
|
In particular with \LaTeX{}, it can help if you create an MWE (minimal working example) when working with new things, to rule out interference from other bits of code.
|
||||||
@ -2074,10 +2129,13 @@ In general, a good question has three parts:
|
|||||||
|
|
||||||
\bigskip
|
\bigskip
|
||||||
|
|
||||||
|
\end{multicols}
|
||||||
|
|
||||||
\begin{center}
|
\begin{center}
|
||||||
\Pisymbol{dingbat}{69}\Pisymbol{dingbat}{70}\linebreak
|
\Pisymbol{dingbat}{69}\Pisymbol{dingbat}{70}\linebreak
|
||||||
{\large \textsc{Fin}}\linebreak
|
{\large \textsc{Fin}}\linebreak
|
||||||
\Pisymbol{dingbat}{72}\Pisymbol{dingbat}{71}
|
\Pisymbol{dingbat}{72}\Pisymbol{dingbat}{71}
|
||||||
\end{center}
|
\end{center}
|
||||||
|
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
Loading…
Reference in New Issue
Block a user