[XeTeX] Strange tikz behaviour with xetex

Vafa Khalighi vafaglhk at gmail.com
Mon Sep 28 03:57:16 CEST 2015


If you run pdflatex on the following minimal example:

\documentclass{article}
\usepackage{atbegshi}
\usepackage{tikz}
\AtBeginShipout{%
 \AtBeginShipoutUpperLeft{%
 \put(0,0){%
\tikz[remember picture, overlay]\shade[top color=blue!15, bottom
color=blue!80] (current page.north east) rectangle  +(-5,-28);
}}}
\begin{document}
This is a test
\newpage
This is a test
\newpage
This is a test
\newpage
This is a test
\end{document}


You see that shaded rectangle on every single page of the document.
However, if you run xelatex, that rectangle does not appear on the
first and second pages. What is wrong?

Your sincerely,
  Vafa


More information about the XeTeX mailing list