Re: How to add/change/delete styles, the new way?

2018-03-05 Thread Richard Heck
On 03/05/2018 09:51 PM, Steve Litt wrote:
> Hi all,
>
> I've used LyX since 2001 so I got used to adding, changing and deleting
> environments and paragraph styles by using a separate layout file to
> create a new document class based on the document class I want to
> modify (typically Book). It works.
>
> But now I'm presenting Linux Content Editing at GoLUG, LyX is a part of
> it, and I'd like to present the newer method of adding, changing and
> deleting styles (environments and paragraph styles). I forgot what that
> new way was, how to use it, and where to learn about it. Could you
> refresh my memory?

There are two options.

One: Use a "module". Think:
    LyX layouts are to LaTeX document classes as LyX modules are to
LaTeX packages
I.e., modules are for alterations, new features, etc, that are not
document-specific but aren't worth a full new document class. You can do
anything in a module you can do in a layout file. They're dynamic
includes, if you like.

User modules should go into $USERDIR/layouts/, and have the extension
".module". You need to reconfigure LyX after adding a new one in order
to see it under Document> Settings> Modules. Note that you can edit
these without restarting if you use the (officially discouraged) LFUN
"layout-reload" in the minibuffer to, uh, reload. (I added that for you.)

Two: Use "Local Layout", which you will find under Document> Settings.
This is for layout informatios really is document-specific. Say, you
need a character style, but really only for this document. Then put that
into Local Layout. These are reloaded every time you edit, so they can
be 'worked on' live. But maybe not on a production document?

The syntax is the same in both cases. See Chapter 5 of the Customization
manual for all the details.

Richard



How to add/change/delete styles, the new way?

2018-03-05 Thread Steve Litt
Hi all,

I've used LyX since 2001 so I got used to adding, changing and deleting
environments and paragraph styles by using a separate layout file to
create a new document class based on the document class I want to
modify (typically Book). It works.

But now I'm presenting Linux Content Editing at GoLUG, LyX is a part of
it, and I'd like to present the newer method of adding, changing and
deleting styles (environments and paragraph styles). I forgot what that
new way was, how to use it, and where to learn about it. Could you
refresh my memory?
 
SteveT