I would like to write the dimensions of a matrix below the matrix itself, but I managed only to either:
- write the dimensions below the matrix with underbrace (see matrix A in my code)
- write the dimensions as a subscript of the matrix (see matrix B in my code)
What I want is (1) but without any underbrace sign, and possibly the n*n written in a smaller font. I attach below a MWE
\documentclass{beamer}
\usepackage{amssymb}
\usepackage{mathpazo}
\usepackage{multimedia}
\usepackage{amsfonts}
\usepackage{amsmath}
\setcounter{MaxMatrixCols}{10}
\title{Title}
\subtitle{Subtitle}
\author{Author}
\date{}
\institute[Universities Here and There]{Your Institution}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Introduction}
\begin{frame}\frametitle{Write dimensions below matrix}
\begin{center}
$
\begin{bmatrix}
\underbrace{A}_{n\times n} & B_{n\times n} \\
C & D%
\end{bmatrix}%
$
\end{center}
\end{frame}
\end{document}