Where are typesetting shortcuts like :sub: defined?

点点圈 提交于 2019-12-06 07:12:18

问题


In particular, is there a way to add a shortcut like :nsub: to \[NotSubset]?


回答1:


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]"]]

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.




回答2:


I'm not sure where the intrinsic ones are defined, but it seems that you can add your own using InputAliases.



来源:https://stackoverflow.com/questions/4142824/where-are-typesetting-shortcuts-like-sub-defined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!