4

I have the following picture:

enter image description here

I would like to draw arrow to the cell membrane, to the mitochondrion and to the nuclear envelope and on the other side of the arrow the appropriate cell organell/membrane.

Another important thing is that, the text should be on the right side of the figure

I have tried to do it, but I am stucked.

Code:

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{frame}
\begin{tikzpicture}

\node (cellMembrane) {}; \node (mitochondrion) {}; \node (nuclearEnvelope) {}; \node (cell) [left=of cellMembrane] {\includegraphics[width=4cm]{pic.png}};

\node (a) [] at (cell.center) {}; \node (b) [] at (cellMembrane.center) {cell membrane}; \node (c) [] at (mitochondrion.center) {mitochondrion}; \node (d) [] at (nuclearEnvelope.center) {nuclear envelope};

\draw [ultra thick,magenta,<-] (a) to (b); \draw [ultra thick,magenta,<-] (a) to (c); \draw [ultra thick,magenta,<-] (a) to (d);

\end{tikzpicture} \end{frame} \end{document}

Output

enter image description here

UPDATE

\documentclass{beamer}
\usepackage{tikz}
\usepackage{tikz-imagelabels}

\begin{document} \begin{frame}

\begin{annotationimage}{width=6cm}{pic.png} \draw[annotation right = {cell membrane at 0.45}, thick, ->] to (0.75,0.45); \draw[annotation right = {nuclear envelope at 0.75}, thick, ->] to (0.6,0.64); \end{annotationimage}

\end{frame} \end{document}

Output:

The problem is that, it add a white border or someting like that around the arrow. Other problem is that a "white" circle appears around the arrow

enter image description here

White circle

enter image description here

pal99
  • 89

1 Answers1

6

As said in comments, the tikz-imagelabels package might be helpful.

If you don't like the halo around the arrows, you can disable it like this:

\documentclass{beamer}
\usepackage{tikz}
\usepackage{tikz-imagelabels}

\imagelabelset{ annotation arrow/.style = { draw, ->, black, thick, shorten >= \borderthickness + \arrowdistance, }, }

\begin{document} \begin{frame}

\begin{annotationimage}{width=6cm}{example-image-duck} \draw[annotation right = {with pizza at 0.45}] to (0.75,0.45); \draw[annotation right = {Cute duck at 0.75}] to (0.6,0.64); \end{annotationimage}

\end{frame} \end{document}

enter image description here