![软件包 pstool 警告:没有包含宏的文件](https://linux22.com/image/388742/%E8%BD%AF%E4%BB%B6%E5%8C%85%20pstool%20%E8%AD%A6%E5%91%8A%EF%BC%9A%E6%B2%A1%E6%9C%89%E5%8C%85%E5%90%AB%E5%AE%8F%E7%9A%84%E6%96%87%E4%BB%B6.png)
我有以下一段 Latex 代码。我收到此警告:
软件包 pstool 警告:未找到文件“epsfigure.tex”或“epsfigure-psfrag.tex”,该文件可能包含输入行 24 中的“epsfigure.eps”的宏。
而我已经将 .eps 图形放在目录中。我应该怎么做才能消除我在所有 latex 文件中看到的这个警告?
多谢
\documentclass[journal]{IEEEtran}
\usepackage{cite,graphicx,amsmath,amssymb,psfrag,bm}
\usepackage{mathabx}
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{compat = newest}
\usepackage{epstopdf}
\epstopdfsetup{update} % only regenerate pdf files when eps file is newer
\usepackage{pstool}
\usepackage{subcaption}
\begin{document}
Some text... Suddenly a figure!
\begin{figure}[!ht]
\centering
\begin{subfigure}{1\columnwidth}
\centering
\psfragfig[width=1\columnwidth]{epsfigure}{
\psfrag{1}[c][c][1.]{$w$}
\psfrag{2}[c][c][1.]{$g$}
\psfrag{3}[c][c][1.]{$l$}
\psfrag{4}[c][c][1.]{$s$}
}\caption{}\label{fig:final_1}
\end{subfigure}
\begin{subfigure}
\centering
\includegraphics[width=1\columnwidth]{test01}
\caption{} \label{fig:final_3}
\end{subfigure}
\caption{action.}
\label{fig:final}
\end{figure}
\end{document}
答案1
据我所知有三个选项
- 从 pdflatex 更改为 (dvi)latex
- 添加空文件
imx/testfig.tex
- 添加空文件
imx/testfig-psfrag.tex
我认为这是一个功能而不是错误,理论上你可以在其中一个中使用宏imx/testfig.tex
,imx/testfig-psfrag.tex
这可能是必要的,因为你在文档中定义的所有内容都无法在图形中访问(例如,如果你在文档中定义了一个命令,你不能在 pdflatex 中的 psfragfic 中使用此命令(与 (dvi)latex 不同))。