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.
使用 emacs 编辑 .Rnw 文件时,有时会混淆我是否处于数学模式。然后,语法高亮被弄乱了,Cfi 插入 \textit{} 和 \mathit{} 与正常情况相反。似乎有一些布尔存储或不存储数学模式的状态,它会无意中翻转。有没有办法可以手动将其翻转回来?
我注意到如果我插入一个新的 R 块然后删除它,这通常会自行纠正。不是一个优雅的解决方案,但它对我有用。