Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有同样的问题,这里详细介绍了由 \Sexpr 命令中包含的“$”引起的 - 破坏了 Emacs 的语法突出显示。不幸的是,尚未提出明确的解决方案。
现在我在这里阅读了一个类似问题的解决方案,我正在努力适应我的情况。这个想法是在 Emacs 的首选项中将 \Sexpr 设置为逐字环境。
我试过了
(setq LaTeX-verbatim-environments-local '("Sexpr"))
但没有结果。
使用
(add-to-list 'LaTeX-verbatim-macros-with-braces "Sexpr")
并重新启动LaTeX-mode对我有用。
LaTeX-mode