Hi Paul,
# 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?
Of course they have it. It was just my ignorance regarding the meaning of
"asteriks". Now I do understand the principle and everything works like a
charm :-)
Thanks a lot, Paul!
Daniel
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).