Is there a command that generates the error or warning of my choice? I'm planning to put it in an \ifthenelse
, so it can't be a syntax error.
[Tex/LaTex] \die command
errorsmacroswarnings
errorsmacroswarnings
Is there a command that generates the error or warning of my choice? I'm planning to put it in an \ifthenelse
, so it can't be a syntax error.
Best Answer
There are commands
\GenericInfo
,\GenericWarning
and\GenericError
. For class and package writers there are also\Class…
and\Package…
equivalents, described in theclsguide
.An example: