I was working on this thesis template which was compiling fine until I used a \verb command in my code. From then code is showing countless errors like the one given below:-
! Use of doesn't match its definition.
l.10 ...sageBreak This may be a bug in a package f
ile you are using\par } {\...
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.
I commented all the code that I wrote on that day before error popped up, but still same errors.I don't even know which part of the code is the problem so don't know what to paste here.
General ⇒ ! Use of doesn't match its definition. l.10 Error
-
- Posts: 2
- Joined: Wed Jul 01, 2015 6:44 pm
! Use of doesn't match its definition. l.10 Error
- Attachments
-
- Snapshot of the error window
- Error.PNG (49.4 KiB) Viewed 19370 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

! Use of doesn't match its definition. l.10 Error
Without a
minimal working example with which we can reproduce the error the following is random guessing:
You cannot use
Regards

You cannot use
\verb
inside of the argument of another macro (a \footnote
, say, or a \caption
, a \section
or whatever…)Regards
site moderator & package author
Re: ! Use of doesn't match its definition. l.10 Error
site moderator & package author
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
! Use of doesn't match its definition. l.10 Error
You cannot use
It's even more unusable in a moving argument, that means it's written into a file. Captions are written into a file, to be loaded and interpreted in the next LaTeX compiler run.
It can already be fixed by simply using typewriter font with a backslash in front. The output will be as desired.
Note, you should delete the external file where it was written to. In this case, it can be the
Stefan
\verb
within \caption, as Clemens said. \verb
is very specific, as it doesn't interpret LaTeX commands in its argument. So you cannot use it within macros.It's even more unusable in a moving argument, that means it's written into a file. Captions are written into a file, to be loaded and interpreted in the next LaTeX compiler run.
It can already be fixed by simply using typewriter font with a backslash in front. The output will be as desired.
Note, you should delete the external file where it was written to. In this case, it can be the
.lof
file which contains the captions for the list of figures, so also the illegal \verb
command, so remove it. It will be re-generated in the next run, re-read to be interpreted one run later.Stefan
LaTeX.org admin