[XeTeX] help with pgf xelatex issue

Akira Kakuto kakuto at fuk.kindai.ac.jp
Fri Jan 15 00:48:00 CET 2016

Dear Stefan,

> I filed a bug report, but nothing happend:
> http://sourceforge.net/p/pgf/bugs/354/

The issue is related to pgf drivers, pgfsys-xetex.def and
pgfsys-dvipdfmx.def which is called by the former.

Your example works if you use the other driver: pgfsys-dvipdfm.def,
see below. However, don't expect that the way is always ok.

% xelatex
%deceive the driver
%use the old driver for dvipdfm


x\pgfmark{tA}some text \pgfmark{tB} some text
\begin{tikzpicture}[remember picture]
\draw (0,0)node (A){A} rectangle (1,1)node (B){B};
\begin{tikzpicture}[remember picture]
\draw (0,0)node {\pgfmark{nA}} rectangle (1,1)node {\pgfmark{nB}};

\begin{tikzpicture}[overlay,remember picture]
\draw[red,->] (0,0)--(pic cs:tA) (0,0)--(pic cs:tB);
\draw[blue,->](0,0)--(pic cs:nA) (0,0)--(pic cs:nB); %nB faulty
\draw[green,->](0,0)--(A) (0,0)--(B);



More information about the XeTeX mailing list