Daniel Lohmann wrote:
Hi Lyx-Folks,
One of the less documened, but very useful features of LyX is to assign
formattings by key strokes. It is so convenient to press e.g. "ALT-P S"
to format a paragraph as "Standard"
So I looked up the actually defined keystrokes in menus.bind. However, I
am either not able to interpret some of them or I just fail to press
them on a German keyboard. Maybe somebody could put some light on this:
# I have no problems with these:
\bind "M-p ~S-5" "layout Paragraph"
\bind "M-p ~S-6" "layout Subparagraph"
# I don't know how to press these
# What is asterisk on a German keyboard?
# Or is it a "magic" key?
\bind "M-p ~S-asterisk ~S-5" "layout Paragraph*"
\bind "M-p ~S-asterisk ~S-6" "layout Subparagraph*"
The last character in the layout name (the '*' in 'Paragraph*') is an
asterisk. Do German keyboards not have that character?
In a more general sense: Is there any document that describes the
definition format of \bind strokes? I am specifically interested in the
non-obvious details, e.g. the names of special keys and the meaning of
symbols such as ~ or -
There's quite a bit of information the wiki at
http://wiki.lyx.org/Tips/KeyboardShortcuts.
The hyphen (-) is just used to indicate a multiple-key combination. For
instance, 'M-p' means strike 'p' while holding down the "meta" key (Alt
on many keyboards). The hyphen does not literally represent a character
itself.
The tilde (~) basically says "don't worry about this key". So the
binding for "Paragraph*" should be read as: first strike 'p' while
holding down the "meta" key, then strike '*' (ignoring the status of the
shift key), then strike '5' (again ignoring the status of the shift key).
HTH,
/Paul