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.

2
  • 1
    If you are not using it that often you can match the size of the delimiter height and kern it slightly via {\vphantom{\bigg(}}^x\!\!\begin{pmatrix} a & b \\ c & d\end{pmatrix} – percusse Jun 17 '14 at 5:09
  • @percusse: Great. Thanks. I just need to do this one time, so this works well. If you write it as an answer, I will upvote and accept. – Thomas Jun 17 '14 at 5:12
6

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

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

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.