Bo Peng wrote:
In any event, flex insets are what used to be charstyles, only now it's
possible to make them collapsable as well as inline. So you can do
something like this:
InsetLayout Custom:Label
   LyXType    custom
   LatexName    label
   LatexType    command
   Decoration    classic
   LabelString    Label
End
OK, using lyx1.6svn, open user's guide, where can I find a flex inset?
If you mean the documentation, I think Martin is still working on it. If you mean an actual flex inset itself, anything that's a character style is a flex inset, though those use the "conglomerate" geometry. So far as I know, there aren't any flex insets in the user's guide that use the "classic" geometry---which is the collapsable style geometry---or the "minimalistic" geometry, which is similar except there's no label when the inset is open. (It may be we could use another, where the button label was based upon the content of the inset. That'd be similar to one of the Index proposals.)

That said, if you include the endnotes module, then look under Inset>Custom Inset, the endnotes inset is collapsable, and it's defined this way:
InsetLayout Custom:Endnote
  LyXType    custom
  LatexName    endnote
  LatexType    command
  Decoration classic
  Font
    Size    Small
  EndFont
  LabelString    endnote
  Preamble
    \usepackage{endnotes}
  EndPreamble
End
(Note: I just committed this version.)

Speaking for myself, I know I'm just starting to get my mind around the possibilities here. But the short version is: We're getting close to a point where you don't need to do any C++ to code a new inset, unless it has optional arguments, etc, and we ought to be able to handle those before long.

Richard

--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to