This question already has an answer here:

I have the following code:

\draw [color=red,fill=red,fill opacity=1.0] (-0.67,1.06) circle (2.41cm);
\draw [color=white,fill=white,fill opacity=1.0] (-0.66,1.71) circle (1.92cm);
\draw [shift={(-0.05,2.21)},color=red]  plot[domain=2.01:4.03,variable=\t]({1.*1.40*cos(\t r)+0.*1.40*sin(\t r)},{0.*1.40*cos(\t r)+1.*1.40*sin(\t r)});
\draw [shift={(-1.60,0.27)},color=red]  plot[domain=-0.48:0.92,variable=\t]({1.*1.08*cos(\t r)+0.*1.08*sin(\t r)},{0.*1.08*cos(\t r)+1.*1.08*sin(\t r)});
\draw [shift={(-1.26,1.06)},color=red]  plot[domain=-1.12:0.68,variable=\t]({1.*1.43*cos(\t r)+0.*1.43*sin(\t r)},{0.*1.43*cos(\t r)+1.*1.43*sin(\t r)});
\draw [shift={(0.42,3.0)},color=red] plot[domain=2.72:4.215,variable=\t]({1.*1.18*cos(\t r)+0.*1.18*sin(\t r)},{0.*1.18*cos(\t r)+1.*1.18*sin(\t r)});  

And I want to color red the thing in center. I've read this and do:


saveuse path/.code 2 args={
    \pgfkeysalso{#1/.style={insert path={#2}}}%
    \global\expandafter\let\csname pgfk@\pgfkeyscurrentpath/.@cmd\expandafter\endcsname
    % not optimal as it is now global through out the document
    \csname pgfk@\pgfkeyscurrentpath/.@cmd\endcsname
/pgf/math set seed/.code=\pgfmathsetseed{#1}}

        \clip [saveuse path={plot path}{plot[smooth, samples=100, domain=2.01:4.03,variable=\t]({1.*1.40*cos(\t r)+0.*1.40*sin(\t r)},{0.*1.40*cos(\t r)+1.*1.40*sin(\t r)}) }]-- (0,0) --(0,2) -- cycle;

        \clip [saveuse path={plot path}{plot[smooth, samples=100, domain=-0.48:0.92,variable=\t]({1.*1.08*cos(\t r)+0.*1.08*sin(\t r)},{0.*1.08*cos(\t r)+1.*1.08*sin(\t r)}) }]-- (0,0) --(0,-1.5) -- cycle;

        \clip [saveuse path={plot path}{plot[smooth, samples=100, domain=-1.12:0.68,variable=\t]({1.*1.43*cos(\t r)+0.*1.43*sin(\t r)},{0.*1.43*cos(\t r)+1.*1.43*sin(\t r)}) }]-- (0,0) --(0,-1.5) -- cycle;

        \clip [saveuse path={plot path}{plot[smooth, samples=100, domain=2.72:4.215,variable=\t]({1.*1.18*cos(\t r)+0.*1.18*sin(\t r)},{0.*1.18*cos(\t r)+1.*1.18*sin(\t r)}) }]-- (0,0) --(0,2) -- cycle;  

        \draw [plot path];


But it don't work. How can I solve this? *Please not xelatex

marked as duplicate by cfr tikz-pgf Jan 6 '16 at 23: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.

  • Didn't your last question solve this problem? It was suggested to you how to run the code with pdflatex. – Alenanno Jan 6 '16 at 22:58
  • It was suggested run with xelatex, I'm asking without this – Luis Felipe Jan 6 '16 at 23:30
  • The answer there also tells you how to run it with pdfLaTeX. – cfr Jan 6 '16 at 23:55
  • I'm just asking for a different way to solve it with that other question method. I can't use xelatex or change compile configurations in every machine I use. – Luis Felipe Jan 7 '16 at 0:55