I just spent a couple of hours finding the reason for compiling errors in the last example in here:
\documentclass[a4paper,draft=true, headsepline=on, twoside
, 11pt,
]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
%matrix environment redef
\makeatletter
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
\hskip -\arraycolsep
\let\@ifnextchar\new@ifnextchar
\array{#1}}
\makeatother
\begin{document}
\begin{equation*}
\begin{bmatrix}
& b
\end{bmatrix}
\end{equation*}
\begin{align*}
\begin{bmatrix}
~ & b
\end{bmatrix}
\end{align*}
\begin{align*}
\begin{array}{cc}
& b
\end{array}
\end{align*}
\begin{align*}
\begin{bmatrix}
& b
\end{bmatrix}
\end{align*}
\end{document}
The error does not appear if I do not redefine bmatrix environment like discussed here: How does this macro for augmented matrices work?
However, the errors only seam to appear in this special case of using the align environment with a matrix that has empty entries in first column. Do you understand where these errors come from? I have no idea, but this could certainly help later on if similar problems occur.
amsmath2.0 (1999). our bugs list says that a "tech note" was issued, but i can't find it; if you could review 'technotes.tex` and make suggestions, i'd appreciate it. – barbara beeton May 31 '15 at 13:15