The following code is copied from an answer by Christian Feuersänger:


\begin{axis}[enlargelimits=false, axis on top, axis equal image]
\addplot graphics [xmin=0,xmax=96,ymin=0,ymax=96] {Dad64};
\node at (axis cs:49,30) [
    minimum size=3ex,
    pin={[pin edge=thick]-10:Nose}
] {};
\begin{axis}[enlargelimits=false, axis on top, axis equal image, width=6cm]
\addplot graphics [xmin=0,xmax=96,ymin=0,ymax=96] {Dad64};

When built with pdflatex, I get the correct result (same as in Christian's answer), but when I build it using xelatex, I get the following incorrect result:


I really need XeLaTeX. How can I get the expected result?

  • 2
    works okay for me. Is your system up-to-date? Aug 13, 2019 at 20:49
  • @UlrikeFischer: I'm still on TeX Live 2017, and I had hoped to be able to postpone the upgrade to TeX Live 2019 just a little longer..
    – Mårten W
    Aug 13, 2019 at 21:03
  • @UlrikeFischer: This induced me to finally take the bull by the horns and upgrade to TeX Live 2019. Now the example above works in XeLaTeX as well. Many thanks for giving me the courage!
    – Mårten W
    Aug 14, 2019 at 6:05
  • It doesn't need so much courage: it you have the disk space you can always install the newer tex live beside the older. I have a number of versions and can switch if needed. Aug 14, 2019 at 6:12


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.