emacs - Emacs LaTeX 模式下的 ispell

标签 emacs latex ispell

当我运行 Emacs 命令 ispell-buffer在处于 LaTeX 模式的 Emacs 缓冲区上,ispell 也在数学表达式中检查拼写。

我非常想禁用它。有没有简单的方法来做到这一点?

我读过关于 detex 的文章,但 detex 似乎没有集成到 Emacs 中。

最佳答案

如果您使用 latex (例如\[ ...\]、方程环境和 &c)来调用数学模式,则不应该这样做。查看ispell-tex-skip-alists的内容;参看。 section 6 of the ispell FAQ应该有什么样的东西。

您可以使用 $..$, $$..$$ 使用 ispell-tex-skip-alists 来标记数学,但要小心让它们脱离平衡...

后记

还要检查 ispell-parser 的值变量:这应该是 'tex ,否则 ispell 将不会查找 $...$ 和 $$...$$ 区域。

关于emacs - Emacs LaTeX 模式下的 ispell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2121960/

相关文章:

Emacs ispell goto 上一个单词?

用于 Markdown 和 Python 的 Emacs 多模式

emacs 分成 3 个偶数窗口

latex - 用于记录的轻量级标记 (wiki) 语言

latex - 在 latex 中的项目中添加箭头

emacs - 运行 Emacs ispell 命令不要求确认保存到私有(private)字典

sockets - 原子地写入套接字

linux - gdb -i=mi 是什么意思?

r - 防止 kableExtra 横向表中的分页