From a524eda08419678fffd3dc2f7c242661e8aa38e4 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Mon, 31 Jul 2023 15:51:23 -0400 Subject: [PATCH] =?UTF-8?q?Added=20=C2=ABarray=C2=BB=20section?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lbol.tex | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/lbol.tex b/lbol.tex index 9a1c1d6..bd56e1e 100644 --- a/lbol.tex +++ b/lbol.tex @@ -808,7 +808,7 @@ You can use the \texttt{align} environment to typeset long equations and formula Break your lines with \verb+\\+ and use \$ to show where the equations should align. -\begin{Verbatim}[frame=lines, numbers=left, xleftmargin=5mm, framesep=3mm, breaklines=true, label=\texttt{align} Example] +\begin{Verbatim}[frame=lines, numbers=left, xleftmargin=5mm, framesep=3mm, breaklines=true, label=align Example] \begin{align} a_1& =b_1+c_1\\ a_2& =b_2+c_2-d_2+e_2 @@ -845,6 +845,31 @@ A couple of things to note: \section{The \texttt{array} Environment} +You can typeset matrices and other similar objects using an \texttt{array} environment. A couple of things to note: + +\begin{itemize}[noitemsep] + \item \texttt{array} can only be used in a math environment. + \item You must declare the number and alignment of the columns by using \verb+\begin{array}{ccl}+. In this instance, we are declaring two centered columns and one left-aligned column. +\end{itemize} + +\begin{Verbatim}[frame=lines, numbers=left, xleftmargin=5mm, framesep=3mm, breaklines=true, label=array Example] +\[ +Zoo~animals = \left\{ \begin{array}{crl} +lion & tiger & gnu \\ +elephant & zebra & kangaroo \\ +bear & camel & wallaby +\end{array}\right\} +\] +\end{Verbatim} + + +\[ +Zoo~animals = \left\{ \begin{array}{crl} +lion & tiger & gnu \\ +elephant & zebra & kangaroo \\ +bear & camel & wallaby +\end{array}\right\} +\] \section{Special Math Environments}