[XeTeX] Problem with preview, xelatex and shading in TikZ-PGF

R (Chandra) Chandrasekhar chyavana at gmail.com
Fri Apr 29 19:35:41 CEST 2011


Dear Folks,

I was able to compile the minimal example file below with lualatex but
not with xelatex:

---
\documentclass{article}
\usepackage{tikz}
\usepackage[active,tightpage]{preview} % Optionally comment out
\begin{document}
\begin{preview} % Optionally comment out
   \begin{tikzpicture}
       \shade [left color=blue, right color=green] (0,0) rectangle
(10,10);
   \end{tikzpicture}
\end{preview} % Optionally comment out
\end{document}
---

Commenting out the preview package and environment allows successful
compilation under xelatex but the graphic is not cropped.

Short of using pdfcrop, is there any workaround for this problem under
xelatex?

I have written directly to the author of the preview package and on CTT

https://groups.google.com/group/comp.text.tex/browse_thread/thread/ab4125017113f167?hl=en

without eliciting any replies. Any help given by this forum is greatly 
appreciated.

Thank you.

Chandra


More information about the XeTeX mailing list