[texhax] tikz-options as macro
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Sun Jul 25 17:57:34 CEST 2010
Am 25.07.2010 17:38, schrieb Arno Trautmann:
> So pgf thinks I am passing “red,dotted” as one option. Is there any
> trick to avoid this behaviour? I would like to use this way of passing
> several options in a package – an alternative would be to pass
> \red,\dot, but that is not very nice …
\documentclass{minimal}
\usepackage{tikz}
\tikzset{reddot/.style={red,dotted}}
\begin{document}
\begin{tikzpicture}
\draw[reddot] (1,1) to (1,2);
\end{tikzpicture}
\end{document}
Herbert
More information about the texhax
mailing list