Undefined control sequence
TeX Output
./example.tex:3: Undefined control sequence.
l.3 This has an \undefinedcommand
{here}.
Explanation
TeX encountered a command (macro starting with \) that has not been defined in the LaTeX kernel, the document class, or any loaded package.
How to Fix
- Check for typos in the command name (e.g.
\textbldinstead of\textbf, or\calinstead of\mathcal). - If the command comes from an external package (such as
\mathbbfromamssymbor\hreffromhyperref), add\usepackage{...}to your document preamble. - If writing custom macros, define it using
\newcommand{\mycmd}{...}before invoking it.