0

I want every draw in magenta and every text in blue. Without \clip the following MWE does not produce any error.

\documentclass[11pt,a4paper]{article}
\usepackage{tikz}
\tikzset{%
every path/.style={magenta,text=blue}
}
\begin{document}
    \begin{tikzpicture}
    \clip (-2,-2) rectangle (2,2);
    \filldraw (-3,0)--(1,1)--(3,-2)--cycle;
    \end{tikzpicture}
\end{document}

But it does with the present of \clip. Is there any approach of avoiding putting style on each \draw?

Browse other questions tagged or ask your own question.