1

enter image description here

I'd like to add some math symbols to that picture. How can I make it? (I'm using another software to make the pics.)

Alenanno
  • 37,338
Schwale
  • 2,049
  • 2
    Does this question: http://tex.stackexchange.com/q/9559/32374 help you? If not, you'll need to provide some more information :-) – darthbith May 05 '15 at 14:49
  • 1
    Related? http://tex.stackexchange.com/questions/171483/mathematical-formulas-on-a-graph-not-made-by-tex – Steven B. Segletes May 05 '15 at 14:49
  • 1
    @StevenB.Segletes That's the same as linking darthbith's suggestion. – Alenanno May 05 '15 at 14:51
  • @Alenanno I see that now. Didn't realize itself was marked a duplicate. – Steven B. Segletes May 05 '15 at 14:51
  • @Oshnaj Look at overpic package. Documentation at http://texdoc.net/texmf-dist/doc/latex/overpic/opic-abs.pdf. If more assistance in needed than post a MWE so assistance can be more efficient. – R. Schumacher May 05 '15 at 14:53
  • 1
    Then, as @darthbith said, you need to provide more information. That example explains how to annotate an image using TikZ. You want to annotate an image. So it seems to be a duplicate. Only you know why it isn't ;). – cfr May 05 '15 at 14:54
  • @StevenB.Segletes No problem. :D But you're both right, I think this is an instance of "drawing over an existing image" so those questions apply. If the OP thinks they do not, then we need more details. – Alenanno May 05 '15 at 14:54
  • @Alenanno Agreed. Based on the info currently provided, I can't distinguish the intent from the referenced questions. – Steven B. Segletes May 05 '15 at 14:55
  • Awesome, overpic worked absolutely nice! It wasn't a duplicate, though. – Schwale May 05 '15 at 15:05
  • 1
    @Oshnaj That goes to show that we were right that it's a duplicate. :) – Alenanno May 05 '15 at 15:13
  • 1
    If a different problem can be expressed in another way and then solved, then it is indeed a duplicate. Comes up all the time in complexity theory. That said, which piece of software are you using to draw your figures? (a) looks nice (b) that software might integrate with LaTeX if it's designed to produce figures such as this. – Sean Allred May 05 '15 at 15:17
  • @Alenanno No, it ain't. I won't waste my time asking the same question twice since all of my questions have been greatly solved. – Schwale May 05 '15 at 15:17
  • @Sean I'm using CorelDraw X5. – Schwale May 05 '15 at 15:19
  • 1
    Last time I used Corel, it was Corel PHOTO-PAINT 5 :) Crazy how time flies. You might be interested in LaTeX in CorelDRAW. – Sean Allred May 05 '15 at 15:21
  • Interesting, if that works to me, you deserve a cookie. – Schwale May 05 '15 at 15:23

1 Answers1

0

I use Inkscape. It generate this code (and you must call it instead of image):

\begingroup%
  \makeatletter%
  \providecommand\color[2][]{%
    \errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}%
    \renewcommand\color[2][]{}%
  }%
  \providecommand\transparent[1]{%
    \errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}%
    \renewcommand\transparent[1]{}%
  }%
  \providecommand\rotatebox[2]{#2}%
  \ifx\svgwidth\undefined%
    \setlength{\unitlength}{477.88bp}%
    \ifx\svgscale\undefined%
      \relax%
    \else%
      \setlength{\unitlength}{\unitlength * \real{\svgscale}}%
    \fi%
  \else%
    \setlength{\unitlength}{\svgwidth}%
  \fi%
  \global\let\svgwidth\undefined%
  \global\let\svgscale\undefined%
  \makeatother%
  \begin{picture}(1,0.49522056)%
    \put(0,0){\includegraphics[width=\unitlength]{fig/car.pdf}}%
    \put(0.96548473,0.04397513){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$x(t)$}}}%
    \put(0.02012794,0.44631517){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$r[x(t)]$}}}%
  \end{picture}%
\endgroup%

Look this part:

  \begin{picture}(1,0.49522056)%
    \put(0,0){\includegraphics[width=\unitlength]{fig/car.pdf}}%
    \put(0.96548473,0.04397513){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$x(t)$}}}%
    \put(0.02012794,0.44631517){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$r[x(t)]$}}}%
  \end{picture}%

Is very easy to understand:

  1. Include the imagine (in my case fig/car.pdf).
  2. Add all the TeX boxes (and so Math, too) that you need.

In Inkscape I write only some letters, for references, after I reedit the code with LaTeX function.