Subject: Re: Future of EPS (was Re: bug#45894: Bug report for preview-latex)

From: Ikumi Keita <[email-masked]>
Date: Fri, 03 Sep 2021 17:19:48 +0900

>>>>> "Bruckmann, Tobias" <[email-masked]> writes:
> Are you aware of any approach to do these LaTeX text replacements in PDF
> graphics already today?

How about exporting figures _without_ texts and _adding_ annotation with
TikZ, as done in the attached example? In this way, no "text
replacements" are necessary.

Or is it too painful to adjust the position of the texts at LaTeX level,
not at the time of creation of figure?

Regards,
Ikumi Keita

\documentclass{article}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
  \node (figure) at (0,0) {\includegraphics[width=10cm]{tiger.pdf}};
  \node at (figure.east) {foo};
  \node at (figure.north west) {\(x^{2}+y^{2}=z^{2}\)};
  \path (figure) ++(-2,-1) node[fill=white] {\Large\(E=mc^{2}\)};
\end{tikzpicture}
\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: