Added «array» section

This commit is contained in:
Kenneth John Odle 2023-07-31 15:51:23 -04:00
parent ca42d058cd
commit a524eda084

View File

@ -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. 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} \begin{align}
a_1& =b_1+c_1\\ a_1& =b_1+c_1\\
a_2& =b_2+c_2-d_2+e_2 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} \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} \section{Special Math Environments}