I am using the answer from Arrow between parts of equation in 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}
This correctly draws an arrow when I compile it with latex then dvipdf, but
for some reason the arrowhead does not appear when I compile with pdflatex.
latex -version and pdflatex -version both output:
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
I am also wondering what the 3.1415626 is doing there...
$$with LaTeX, in that case\[...\]should be used. – egreg Dec 15 '12 at 14:41latexanddvipdfbut not withpdflatex? – cg505 Dec 15 '12 at 14:55\coordinateinstead of\nodein\tikzmark's definition. Also remove.centerwhen using those points. – JLDiaz Dec 15 '12 at 15:24pdflatex. – cg505 Dec 15 '12 at 17:00->with-latexor-stealthseems to work fine. I suppose that that will work for now... – cg505 Dec 15 '12 at 17:17texlive, have a look at How to install "vanilla" TeXLive on Debian or Ubuntu? – cmhughes Dec 15 '12 at 17:18