Re: example of layout module for LyX 1.6

2008-08-22 Thread Helge Hafting
Steve Litt wrote: Thanks Oliver, I still don't understand the underlying philosophy of layout modules: 0) What is a layout module? A modular approach to layout files. 1) Why are they better than just writing your own layout file? Flexibility. For example, lets say you need a special kind of

Re: example of layout module for LyX 1.6

2008-08-21 Thread rgheck
G. Milde wrote: On 19.08.08, Steve Litt wrote: I developed these, so let me add a bit. 0) What is a layout module? A file with syntax and content similar to a LyX layout file that can be added to a chosen documentclass' layout definitions on a per-document base. Modules are simi

Re: example of layout module for LyX 1.6

2008-08-21 Thread rgheck
Olivier Ripoll wrote: Steve Litt wrote: So is it a way to write once, use many times? Is it a way to use known-debugged LyX/LaTeX code? And is it a way for all of us to trade debugged and tested code without throwing in every silly little feature we put in our book? I think so. At least that

Re: example of layout module for LyX 1.6

2008-08-21 Thread rgheck
Steve Litt wrote: Oh, Maybe I do understand it. Is a layout module just a chunk of debugged LyX/LaTeX code that would normally go in a layout file, and gets included in the layout file by reference? So you could mix and match layout modules to get a more granular modularization, similar t

Re: example of layout module for LyX 1.6

2008-08-20 Thread G. Milde
On 19.08.08, Steve Litt wrote: > I still don't understand the underlying philosophy of layout modules: > 0) What is a layout module? A file with syntax and content similar to a LyX layout file that can be added to a chosen documentclass' layout definitions on a per-document base. > 1) Why are t

Re: example of layout module for LyX 1.6

2008-08-20 Thread G. Milde
On 19.08.08, Olivier Ripoll wrote: > Hi, > I just wanted to share a simple and probably imperfect layout module for > LyX 1.6. ... > As the description says, this module simply defines several useful math > functions that are not available by default. One tip: to get the additional functions

Re: example of layout module for LyX 1.6

2008-08-20 Thread Olivier Ripoll
Steve Litt wrote: On Tuesday 19 August 2008 13:16, Olivier Ripoll wrote: [...] Olivier Oh, Maybe I do understand it. Is a layout module just a chunk of debugged LyX/LaTeX code that would normally go in a layout file, and gets included in the layout file by reference? So you could mix

Re: example of layout module for LyX 1.6

2008-08-20 Thread Olivier Ripoll
Hi Steve, Steve Litt wrote: Thanks Oliver, I still don't understand the underlying philosophy of layout modules: 0) What is a layout module? From my (user) point of view, it is a small ".module" file in your "layouts" folder containing class, styles, etc. But the developers might answer th

Re: example of layout module for LyX 1.6

2008-08-19 Thread Christian Ridderström
On Tue, 19 Aug 2008, Steve Litt wrote: Thanks Oliver, I still don't understand the underlying philosophy of layout modules: 0) What is a layout module? 1) Why are they better than just writing your own layout file? 2) How do you decide when to use them? 3) By what design methodology do you cre

Re: example of layout module for LyX 1.6

2008-08-19 Thread Steve Litt
On Tuesday 19 August 2008 13:16, Olivier Ripoll wrote: > This layout module is simply adding the definitions to the preamble. > Then, when you type in a formula \erf for instance, it will not be > interpreted by LyX (unless you use preview-latex stuff). But when > generating the pdf, they will be

Re: example of layout module for LyX 1.6

2008-08-19 Thread Steve Litt
Thanks Oliver, I still don't understand the underlying philosophy of layout modules: 0) What is a layout module? 1) Why are they better than just writing your own layout file? 2) How do you decide when to use them? 3) By what design methodology do you create them? 4) What are the attributes of a

Re: example of layout module for LyX 1.6

2008-08-19 Thread Olivier Ripoll
Manveru wrote: I do not have 1.6 yet... but I do not understand how LyX understands how to handle these new commands? From my understanding these go only to preamble of document, but how to add these to some buttons on toolbar for example? This layout module is simply adding the definitions to

Re: example of layout module for LyX 1.6

2008-08-19 Thread Manveru
I do not have 1.6 yet... but I do not understand how LyX understands how to handle these new commands? From my understanding these go only to preamble of document, but how to add these to some buttons on toolbar for example? 2008/8/19 Olivier Ripoll <[EMAIL PROTECTED]> > Hi, > > I just wanted to

example of layout module for LyX 1.6

2008-08-19 Thread Olivier Ripoll
Hi, I just wanted to share a simple and probably imperfect layout module for LyX 1.6. I do not know much about LaTeX, so I used the examples provided with LyX and google to create this file. I called it "moremathsfunctions.module" (it should be placed in the "layouts" folder in the lyx 1.6 pr