开发者

texniccenter shortcut for user defined command

开发者 https://www.devze.com 2023-01-31 10:08 出处:网络
Is there any chance to insert a \"user defined command\" in texniccenter by shortcut? I want to insert a \"user defined command\" but 开发者_如何转开发all i found at the shortcut menu was to edit the

Is there any chance to insert a "user defined command" in texniccenter by shortcut?

I want to insert a "user defined command" but 开发者_如何转开发all i found at the shortcut menu was to edit the shortcuts by shortcut. Even in the new Alpha version i didn't found any hint how to do that.

have someone an idea?


Go into the Insert menu, then under "Own Text Modules" select Manage. You can add your own in there and then add the "Own Text Modules" to the shortcuts.


J found a solution for this Problem, especially if you want to add e.g. \bm{} to an existing word or phrase.

First of all, define your "Own Text Module", for which you want to create a shortcut. Then, try to use this command with your keyboard (Alt + I + M + (x)” where (x) is the number in front of your own text module within the menu.

For the german Version, it is (“Alt + E + B + (x)”). Remember this combination. Then assign this shortcut with the program AutoHotkey. The AutoHotkey script looks like this (for the german Version):

%%%
^b::Send !eb 6 
Return
%%%

This means: ^b(= <kbd>Ctrl</kbd> + <kbd>B</kbd>) sends the command: ! (Alt)eb 6

I had to add a space between b and 6, however, otherwise it did not work. It works great for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消