如何将 TikZ-Feynman 文件导出为 .eps?

如何将 TikZ-Feynman 文件导出为 .eps?

我想用 Ti 画一个费曼图Z.我的代码如下:

\documentclass[tikz]{standalone}
\usepackage{tikz-feynman}
\usetikzlibrary{external}
\tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error
-interaction=batchmode -jobname "\image" "\texsource";
dvips -o "\image".ps "\image".dvi;
ps2eps "\image.ps"}}
\tikzexternalize
\begin{document}
\tikzfeynmanset{
every blob/.style={draw=green!40!black, pattern color=green!40!black},
every crossed dot/.style={blue},
}
\feynmandiagram [vertical=anu to nu] {
  nu [particle=\(\overline{\nu}\)] -- [anti fermion] b [blob],
  anu  [particle=\(\nu\)] -- [fermion] b,
  b   -- [fermion,bend right=10,edge label'=\(\nu\)] f1 [crossed dot],
  b   -- [anti fermion,bend left=10,edge label=\(\overline{\nu}\)] f1,
  b   -- [fermion,bend right=10,edge label'=\(\nu\)] f2 [crossed dot],
  b   -- [anti fermion,bend left=10,edge label=\(\overline{\nu}\)] f2,
  nu  -- [draw=none] anu,
  f1  -- [draw=none] f2,
};
\end{document}

我怎样才能将文件导出为.pdf而不是.eps

答案1

使用pdftops,部分pdf

$ pdftops -eps inputfile.pdf outputfile.eps

相关内容