LaTeX error "I do not know the key '/tikz/thik' and I am going to ignore it. Perhaps you misspelled it": cause and fix

Error I do not know the key '/tikz/thik' and I am going to ignore it. Perhaps you misspelled it

An option in square brackets of a TikZ or pgfplots command is not known. The message shows the option as a path: /tikz/thik is the option thik of TikZ. If the option had a value, the message adds "to which you passed" and the value. TikZ ignores the option and draws without it.

Why it happens

How to fix it

A document that produces the message

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[thik, red] (0,0) -- (2,1);
\end{tikzpicture}
\end{document}

Open in the editor

The corrected document

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[thick, red] (0,0) -- (2,1);
\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