Assume that I have mistakenly written $\signa$
instead of $\sigma$
in a TeX
file.
Considering the fact that all correct math commands are stored in the file latex.el
under LaTeX-math-default
constants, is it possible that Emacs detect this error?
More precisely is it possible that Emacs detects that \signa
does not belong to the list of commands in latex.el
under LaTeX-math-default
?
Obviously after compiling the tex
file, one can discover this error. But my question is about the detection of this error at Emacs level. Also assume that ispell
is not at disposal.
Edited: After the comment of Giordano let me make it precise that I am interested in checking the correctness of a single math command not the entire document. Defining a function which detects that \signa
does not belong to the list of commands provided by Latex-math-default
when the cursor is at \signa
would be perfect.
\signa
(not the entire document). As I explained above I thought as the correct syntax are already available to Emacs via Latex-math-default, a simple solution is perhaps conceivable. Let me make it precise it at the body of my question. By the way I couldn't findflycheck
on my Emacs.