Emacs:自动将LaTeX替换为Unicode符号 [英] Emacs: automatically replace LaTeX to Unicode symbols

查看:260
本文介绍了Emacs:自动将LaTeX替换为Unicode符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Emacs中,当我写数学教科书的理论总结时,我经常使用数学符号。我使用组织模式来构建信息,我知道至少有两种输入特殊符号的方法:


  1. 使用嵌入式LaTeX :以 \land 的形式输入其表示形式按 Cc Cx \ org-toggle-pretty-entities )可以逐字查看;

  2. 使用 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:

  1. Using embedded LaTeX: enter its representation in the form \land then press C-c C-x \ (org-toggle-pretty-entities) to view it literally;
  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆