Use of \<name> doesn't match its definition.

A command with a special argument syntax, such as \put(x,y) or a \def with delimiters, was called without that syntax. Follow its exact form.

Help centre › LaTeX errors › Commands and packages · Error: the build stops or the output is wrong

What the log says

! Use of \put  doesn't match its definition.
l.4 \put{
         1,2}{x}

What it means

Most LaTeX commands take arguments in braces, but some are defined to expect particular characters, such as \put(1,2){…} with parentheses, or a plain-TeX \def\cmd#1.{…} that reads up to a full stop. TeX found the command followed by something other than what its definition requires.

Causes and fixes

Most common first. Each example is a complete document; the first fails with this message, the second is the same document fixed.

1. A picture command written with braces instead of parentheses

In a picture environment, coordinates are given in parentheses: \put(1,2){…}, \line(1,0){5}, \begin{picture}(10,10).

Fails
\documentclass{article}
\begin{document}
\begin{picture}(10,10)
\put{1,2}{x}
\end{picture}
\end{document}
Fixed
\documentclass{article}
\begin{document}
\begin{picture}(10,10)
\put(1,2){x}
\end{picture}
\end{document}

2. A \def with delimited arguments used without the delimiter

If a command is defined as \def\pair(#1,#2){…}, every use must have the parentheses and the comma: \pair(a,b). Check how the command is defined (in your preamble or in the package's documentation) and write it in that form.

Fails
\documentclass{article}
\def\pair(#1,#2){$\langle #1, #2 \rangle$}
\begin{document}
The pair \pair{a,b} is ordered.
\end{document}
Fixed
\documentclass{article}
\def\pair(#1,#2){$\langle #1, #2 \rangle$}
\begin{document}
The pair \pair(a,b) is ordered.
\end{document}

3. A fragile command inside a moving argument

When the name is an internal one (with @) and the line shows a \section, \caption or \footnote, a command inside that argument broke when copied to the table of contents or list of figures. Put \protect in front of it, or give a plain short title in square brackets: \section[Short]{Long with \cmd}.

In Manulyx

The editor shows the error beside the line with an explanation, and the compile log is parsed into a list of problems.

Write in Manulyx for free · Journal templates

More in commands and packages

Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors