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.

2
  • 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 9 '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 9 '18 at 16:35
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

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.