On Wed, 27 Mar 2002 00:15:00 +0000 wrote John Levon <[EMAIL PROTECTED]>:
> > Inelegant kludge ....
> >
> > Use the "article (AMS)" style, which centres sections. Then put a
> protected
> > space (Ctrl-space) to stop it disappearing.
>
> Elegant kludge: copy the existing LyX layout you are using and add
> something like :
>
> Style Section
> KeepEmpty 1
> End
>
> to it, then use that (and set whatever latex you need for centered
> sections).
still more elegant: create a new LyX *.layout in your
~/.lyx/layouts directory.
Example for article:
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass{article (with empty centered headings)}
Input article.layout
Style Section
KeepEmpty 1
Align Center
AlignPossible Left, Center, Right
End
# The same for Subsection ans Subsubsection if desired.
> This is described in Customization.
> LyX (at least 1.1.6 [GM]) still won't let you press
> "return" on an empty Section (or whatever), BUT you can edit the text
> to be empty, and it will stay there.
I normally write the following paragraph first, then move up and insert the
empty paragraph (e.g. the section) and finally move down again (as the
cursor keys work) to continue writing. Still, a fix to this unwanted
behaviour is on top of my personal lyx wishlist.
Guenter
--
[EMAIL PROTECTED]