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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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] ...
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis