我有一个eps格式的图像,我想包含在我的文档中.图像仅包含对象的几何图形; 它不包含必要的文本.它有一些箭头,我想在LaTeX中添加文本,因此标签(包括数学)看起来很干净.
如何在导入的图形上的特定位置放置方程式?
小智 6
你可以使用pgfonlayer和tikz.这有点复杂,但这是我从投影仪演示中得到的一个例子:
\pgfdeclarelayer{foreground}
\pgfdeclarelayer{background}
\pgfsetlayers{background,main,foreground}
\begin{tikzpicture}
\begin{pgfonlayer}{foreground}
\path (1.0,2.0) node (c) {{\color{blue} Some info...}}
(1.0,1.5) node (b) {{\color{blue}... which is cool!}};
\end{pgfonlayer}
\begin{pgfonlayer}{background}
\path (0,0) node (o) {
\includegraphics[width=\textwidth]{./figures/somefigure.eps}};
\end{pgfonlayer}
\end{tikzpicture}
Run Code Online (Sandbox Code Playgroud)