On 11/27/2013 04:29 AM, Tamás Balázs wrote:
Dear Sir or Madam,

This question is long-matured in me for a long time.
I have been using lyx to several purposes for 3 to 4 years.
Now I decided to make a new book class/template for lyx.
The main reason for this is that I want to create something unique and write a book in he future. I believe in myself in that way that I can do that. However, I also need your assistance to succeed.
I have some questions for you regarding my aims:

Is it possible to write the new book template in lyx or do I need to write it in tex/latex ? If I need to code it in latex then would it be possible to use/test it in lyx ?
Or will I need an other program for example texlive ?
I want to use the template in lyx at the end of the process as I did before. It won't be a problem if I need to code it. I just want to create an original book template
which meet my needs. That's all...

Thank you so much for your help !

If you want to write a new book CLASS that you can use in LyX, then you need to do two things.

First, you have to write the LaTeX cls file. This does not involve LyX in any way.

Second, you have to write a LyX layout file for your new class. This process is described in some detail in Chapter 5 of the Customization manual. The best way to start, though, is simply to study the existing layout files, e.g., book.layout (for book.cls), or scrbook.layout (for Koma-Script book), and see how they work. You will probably be able to start your new layout file by copying one of these, and then making whatever changes you need to make. (Note that the layout file itself will just be written in some text editor, not in LyX.)

Finally, if you want to make a template for your new layout file, then this is easy. A template is just a LyX file that is stored in a special location. Really, they aren't very different from example documents created for some particular class that illustrates how the various features of that class can be used.

If you have more questions about that, ask them on the *user* list. This list is more for programming issues.

Richard

Reply via email to