3

When adding the second solution to this answer, I initially tried to compile with XeLaTeX so that I could use fontspec. However, that didn't work, although compiling with LuaLaTeX did.

I've now managed to create an MnWE: there is a problem, it seems with my use of inner color and outer color with the XeTeX engine. The following example gives the expected output when compiled with pdfLaTeX or LuaLaTeX, but not XeLaTeX.

\documentclass[tikz, border=10pt, multi]{standalone}

\begin{document}
\begin{tikzpicture}
  \node [inner color=yellow, outer color=red] {Node};
\end{tikzpicture}
\end{document}

Output with LuaLaTeX and pdfLaTeX:

sunset node

Output with XeLaTeX:

sunless node

Is it possible to use this kind of fill with XeLaTeX? If so, how? If not, is any engine-agnostic alternative available?

marked as duplicate by Sean Allred, egreg tikz-pgf Jul 3 '15 at 12:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

Yes, Tikz 3.0.0 when used with Standalone and shadings will fail to work.

I had asked a similar question to yours, see Shadings/fadings (apparent) bug in Tikz, then subsequently I decided to file a bug report and this is the response from Christian Feuersänger:

Thanks for the report.

The issue has been solved already and I confirmed that it works. I also confirmed that it fails to work with PGF 3.0.0 . You will have to wait for the next PGF release.

In the meantime, you can use the solution provided by Heiko to my question.

Not the answer you're looking for? Browse other questions tagged or ask your own question.