Autohotkey自动将MathType复制的Katex公式(思源笔记)去除$$

MathType偏好里设置成Moodle:TeX filter,输出为Katex格式但包括$$,插入行内公式时不方便

autohotkey代码:

#If WinActive("ahk_exe MathType.exe")
^c::
	SendInput, ^c
        Sleep 500
	;ToolTip %clipboard%
	Clipboard := StrReplace(Clipboard, "$$")
	;ToolTip %clipboard%
return

posted @ 2023-07-02 16:32  思所匪夷  阅读(24)  评论(0)    收藏  举报  来源