Home Download Buy Blog Forum Support

key bindings and tab triggers for latex

key bindings and tab triggers for latex

Postby trinix on Tue Nov 29, 2011 6:57 am

Hi,

Working on a mac with LaTeX, I would like to add certain key bindings and tab triggers. I checked the docu, but did find a right approach.

What would be the right way, e.g. to add the key binding "cmd + i" to create
Code: Select all
\emph{}
. Then either the caret is between the curly brackets or the selected text is taken and placed between the curly brackets.

Thanks for any advice.
Christian
OS X, MacTeX 2013, ST 2, Skim
trinix
 
Posts: 30
Joined: Tue Sep 20, 2011 1:57 pm

Re: key bindings and tab triggers for latex

Postby Marciano on Tue Nov 29, 2011 3:33 pm

I implemented this over the week-end. Check the new documentation: on Mac, it's bound to Shift+Option+w,e (that is, first you press Shift+Option+w, then you press e). Bold, underline, and wrapping in an arbitrary command works similarly: again, check the docs.
Marciano
 
Posts: 146
Joined: Fri Sep 18, 2009 2:55 am

Re: key bindings and tab triggers for latex

Postby trinix on Tue Nov 29, 2011 4:13 pm

For some reason, it does not work in my case.

Opened a new file and saved it as tex file. Typed "test" and selected it. Pressed shift+alt+w, released shift and alt and pressed e. Nothing happens and the text its still selected.

Any ideas?
OS X, MacTeX 2013, ST 2, Skim
trinix
 
Posts: 30
Joined: Tue Sep 20, 2011 1:57 pm

Re: key bindings and tab triggers for latex

Postby Marciano on Wed Nov 30, 2011 3:58 pm

Uhm.... did you update to the latest version of the plugin? I just tried again on my iMac at work, and it works...
Marciano
 
Posts: 146
Joined: Fri Sep 18, 2009 2:55 am

Re: key bindings and tab triggers for latex

Postby trinix on Fri Feb 24, 2012 2:41 pm

Works fine now.

I modified the files as I need. But updating the LaTeXtools plugin would overwrite the changes I made.

How should I do my changes and preserve it when updating :?:


Thx
Christian
OS X, MacTeX 2013, ST 2, Skim
trinix
 
Posts: 30
Joined: Tue Sep 20, 2011 1:57 pm


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 26 guests