The following is the MWE (Following code is taken from here, with slight modifications):
\documentclass[tikz]{standalone}
\tikzset{
use bounding box relative coordinates/.style={
shift={(current bounding box.south west)},
x={(current bounding box.south east)},
y={(current bounding box.north west)}
},
label/.style={draw=black},
}
\begin{tikzpicture}
\node[use as bounding box] {\includegraphics{example-image-a}};
\begin{scope}[use bounding box relative coordinates]
\node[label] (Label) at (0.3,0.3) {GR};
\draw[stealth-] (Label.west) edge[-stealth] (0.1,0.35)
(Label.west) edge[-stealth] (0.1,0.25);
\end{scope}
\end{tikzpicture}
\end{document}
I am using this piece of code to just label a diagram. The format of the diagram imported to LaTeX is .jpeg . I intend to use the labelled diagram in a PowerPoint presentation. Is it possible to export the diagram labelled using TikZ?
externalizecan do that. See e.g. this answer. – May 17 '20 at 06:33