Nick Bell
2008-11-17 07:54:48 UTC
Good morning LyXians,
I've made some useful key bindings to help me insert super/subscript text:
% Replace selected text with text subscript
\bind "C-M-equal" "command-sequence cut;math-mode; math-subscript;
math-insert \text{;paste;math-insert };char-right;char-right;char-right"
% Enter text subscript mode
\bind "C-equal" "command-sequence math-mode; math-subscript; math-insert
\text{};char-right;char-right;char-right;char-left;down;char-left;"
% Replace selected text with text superscript
\bind "C-S-M-equal" "command-sequence cut;math-mode; math-superscript;
math-insert \text{;paste;math-insert };char-right;char-right;char-right"
% Enter text superscript mode
\bind "C-S-equal" "command-sequence math-mode; math-superscript;
math-insert
\text{};char-right;char-right;char-right;char-left;up;char-left;"
Which I save as nick.bind in ~/Library/Application Support/LyX-1.6/bind,
and switch the bind file in the preferences dialog to the file, my new
shortcuts work, but I lose the mac.bind bindings (as expected from
documentation).
To try to put them back I put
\bind-file "mac"
as the first line of nick.bind, save preferences and restart. Doesn't
work; I try \bind-file "mac.bind", \bind-file mac, \bind-file mac.bind,
and none of these work either.
I then try copying my mac.bind file from /Applications/... to
~/Library/Application Support/LyX-1.6/bind, and I still can't get the
\bind-file command to work.
I got what I want by adding my customisations to the bottom of the copy
of mac.bind placed in my userdir/bind. Is there a way of getting the
proper \bind-file behaviour to work?
~Nick
I've made some useful key bindings to help me insert super/subscript text:
% Replace selected text with text subscript
\bind "C-M-equal" "command-sequence cut;math-mode; math-subscript;
math-insert \text{;paste;math-insert };char-right;char-right;char-right"
% Enter text subscript mode
\bind "C-equal" "command-sequence math-mode; math-subscript; math-insert
\text{};char-right;char-right;char-right;char-left;down;char-left;"
% Replace selected text with text superscript
\bind "C-S-M-equal" "command-sequence cut;math-mode; math-superscript;
math-insert \text{;paste;math-insert };char-right;char-right;char-right"
% Enter text superscript mode
\bind "C-S-equal" "command-sequence math-mode; math-superscript;
math-insert
\text{};char-right;char-right;char-right;char-left;up;char-left;"
Which I save as nick.bind in ~/Library/Application Support/LyX-1.6/bind,
and switch the bind file in the preferences dialog to the file, my new
shortcuts work, but I lose the mac.bind bindings (as expected from
documentation).
To try to put them back I put
\bind-file "mac"
as the first line of nick.bind, save preferences and restart. Doesn't
work; I try \bind-file "mac.bind", \bind-file mac, \bind-file mac.bind,
and none of these work either.
I then try copying my mac.bind file from /Applications/... to
~/Library/Application Support/LyX-1.6/bind, and I still can't get the
\bind-file command to work.
I got what I want by adding my customisations to the bottom of the copy
of mac.bind placed in my userdir/bind. Is there a way of getting the
proper \bind-file behaviour to work?
~Nick