1

I want to put matrix in Picture environment. I am trying this way \put(20,20){\begin{pmatrix}\end{pmatrix}} but it does not work. How can I put matrix in picture environment.

Stefan Pinnow
  • 29,535
King Khan
  • 113
  • 1
    Welcome to TeX.SX! You can help us to help you by providing the code for a small compilable document that shows your problem called MWE. Just edit your question and add missing code. – Bobyandbob Jul 09 '18 at 16:24
  • 1
    How to superimpose LaTeX on a picture? should do the job. - So use \documentclass{article} \usepackage[percent]{overpic} \usepackage{amsmath} \begin{document} \begin{overpic}[width=0.5\textwidth,grid,tics=10]{example-image} \put (20,85) {$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$} \end{overpic} \end{document} – Bobyandbob Jul 09 '18 at 16:35

1 Answers1

2

Maybe something as simple as putting the pmatrix in math mode via $ delimiters.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\fbox{\begin{picture}(100,100)
\put(40,40){Hi mom}
\put(20,20){$\begin{pmatrix}a&b\\c&d\end{pmatrix}$}
\end{picture}}
\end{document}

enter image description here