diff --git a/lbol.tex b/lbol.tex index f74eeed..e41715c 100644 --- a/lbol.tex +++ b/lbol.tex @@ -315,6 +315,7 @@ It is possible to combine these. For example, to write \textit{\textsc{Italic te \section{Size Variations} + \section{Displaying Code} @@ -326,11 +327,22 @@ It is possible to combine these. For example, to write \textit{\textsc{Italic te \section{Horizontal Space} +\section{Phantoms} + +Sometimes you need to insert a blank space that is the width of a particular character or stretch of space. To do this, you will need to use the \texttt{phantom} command. + +\begin{itemize}[noitemsep] + \item \verb+\phantom+~ inserts an empty box with the same dimensions (horizontal as well as vertical) as the argument. + \item \verb+\hphantom+~ inserts an empty box that has zero height, zero depth, but the width of its argument. + \item \verb+\vphantom+~ inserts an empty box that has the height and depth of the argument, but zero width. +\end{itemize} + +\textit{height} is the length above the baseline and \textit{depth} is the length below the baseline. A character such as ``w'' will have a height but zero depth, and ``y'' has height as well as depth. + \section{Line Spacing} -\chapter{Formatting Pages -} +\chapter{Formatting Pages} \chapter{List Environments}