像 :sub: 这样的排版快捷方式在哪里定义? [英] Where are typesetting shortcuts like :sub: defined?
问题描述
特别是,有没有办法将:nsub:
这样的快捷方式添加到\[NotSubset]
?
In particular, is there a way to add a shortcut like :nsub:
to \[NotSubset]
?
推荐答案
对于 \[NotSubset]
,默认别名是 ⋮!sub⋮
.当然,如 HPMark 的回答中所述,如果您对此不满意,可以更改当前笔记本的 InputAliases
:
For \[NotSubset]
the default alias is ⋮!sub⋮
.
Of course, as mentioned in HPMark's answer, if you're not happy with that you can either change the InputAliases
for the current Notebook:
oldOpts = InputAliases /. Options[EvaluationNotebook[], InputAliases]
SetOptions[EvaluationNotebook[], InputAliases -> Append[oldOpts, "nsub" -> "\[NotSubset]"]]
或者,可能更好的方法是使用选项检查器将别名添加到当前笔记本或全局首选项(位于编辑选项"部分).后者更改了 $UserBaseDirectory/FrontEnd/init.m
.
Or, probably a better approach is to use the Option Inspector to add the alias to either the current Notebook or the Global Preferences (it's in the Editing Options section).
The latter changes the $UserBaseDirectory/FrontEnd/init.m
.
这篇关于像 :sub: 这样的排版快捷方式在哪里定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!