On 07/12/2012 11:05 AM, Alex Vergara Gil wrote:
El 11/07/2012 07:19 p.m., Allen Wilkinson escribió:
(...)
Why doesn't LyX just default to the .cls files definitions and abandon the need for layout files?

(...)

Dear Lyxers

I half agree with this question, layout files are very useful when you have to get more than one cls file definition (i.e a master document is a book and a child document is an article and so on), but when you are writting just an article the editors often offer you a cls file already (ElSevier for example). I propose one of two solutions: isn't a way to get layout files automatically from cls file definitions, if this is too overwhelming I can handle with just the basics and then add manually the rest for the first glance (a python script would be nice, suggested name "cls2layout.py"); second solution could be that lyx can actually read the cls file as an option to the layout file, this is not in lyx philosophy but why not? It would be helpful in some specific cases like this which is used a lot. Probably this is solved someway or someone has already found a solution so it would be nice if it is published here, I'm open at suggestions.

If someone wants to figure out a way to generate a layout file from a LaTeX class file, then I don't see why this would be impossible, but I think it would prove to be a whole ton of work.

As always, if you have an itch, then open source gives you a chance to scratch it.

Richard

Reply via email to