2010年12月28日星期二

Add shortcut to Lyx

I want to add two shortcut in Lyx: one for View->View [PDF(pdflatex)] and one for View->Update [PDF(pdflatex)].

1. Find menus.bind in ~/lyx/bind (in my system is in ./usr/local/share/lyx/bind).

2. Modify access privilege: sudo chmod 777 menus.bind

3. Open menus.bind and add

\bind "C-k" "buffer-view pdf2"
\bind "C-u" "buffer-update pdf2"

save and close menus.bind. Here, "C-k" means "Ctrl + k" which can be specified as any unused one.

4. Run the menus.bind in terminal.