Das Problem ist vermutlich, daß statt "opt"="val" so "opt=val" gesehen (und damit ungültig) wird.
Die eine oder andere Idee kann ich auch anbieten:
Code:
\documentclass{scrartcl}
\usepackage{tikz}
\newenvironment{foo}[1][]{%
\expandafter\tikzpicture\expandafter[#1]
}{%
\endtikzpicture
}
\begin{document}
Funktioniert:
\begin{tikzpicture} [xscale=0.3]
\draw (0,0) rectangle (5,5);
\end {tikzpicture}
Funktioniert auch:
\newcommand{\Skalierung}{xscale=0.3}
\begin{foo} [\Skalierung]
\draw (0,0) rectangle (5,5);
\end {foo}
Sowas geht auch:
\newcommand*\skalierung{0.3}
\begin{tikzpicture} [xscale=\skalierung]
\draw (0,0) rectangle (5,5);
\end {tikzpicture}
\end{document}
VG
Lesezeichen