On 2009-06-22, rgheck wrote:
> Tad Marko wrote:
>> Hello,

>> Another basic newbie question:

>> I would like to extend the book layout with the "Chapterprecis" from the
>> book (memoir)" layout. It is probably naive to assume this is as simple as
>> copying book.layout and copying the Chapterprecis style from memoir layout.
>> Can anyone tell me a bit about the proper way to do this?


> That might well work, so far as LyX is concerned. But the book class 
> does not have a chapterprecis environment, so you'll need to define it. 
> You can just copy (or adapt) it from memoir.cls.

Remember, that you *must not* change the book.cls document class file
directly.

Instead, you can

a) Create a new class file based on book.cls.

b) Create a new style file (package) and load in the layout or a module.

c) Add the environment to the preamble block in your layout file.

d) Add the environment to the preamble block of a module file.


How to create a latex package or class is described in the clsguide.pdf
(comes with your LaTeX distribution). How to write a LyX layout or module
file is described in the Customization manual.

Günter

Reply via email to