On Fri, Feb 09, 2001 at 10:37:24AM +0100, Chris Schulbert wrote:
> Hi!
>
> I've just tried to center some of my section--headers (and
> paragraph--headers). In report.sty this won't work. Is there a LaTeX-Code to
> do this?
Put \protect\centering anywhere in the section paragraph.
Alternatively, if you use LyX 1.1.6fix1, you can edit the stdsections.inc
file: go to the 'Style Section' entry
and change the line
AlignPossible Block, Left
to
AlignPossible Block, Left, Center
and then you will be able to use the layout paragraph dialog to center the
sections.
Finally, if you want to center all sections, put
\usepackage{sectsty}
\sectionfont{\centering}
in the preamble.