Last question for this evening:
I would like the matrix in the following to be given a number consistent with the other numebrs I am giving to my equations.
Code: Select all
\documentclass{article} % Your input file must contain these two lines
\usepackage{natbib}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{bm}
\usepackage{grffile}
\usepackage{graphicx}
\usepackage[%
font=small,
labelfont=bf,
figurewithin=section,
tablewithin=section,
tableposition=top
]{caption}
\numberwithin{equation}{section}
\begin{document} % plus the \end{document} command at the end
\parskip = 1pc %change spacing between paragraphs
\parindent = 0pc %change paragraph indentation
\begin{equation}
\[ \left[ \begin{array}{lllll}
1 & a_1 & a_1a_2 & a_1a_2a_3 & a_1a_2a_3a_4 \\
a_1 & 1 & a_2 & a_2a_3 & a_2a_3a_4 \\
a_1a_2 & a_2 & 1 & a_3 & a_3a_4 \\
a_1a_2a_3 & a_2a_3 & a_3 & 1 & a_4 \\
a_1a_2a_3a_4 & a_2a_3a_4 & a_3a_4 & a_4 & 1 \end{array} \right]\]
\end{equation}
\end{document}