When I use tikz fading options, something simple like this code:

\usepackage{tikz}
\usetikzlibrary{fadings}

\tikz \filldraw[blue, rounded corners = 0.6mm, path fading = east] (0,0) rectangle (\textwidth, 1.3mm);

in the Okular pdf viewer it looks fine (sorry for the bad screenshot, but the important part - the fading is there). enter image description here

However when I open it in Adobe for example, the result of the fading is different:

enter image description here

I am wondering if it is possible to solve this issue somehow?

  • 1
    The Adobe Reader version is correct (you use \fiildraw). If you want the Okular version, use \fill instead of \filldraw... – Paul Gaborit Aug 8 at 12:21
  • Oh ok, I was not aware of that effect. Could you elaborate why is it shown as faded in Okular also by using filldraw? – beginner_of_beginner Aug 8 at 12:24
  • Okular seems to fade the background and the path (to see it well, you may try with the draw=red,fill=blue options). – Paul Gaborit Aug 8 at 12:43
  • @PaulGaborit Do you want to write-up an answer? – TeXnician Aug 13 at 17:12

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.