Steve Litt wrote:
On Sunday 16 November 2008 03:43:04 pm rgheck wrote:

Yes, that's what you need. Try something like this:

#\DeclareLyXModule{TextSuperSub}
#DescriptionBegin
#Adds an endnote inset, in addition to footnotes. You will need to add
#\theendnotes in ERT where you want the endnotes to appear.
#DescriptionEnd

Format 11

InsetLayout Custom:Superscript
   LyXType    custom
   LatexName    textsuperscript
   LatexType    command
   Decoration classic
   Font
     Size    Small
   EndFont
   MultiPar false
   LabelString    super
End

and something similar for subscripts. Save it to textsupersub.module in
your LyX layouts directory and reconfigure. You can tweak it as you wish.

Hi Richard,

What's the difference bettween InsetLayout, CharacterStyle and Environment? When would you use InsetLayout over one of the others?

InsetLayout is new in 1.6. It incorporates the old charstyle (LyXType charstyle) and also these new "custom insets", which look like footnotes but do anything you like. Of course, textsuperscript could (and probably should) be a charstyle.

What is the Decoration LyX property (set to "classic" in your example)?

This makes the inset look like a footnote: with a little button. There are other choices, too: minimalistic (no button) and, uh, can't remember.

rh

Reply via email to