Recently tried to compiled some files that used to compile perfectly, but now, generates an error whenever I try to align elements within bmatrix (same for pmatrix, or Vmatrix, etc.), using [] as the option.
In the MWE (below), I'm trying to righht-align the elements of the matrix. The error (for this example) doesn't cause LaTeX (MikTeX under Win 10) to complain, but there is clearly an error in the generated output (example attached), below the MWE.
So, are the alignment options for things like bmatrix no longer supported (i.e., [c], or [l], or [r])? If they are, there must be a syntax change somewhere I need to implement. If not, how the heck to get there from here? In some of my files, I have lots of these sorts of matrices, and I rather need to suss out a solution to this problem.
\documentclass[11pt,letterpaper,oneside]{article}
\usepackage[dvips,top=1.2in,bottom=0.65in,left=1.15in,right=1.15in,includefoot]{geometry}
\usepackage{amsmath}
\usepackage{mathtools}
\begin{document}
Here is some code that used to compile without error:
\[
\begin{bmatrix}[r]
1 & 2 & 1 \\
0 & -2 & -3 \\
0 & 3 & -2
\end{bmatrix}
\]
\end{document}
I you compile the MWE (above), this is what gets generated (at least, at my end) -- the [r] for algin right isn't being parsed as an option for bmatrix - rather, the [r] is now imbedded in the matrix itself (which is not the desired outcome).
Thanks much in advance...
\begin{bmatrix*}[r]
with\usepackage{mathtools}
.bmatrix
. Avoid it and use themathtools
way.