Annotate pictures non-invasively in latex/pdf using org mode

Goal of this method is the non-invasive annotation of pictures in LaTeX/pdf. Thus all annotations are written in LaTeX. The source picture 1 remains untouched.

Figure 1: Source picture

Figure 1: Source picture

Figure 2: Help grid enabled

Figure 2: Help grid enabled

   #+EXPORT_LATEX_HEADER: \usepackage[background=black,text=white,arrow=red]{callouts}

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  \begin{annotate}
  {\includegraphics[width=0.8\textwidth]{/home/ra/Pictures/IMG_1340.jpg}}{1.0}
  %\helpgrid %uncomment to enable helpgrid
  \callout {-3.0,5.0}{Hip}{0.0,5.0}
  \draw [thick ,\arcol] (2.0 ,-2.0)  rectangle  (4.0 ,-4.0);
  \draw [thick ,\arcol] (-0.3 ,-5.8)  rectangle  (0 ,-6.2);
  \draw [red,thick,dashed] (1,5) circle (1.0);
  \callout {-3,0.7}{Knee}{-1.1,0.7}
  \callout {-3,-3.0}{Ankle}{2.0,-3.0}
  \arrow{ 2.0,-4.0}{0.0,-5.8} %Display the joint on the complete animal
  \note {-2.5,-8.0}{Some note without arrow}
  \end{annotate}
  \newpage

Things to remember:

  • First define the x (horizontal) coordinates. Then define the y (vertical) coordinates.
  • First comes the note. Then comes the arrow.
  • A note’s anchor is centered (not left, nor right)
  • In order to enable the help grid as shown on 2 uncomment line 3 in 1