Emacs:自动将LaTeX替换为Unicode符号 [英] Emacs: automatically replace LaTeX to Unicode symbols
问题描述
- 使用嵌入式LaTeX :以
\land
的形式输入其表示形式按 Cc Cx \ (org-toggle-pretty-entities
)可以逐字查看; - 使用 Cx 8 RET (
insert-char
)。
然而,我希望它的行为方式如下:我输入LaTeX表示,并自动转换为物理Unicode格式(缩写?)。有没有一个包,如果没有,应该写什么elisp来实现这个行为?
Mx set-input-method
RET TeX
听起来像你想要的。 / p>
执行 Mx describe-input-method查看可用符号
RET TeX
(或其绑定 Ch I
)。
In Emacs I frequently use math symbols when I write my theory summaries of math textbooks. I use org-mode to structure information and I know about at least two methods of entering special symbols:
- Using embedded LaTeX: enter its representation in the form
\land
then press C-c C-x \ (org-toggle-pretty-entities
) to view it literally; - Using C-x 8 RET (
insert-char
).
I want it however to behave the following way: I enter the LaTeX representation, and it is automatically converted into the physical Unicode form (abbrev?). Is there a package for that and if not, what elisp should I write to implement this behavior?
M-x set-input-method
RET TeX
sounds like what you want.
View available symbols by executing M-x describe-input-method
RET TeX
(or its binding C-h I
).
这篇关于Emacs:自动将LaTeX替换为Unicode符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!