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).
\documentclass{article}
\begin{document}
\begin{picture}(10,10)
\put{1,2}{x}
\end{picture}
\end{document}\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.
\documentclass{article}
\def\pair(#1,#2){$\langle #1, #2 \rangle$}
\begin{document}
The pair \pair{a,b} is ordered.
\end{document}\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
- Missing number, treated as zero.A command that needs a number or length (\vspace, \setcounter, a width) got a word or nothing. Give it a value such as 1em or 3.
- LaTeX Error: Command \<name> already defined.\newcommand or a package tried to define a name that already exists. Pick another name, use \renewcommand, or drop the clashing package.
- LaTeX Error: Environment <name> undefined\begin{…} names an environment no loaded package defines: load the package (amsmath for align), fix the spelling, or define it with \newtheorem.
- LaTeX Error: Option clash for package <name>A package is loaded twice with different options, often because the class or another package loaded it first. Load it once, with all options.
- LaTeX Error: Unknown option `<opt>' for package `<pkg>'A package was given an option it does not accept: a typo, an option meant for the class or another package, or a babel language name it does not know.
- TeX capacity exceeded, sorry [<what>].TeX ran out of one of its fixed memory areas. Almost always a command that calls itself forever; rarely a document that is genuinely too big.
Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors