I want something like \ifmmode\else\GenerateWarning{The command \backslash uzuka is supported only in math mode.}\fi, which is supposed to generate a warning "The command \uzuka is supported only in math mode.". Is there a command or a package with this capacibility?
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
||||
|
|
|
For LaTeX, use the commands described in section 4.9 of
The |
|||||||||
|
|
You can use |
|||
|
|
|
Just use the built-in The kind of warnings Latex generates are just messages; |
|||||
|
