# How to embed LaTeX text, fonts, equations, or any LaTeX typesetting commands into a diagram. [closed]

Is there away I can add LaTeX text, fonts, equations on a image. After searching around I noticed there is a PGF package however it seems I will need significantly some time to learn the package!

-
 You can basically use tex.stackexchange.com/questions/9559/…. Instead of the \draw command use \node at (⟨x⟩,⟨y⟩) {⟨LaTeX text⟩}; – Caramdir Jul 24 '11 at 21:30 What format is your image (EPS, PDF, PNG,...)? Also, it may influence a choice of package if your preference is latex as opposed to pdflatex. – Werner Jul 25 '11 at 5:34 Learning tikz (which is a high-level interface to pgf) is both easy and fun due to an excellent manual. You might also want to try out METAPOST and/or Asymptote. – mbork Jul 25 '11 at 7:34

## closed as not a real question by lockstep, egreg, Joseph Wright♦Oct 2 '11 at 8:36

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

If you can convert the image to an .eps file, then you can use the PS Tricks package:

% pre-amble
\usepackage{graphicx}
\usepackage{pstricks}

% document body
\begin{pspicture}(0,0)(6,6)
%\psgrid
\rput(3,3){\resizebox{50mm{!}{\includegraphics{image.eps}}}
\rput(1.5,0.8){$\frac{P}{5}$}
\end{pspicture}


However, if you use this approach, you won't be able to use pdflatex.

-