6

If I want to have supscript on the left, I usually do {}^xa. How can I do this when I have a matrix. So what I want is

{}^x\begin{pmatrix} a & b \\ c & d\end{pmatrix}

However, this doesn't raise the x high enough.

I just need this for one application.

Thomas
  • 2,837

3 Answers3

7

Package mathtools (an extension package to amsmath) provides \prescript:

\prescript{<left superscript>}{<left subscript>}{<arg>}

Full example:

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[
  \prescript{x}{}{\begin{pmatrix} a & b \\ c & d\end{pmatrix}}
\]
\end{document}

Result

Heiko Oberdiek
  • 271,626
3

In case you need it more frequently, the tensor package should solve the problem of height.

\documentclass{article}

\usepackage{amsmath}
\usepackage{tensor}

\begin{document}


\[
\tensor*[^x]{\begin{pmatrix} a & b \\ c & d\end{pmatrix}}{}
\]

\end{document}

enter image description here

2

Here's an option using stacks. Because it is a lap, one may (or not) wish to add horizontal space prior to the \tllap.

\documentclass{article}
\usepackage{stackengine,mathtools}
\stackMath
\begin{document}
\[
  \tllap{\scriptstyle x}
  {\begin{pmatrix} a & b \\ c & d\end{pmatrix}}
\]
\end{document}

enter image description here