LaTeX error "No shape named `stop' is known": cause and fix

Error No shape named `stop' is known

A TikZ path uses a node name in parentheses, such as (stop), and no node with that name exists at this point. TikZ calls nodes "shapes" in this message.

Why it happens

How to fix it

A document that produces the message

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node (start) at (0,0) {Start};
\node (end) at (3,0) {End};
\draw[->] (start) -- (stop);
\end{tikzpicture}
\end{document}

Open in the editor

The corrected document

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node (start) at (0,0) {Start};
\node (end) at (3,0) {End};
\draw[->] (start) -- (end);
\end{tikzpicture}
\end{document}

Open in the editor

Both documents were compiled with pdfLaTeX from TeX Live 2023. The first produces the message, the second compiles without an error.

Finding the line in the editor

The editor lists every error and warning of a compile run with file and line. Select an entry and the cursor jumps to that line. See Error list with jump to the line.

Related pages