TikZ 箭头不能用 pdflatex 绘制

TikZ 箭头不能用 pdflatex 绘制

我正在使用LaTeX 中方程各部分之间的箭头

\documentclass{article}
\usepackage{tikz}
\newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}

\begin{document}
\[
  P(x)=3x^6+4x^5\tikzmark{a}+3x^3\tikzmark{b}-x-3
  \begin{tikzpicture}[overlay,remember picture,out=315,in=225,distance=0.4cm]
    \draw[->,red,shorten >=3pt,shorten <=3pt] (a.center) to (b.center);
  \end{tikzpicture}
\]
\end{document}

当我用 编译它latex时,它可以正确地绘制一个箭头dvipdf,但是由于某种原因,当我用 编译时,箭头并没有出现pdflatex

latex -version并且pdflatex -version都输出:

pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.46; using libpng 1.2.46
Compiled with zlib 1.2.3.4; using zlib 1.2.3.4
Compiled with poppler version 0.18.2

我也想知道 3.1415626 在那里做什么......

相关内容