I'd like to define options via newcommand, so i can use them for tikzpicture-environments. I tried this:
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\newcommand{\test}{[every path/.style={->,red,thick}]}
\begin{document}
\begin{tikzpicture}\test
\draw (0,0)--(1,1);
\end{tikzpicture}
\end{document}
But the line is still black. Where is the mistake in my approach? i thought, newcommand simply expands its content when it is written. I assume that the square brackets are perhaps the problem...
\newcommand{\test}{ \tikzset{every path/.style={->,red,thick}}}