[Tex/LaTex] Mathematical formulas on a graph (not made by TeX)


Let us assume that we have a graph created by a program different from LaTeX (that is not with PStricks or Tikz). I was wandering if it is possible to incorporate mathematical symbols on that graph using a TeX editor.

Thank you.

Best Answer

Basically, this is using the example of the stackengine documentation, adapted for use in math mode with the addition of \stackMath in the preamble.

The routine you want is \stackinset which has 6 arguments, \stackinset{H-anchor}{H-offset}{V-anchor}{V-offset}{inset}{underlying anchor image}. As shown here, it can be nested and the insets themselves can be stacks.

\stackinset{l}{ .1in}{b}{.2in}{y=mx+b}{%
\stackinset{r}{ .1in}{t}{.2in}{\Longstack{F_x=ma_x\\F_y=ma_y}}{%
\stackinset{r}{ .8in}{b}{.6in}{\psi^2=0}{%
\stackinset{r}{ .1in}{c}{.0in}{\imgi}{%

enter image description here

Related Question