I'm just getting warmed to tikz so please forgive me if this is a dumb question I want to declare an newcommand containing a node with text:
\newcommand{\mydoor}[1] {
\draw[black] (1,-1) -- (1,-0) node[right,near start] {{#1}};
}
\begin{tikzpicture}
\mydoor[mytext];
\end{tikzpicture}
The output I get is not "| mytext" but "| ["
What on earth am I missing and how can I design a simple line with a configurable text (I want to use this on a more complicated polygon, therefore the environment)?
