On Tue, 18 Feb 2003, Angus Leeming wrote: > Christian Ridderström wrote: > > > Anyway, these were just some loose thoughts on UI and GUI... my point is > > (probably) that I think we should avoid letting the GUI taking over > > completely, i.e. make sure that things can still be done in a more > > "programming"-like way. > > If you think that the GUI has taken over LyX then you are exactly wrong. We > have worked sooooooo hard to achieve GUI-independence because we want the > LyX core to be independent of the GUI.
I wasn't really thinking that.. but I'm happily reminded by what you wrote anyway :-) I was too focused on the 'G' in GUI-independence... Ok... thinking out loud: What does this imply for the ability to set for instance paper margins based on information in a separate file? (Not necessarily a text-file, it might be very useful to get settings from another lyx-file) Right now (AFAIK), the margins can be set using the GUI, or as I did, with latex in the preamble. Assuming that there is an LFUN for setting the margins (I looked briefly in commandtags.h, but I didn'f find one), how would this be called? Hmm... I guess a script with instructions in some kind of "lyx"-langugage, could be sent to the core. However, you would still manually have to start this script... whereas you'd like this done at compile time. ... what I want to preserve is the possibility to let some kind of script, or program, control settings and what is actually output -- as opposed to manually doing it. Actually, I must have been thinking about preserving the possibility to change appearance and content "programatically", i.e. using some kind of script or program. Furthermore, if I think of the preamble as a place where you put source code that is executed whenever you compile the document, I realize that what I'd like from lyx is really 'callback' functionality! Conclusion: I'd like lyx to be able to make lyx call other programs (or include 'source') when compiling the document. /Christian -- Christian Ridderström http://www.md.kth.se/~chr