Discussion:
Centering Chapter titles
Francisco J. León
2004-06-02 04:06:44 UTC
Permalink
Hi, i am using the "book" layout and it shows like this:

Chapter 1

The Title

Text................

I need Chapter 1, the title to be centered instead of aligned to the
left.

The subtitles are shown in bold, i need them to _not_ be bold

Also in the first page of the chapter it uses a margin of about 6
centimeters, i need it to be smaller than 4cm.

I have tried doing a custom layout and putting it in my home dir's
layout dir inside my .lyx dir, for example:

Style Chapter
TopSep 4
LabelString Capitulo
End

But it doesn't work (and i have checked that i was in fact using my
custom layout)

Can someone teach me how to do this changes? I am lost.
William O. Bray
2004-06-02 13:03:34 UTC
Permalink
In preamble add
\usepackage{sectsty}
\chapterfont{\centering}

Similarly, you can add
\sectionfont{\centering}, etc.

Sectsty is a standard LaTex package usually found in
.../texmf/Tex/latex/misc
at least in my tetex installation.
Bill
Post by Francisco J. León
Chapter 1
The Title
Text................
I need Chapter 1, the title to be centered instead of aligned to the
left.
The subtitles are shown in bold, i need them to _not_ be bold
Also in the first page of the chapter it uses a margin of about 6
centimeters, i need it to be smaller than 4cm.
I have tried doing a custom layout and putting it in my home dir's
Style Chapter
TopSep 4
LabelString Capitulo
End
But it doesn't work (and i have checked that i was in fact using my
custom layout)
Can someone teach me how to do this changes? I am lost.
Continue reading on narkive:
Loading...