I was trying to create a tikzpicture environment which includes external graphics (as a PDF). The external graphics should be translucent, so I used the opacity parameter. Using pdfLaTeX it works as expected, but under XeLaTeX (which I need for other reasons) there is no transparency. After checking some more, it appears to work fine under XeLaTeX for JPGs and (more importantly) EPS. If no more elegant solution can be found, I can use EPS graphics instead of PDF. But maybe there is a magical definition I can put in the header to fix this?

Here is the MWE:



\begin{tikzpicture}% Regular figure

\begin{tikzpicture}% Pale figure
    {\node[opacity=0.3] {\includegraphics{pdfgraphics.pdf}};}


And here are the results when using both engines: results when using both engines:

closed as too localized by Marco Daniel, Joseph Wright Apr 15 '12 at 8:08

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Could you upload the included pdf somewhere for analysis? – Martin Schröder Apr 7 '12 at 22:08
  • What version of XeTeX are you using with which distribution on which OS? – Martin Schröder Apr 7 '12 at 22:11
  • Could be a bug in the XeTeX driver of TikZ. It might be better to ask this on a TikZ forum instead. – Martin Scharrer Apr 7 '12 at 22:12
  • @MartinScharrer: See tex.stackexchange.com/questions/32184/… – Martin Schröder Apr 7 '12 at 22:14
  • This is clearly a bug in TikZ. As such, it's not really something that can be 'answered' in the way that the site works. I'll therefore close it: not a criticism but a reflection of the fact that we can't do much about it! – Joseph Wright Apr 15 '12 at 8:07