Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In TeXworks, there is a shortcut key for the current typesetting menu, Ctrl+T.

I was wondering if I could assign another shortcut key for another typesetting command.

For example, Ctrl+T for pdflatex, and Ctrl+1 for bibtex, etc.

share|improve this question

2 Answers 2

up vote 5 down vote accepted

This isn't the typesetting menu works: choosing BiBTeX from the menu doesn't run bibtex but instead associates CTRL-T to the bibtex command. So even if you could associate a key to the BibTeX menu item, it wouldn't do what you want.

There is no way to reassign keys within TeXWorks itself; It also doesn't appear to be possible to assign keys through other OS-dependent methods. For example, on a Mac, you can assign keyboard shortcuts to any menu item in any application using the System Preferences -> Keyboard panel, but this doesn't seem to work with TeXWorks. Whether such methods work in other OSes (Windows or Linux) I can't confirm.

share|improve this answer
    
I don't think it's possible to assign keyboard shortcuts to TeXworks on Mac OS X, because it uses non Apple libraries for doing its business. Indeed I tried: the shortcut appears next to the menu item but does nothing. –  egreg Jul 6 '11 at 19:36
    
@egreg Yes, that's my experience too. One of the downsides of cross-platform applications I guess. So maybe any OS-dependent means of assigning keys won't work with it. (I don't have any other OSes at my disposal to check.) –  Alan Munn Jul 6 '11 at 19:49
    
@egreg I've updated my answer to reflect the facts better. –  Alan Munn Jul 6 '11 at 19:59
    
TeXworks uses Qt, so I guess that it may work on Linux boxes with KDE. Or maybe there's some utility for Qt that works also with Gnome, since each application manages its menus (which is not completely the case with Mac OS X). –  egreg Jul 6 '11 at 19:59

There are some pataches here which might work for you: http://code.google.com/p/texworks/issues/detail?id=17

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.