<div dir="ltr"><div><div><div>another example that I've encountered several weeks ago was:<br><br>\documentclass{article}<br><br>\usepackage[<span tabindex="-1" id=":335.25" style="" class="">cmyk</span>]{<span tabindex="-1" id=":335.26" style="" class="">xcolor</span>}<br>\usepackage{<span tabindex="-1" id=":335.27" style="" class="">tikz</span>}<br>\usepackage{<span tabindex="-1" id=":335.28" style="" class="">pgf</span>}<br>\usetikzlibrary{<span tabindex="-1" id=":335.29" style="" class="">fadings</span>}<br><br>\usepackage{<span tabindex="-1" id=":335.30" style="" class="">pgfpages</span>}<br>\pgfpagesuselayout{<span tabindex="-1" id=":335.31" style="" class="">resize</span> to}[a4paper]<br><br>\begin{document}<br><br>\begin{<span tabindex="-1" id=":335.32" style="" class="">tikzpicture</span>}[remember picture,overlay]<br>    \shade [top color=yellow,bottom color=red!50] (current page.north west) rectangle (current page.south east);%<br>\end{<span tabindex="-1" id=":335.33" style="" class="">tikzpicture</span>}<br><br>\centerline{\Huge Hi Parsi\LaTeX{}}<br>\end{document}<br><br></div>It didn't produce the result of <span tabindex="-1" id=":335.34" style="" class="">pdflatex</span>! and it is so weird!<br></div>I've also reported it at http://<span tabindex="-1" id=":335.35" style="" class="">tex</span>.<span tabindex="-1" id=":335.36" style="" class="">stackexchange</span>.com/questions/262877.<br><br></div>Do you have any suggestion for solving this?<br><div><div><div><div><div><img src="https://t.yesware.com/t/6462de3c3f9770c566662484127b84e150e1ba17/2ead747b0189b46f5d7048a863c7b2e6/spacer.gif" style="border: 0px none; width: 0px; height: 0px; overflow: hidden;" height="0" width="0"><img src="http://t.yesware.com/t/6462de3c3f9770c566662484127b84e150e1ba17/2ead747b0189b46f5d7048a863c7b2e6/spacer.gif" style="border: 0px none; width: 0px; height: 0px; overflow: hidden;" height="0" width="0"><font style="display: none;" face="yw-6462de3c3f9770c566662484127b84e150e1ba17-2ead747b0189b46f5d7048a863c7b2e6--to"></font></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 28, 2015 at 7:58 AM, Akira Kakuto <span dir="ltr"><<a href="mailto:kakuto@fuk.kindai.ac.jp" target="_blank">kakuto@fuk.kindai.ac.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Vafa Khalighi,<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
\documentclass{article}<br>
\usepackage{atbegshi}<br>
\usepackage{tikz}<br>
\AtBeginShipout{%<br>
 \AtBeginShipoutUpperLeft{%<br>
 \put(0,0){%<br>
\tikz[remember picture, overlay]\shade[top color=blue!15, bottom<br>
color=blue!80] (current page.north east) rectangle  +(-5,-28);<br>
}}}<br>
\begin{document}<br>
This is a test<br>
\newpage<br>
This is a test<br>
\newpage<br>
This is a test<br>
\newpage<br>
This is a test<br>
\end{document}<br>
<br>
<br>
You see that shaded rectangle on every single page of the document.<br>
However, if you run xelatex, that rectangle does not appear on the<br>
first and second pages. What is wrong?<br>
</blockquote>
<br></span>
Probably because pgfsys-xetex.def and/or pgfsys-dvipdfmx.def,<br>
which are used by XeTeX, are incomplete.<br>
I think there are other tikz examples in which XeTeX cannot<br>
reproduce results by pdfTeX.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Best regards,<br>
Akira KAKUTO</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
 <a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
</div></div></blockquote></div><br></div>