Code: Select all
\begin{tikzpicture}
\draw[line width=0pt] (0,0) -- (1,1)
node[pos=0.5] {$a$};
\end{tikzpicture}
Code: Select all
\begin{tikzpicture}
\draw[line width=0pt] (0,0) -- (1,1)
node[pos=0.5] {$a$};
\end{tikzpicture}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\begin{tikzpicture}
\path (0,0) -- (1,1) node[midway] {$a$};
\end{tikzpicture}
Thorsten,localghost wrote:Beside a minimal working example (MWE) it seems to be very hard to get your final feedback on provided solutions.Code: Select all
\begin{tikzpicture} \path (0,0) -- (1,1) node[midway] {$a$}; \end{tikzpicture}
Best regards
Thorsten
...which solves my problem!\path (0,0) -- (1,1) node[pos=0.5] {$a$};
A path statement does not draw anything unless specify a stroke or fill
\draw is actually just a shortcut for \path[draw] ...
NEW: TikZ book now 40% off at Amazon.com for a short time.