Bo Peng wrote:
Dear all,
When I think of how to document keyboard shortcuts, and the role of
LaTeXConfig.lyx, and the difficulties to document some features in the
user's guide, I am wondering if shortcuts and other system information
can document themselves. My conclusion is an InsetInfo.
InsetInfo stores the information it needs to reveal, such as
'lyx:version', 'lyx:lib_path', 'shortcut:insert math',
'shortcut:insert label', 'package_avail:listings'. When it is
displayed on screen or exported to latex, the corresponding
information is used.
In this way, we do not have to produce LaTeXConfig.lyx during
configuration, and we can have a shortcut list that always reflect the
currently used shortcuts.
The implementation, as far as I can tell, is not particularly
difficult. Shortcut is readily available in KeyMap.cpp, and other
infor can be added when needed. Because this is not supposed to be
used by normal users, we do not need any menu item for this inset.
'M-x info-insert shortcut:"inset label"' or a shortcut may be enough.
What do you think?
Bo
I think that JMarc will be amused by the re-emergence of a truly
ancient discussion we once kicked about on this. I *believe* that the
reason the original version never flew was because we concerned that
the documentation would diverge for Qt and XForms users. It may well
be that the time has come to resurrect the idea.
Angus