I want to write a 12x12 matrix in beamer but the last 2 row elements get printed in another line. I've only included one of the rows here to demonstrate the problem but I have the same issue with the entire matrix.
I tried scaling the equation but it didn't help.
\begin{frame}{Major Diatonic Matrix}
$$
S = \begin{pmatrix}
1 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 1 & 0 & 1 & 0 \\
\end{pmatrix}
$$
\end{frame}
And this is how it looks like within the frame:


MaxMatrixCols:\setcounter{MaxMatrixCols}{12}; see How to use more than 10 tab stops inbmatrixor otheramsmathmatrix environments? – Werner Dec 26 '20 at 19:18