[Tex/LaTex] How to typeset a 2×2 matrix in an inline equation

amsartequationsmatrices

Consider:

 \documentclass[12pt]{amsart}
 \usepackage{tikz}
 \begin{document}
 \subsection {\bfseries Shembulli i dyte, Matrica.} 
 Konsiderojm matricen
 \begin{equation*} 
 a = \begin{pmatrix}1 & 1\\ 0 & 1\end{pmatrix}
 \end{equation*}. 
 Per ndonje e numer te tipit integjer n do te kemi formen e pergjitheshme: 
 \end{document}

This equation: {equation*} a = \begin{pmatrix}1 & 1\\ 0 & 1\end{pmatrix}\end{equation*}

Best Answer

You could use the smallmatrix environment for inline math use:

enter image description here

 \documentclass[12pt]{amsart}
 \begin{document}
 \setcounter{section}{1} % just for this example
 \subsection{Shembulli i dyte, Matrica.}
 Konsiderojm matricen 
 $a = \bigl( \begin{smallmatrix}1 & 1\\ 0 & 1\end{smallmatrix}\bigr)$.
 Per ndonje e numer te tipit integjer n do te kemi formen e pergjitheshme:
 \end{document}