Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Centering Chapter # and title?

2,370 views
Skip to first unread message

w...@uiuc.edu

unread,
Oct 29, 2002, 4:53:48 PM10/29/02
to
Hi folks,
Does anyone know how to center the Chapter # and title? I have
tried doing \chapter{\begin{center}Introduction\end{center}} but
it doesn't work. Thanks for any tips on doing this.

W.C.
--

Scott Pakin

unread,
Oct 29, 2002, 7:03:40 PM10/29/02
to

I'd use the titlesec package, but see
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=secthead for some
additional options.

-- Scott

SkyBlueSeeker

unread,
Oct 29, 2002, 7:24:56 PM10/29/02
to

> Does anyone know how to center the Chapter # and title? I have

http://www.math.jussieu.fr/~zoonek/LaTeX/LaTeX_samples_chapter/0.html


w...@uiuc.edu

unread,
Oct 29, 2002, 10:27:25 PM10/29/02
to
Thanks to all who have responded. It's that \centering command to be
included in the .sty file that I was looking for. Now the chapter #s and
titles are all centered.

W.C.
--

nuwag...@gmail.com

unread,
Apr 5, 2019, 7:57:26 AM4/5/19
to
how do i center a document

Peter Flynn

unread,
Apr 7, 2019, 7:11:48 PM4/7/19
to
On 05/04/2019 12:57, nuwag...@gmail.com wrote:
> On Wednesday, October 30, 2002 at 12:53:48 AM UTC+3, w...@uiuc.edu wrote:
>> Hi folks,
>> Does anyone know how to center the Chapter # and title? I have
>> tried doing \chapter{\begin{center}Introduction\end{center}} but
>> it doesn't work.

The layout of a chapter heading is controlled by the document class that
you are using, which you haven't told us.

To modify it, use the \titleformat command from the titlesec package.
There is a worked example at Answer 2 in
https://tex.stackexchange.com/questions/241891/chapter-headings-change-alignment-to-center-and-without-the-word-chapter

> how do i center a document

A *whole* document? You mean center all the lines? Add

\begin{center} immediately after \begin{document} and
\end{center? immediately before \end{document}

But except for (perhaps) posters, this would be a very unusual format.
Have I misunderstood what you want to do?

Peter

0 new messages