I have some pdf figures that I generated in Mathematica with latex labels using matex. I need to update the labels on the figures, but I generated them a few years ago and I can't get the Mathematica code to run again now. Would there be some reasonably straightforward way in latex to put new figure labels on top of the old ones? I would prefer a method which would modify the pdfs of the figures themselves. I am importing them into a latex document, so I could add commands into my document to do this if necessary.
Asked
Active
Viewed 213 times
0
1 Answers
1
Using tikz as in this question linked to me by Marijn in the comments, and using [fill=white] as suggested by John Kormylo, I solved the problem like this;
\begin{tikzpicture}
\node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics[scale=0.2]{giffrommyquestion}};
\begin{scope}[x={(image.south east)},y={(image.north west)}]
\node [fill=white,scale = .9] at (.48,.32) {$|0]\langle0|$};
\node [fill=white,scale = .9] at (.48,.15) {$\alpha|4]\langle1|$};
\end{scope}
\end{tikzpicture}
Jojo
- 111

pdfimage toepd, (ii) usepsfragpackage and replace desired labels. (I never used). – Zarko Feb 21 '22 at 12:13[fill=white]in\node at (x,y) {text}? – Jojo Feb 21 '22 at 18:08