On Mon, Nov 03, 2003 at 07:02:35PM +0100, Lars Gullik Bjønnes wrote: > The difference implementation wise might not be huge.
If there is a difference at all. > Just to have a short recap on character styles: > > in latex we'd like to have > > "This \firstname{Lars Gullik} is my firstname." > > And in docbook (xml): > > "This <firstname>Lars Gullik</firstname> is my firstname." > > to work. > > First we need something to hold the firstname in LyX. f.ex. an inset. > Could also be done by dynamic "font properties". > We also want the user to be able to set how this firstname should be > rendered, bold, smallcaps, italics, red etc., both on screen > and on typeset material. CharacterStyle FirstName Format LaTeX Header "\firstname{" Footer "}" Font Series xxx Size yyy EndFont End Format DocBook Header "<firstname>" Footer "</firstname>" Font Series xxx Size yyy EndFont End # on-screen stuff Font Series xxx Size yyy EndFont EndStyle > Also we want to have the layout define this, but we also want the user > to be able to define this inside LyX. So we need to be able to store > them in .layout and in .lyx. That's a general problem. We should allow a Layout section in a .lyx "preamble" that's parsed after the class layout. > (and for docbook we probably want to disallow the user to define them > inside LyX). > > This is a feature I (and I know Jose...) have been dreaming of for a > long, long period. > > So if we could do this, without adding hacks to the core, and with out > having a horrendously bad (G)UI, But that's not really hard to do if you don't want "nice UI". I wonder what is stopping you? > I'll go for almost any solution. If you promise not to argue longer about an implementation than it takes me to code it you could have it next week (without GUI for the layout creation "of course") Andre'