I am getting the "Missing $ inserted \begin{pmatrix}" error in the following code





\tilde{\sigma}_{11} & \dots & \tilde{\sigma}_{1d}\\
\vdots & \vdots & \vdots \\
\tilde{\sigma}_{d1} & \dots & \tilde{\sigma}_{dd}

The pmatrix environment must occur in math mode: either inline math mode or (more likely) display math mode.

The following code should compile just fine.

\usepackage{amsmath} % for 'pmatrix' environment
\newcommand\tsigma{\tilde{\sigma}} % handy shortcut macro

\[ % enter display math mode
\tsigma_{11} & \dots  & \tsigma_{1d}\\
\vdots       & \ddots & \vdots      \\
\tsigma_{d1} & \dots  & \tsigma_{dd}
\] % end display math mode

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.