0

While using the TikZ quotes library to put labels on lines, the double option of \draw does not seem to work. Example:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning, quotes}

\begin{document} \begin{tikzpicture}

\node (A) at (1,2) {A}; \node (B) at (3,4) {B};

\draw [double] (A) edge["Label"] (B);

\end{tikzpicture} \end{document}

The output does not have a double line.

How do I make the double line appear?

revim
  • 3
  • It doesn't work without the quotes library either. If you want to use it on more than one edge on one path use \path[every edge/.append style=double] (A) edge["Label"] (B) (B) edge["Another Label"] (A);. Edges are special. – Qrrbrbirlbel Nov 07 '22 at 13:54

1 Answers1

2

Put the double property on the edge instead:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{quotes}

\begin{document} \begin{tikzpicture}

\node (A) at (1,2) {A}; \node (B) at (3,4) {B};

\draw (A) edge[double,"Label"] (B);

\end{tikzpicture} \end{document}

enter image description here

Marijn
  • 37,699