通常,在对话、电子邮件或论坛中,我想输入一些数学公式,但我不需要完整的方程支持。Unicode 符号应该足够了。
我需要的是一种简单的方法来输入与数学相关的 Unicode 符号。由于我已经了解 LaTeX,因此使用 LaTeX 符号助记符来键入数学符号是有意义的。
我目前所做的是编写一个 AutoHotkey 脚本,\使用 AutoHotkey 功能自动将 后面的 LaTeX 符号名称替换为相应的 Unicode 符号hotstring。然而,事实证明 AutoHotkey 热字符串对于许多字符串来说不稳定。有几十行会导致 AHK 有时无法识别字符串。
还有其他解决方案吗?(不,Alt+(Unicode number)不够方便。)
附件是我的 AHK 脚本。该PutUni函数取自此处。
::\infty::
PutUni("e2889e")
return
::\sum::
PutUni("e28891")
return
::\int::
PutUni("e288ab")
return
::\pm::
PutUni("c2b1")
return
::\alpha::
PutUni("c991")
return
::\beta::
PutUni("c992")
return
::\phi::
PutUni("c9b8")
return
::\delta::
PutUni("ceb4")
return
::\pi::
PutUni("cf80")
return
::\omega::
PutUni("cf89")
return
::\in::
PutUni("e28888")
return
::\notin::
PutUni("e28889")
return
::\iff::
PutUni("e28794")
return
::\leq::
PutUni("e289a4") …Run Code Online (Sandbox Code Playgroud)