#If WinActive("ahk_exe Typora.exe") or WinActive("ahk_exe Notepad3.exe") or WinActive("ahk_exe miktex-texworks.exe") or WinActive("ahk_exe texstudio.exe") or WinActive("ahk_exe Chrome.exe")
; 在Typora 和 Notepad3 中使用数学快捷键
; 我们将在本地输入好 latex 文件再放到在线预览编译
CapsLock:: Send {$}{$}{Left}
; 常用符号 `反引号`
:?*:``/::\frac{{}*{}}{{}{}}{left 3}+{Left} ;除号
:?*:``=>::\implies{Space} ;隐含
:?*:``|-::\mapsto{Space} ;映射箭头
:?*:``->::\to{Space} ;→
:?*:``>=::\geq{Space} ;大于等于
:?*:``<=::\leq{Space} ;小于等于
:?*:``zj::\subseteq{Space} ;子集
:?*:``mod::\equiv * \pmod *{Left 8}+{Left} ;同余
:o?:``~::\sim{Space} ; 相似
:?*:``sb::{^}{{}{}}{Left} ; 上标
:?*:``xb::_{{}{}}{Left} ;下标
:o:``sum::\sum_{{}*{}}{^}{{}*{}}{Left 5}+{Left} ; sum 求和