how to justify the title of a chapter

822 views
Skip to first unread message

rupai

unread,
Jan 18, 2011, 1:57:09 AM1/18/11
to LaTeX Users Group
Hi,
I am writing my thesis using the template given in the
following website
www.sunilpatel.co.uk/thesistemplate.php

By default, the titles of each chapters are not "justified" in this
template. I would appreciate if you kindly give some suggestion to
justify the title of a chapter.

regards,
rupai...

Edgar Fuentes

unread,
Jan 18, 2011, 11:12:04 AM1/18/11
to LaTeX Users Group
Hi Rupai,

you could override the \@makechapterhead default command. Try putting
in the preamble something like this:

\makeatletter
\def\@makechapterhead#1{%
\vspace*{1cm}%
{\parindent \z@ \centering \normalfont
\ifnum \c@secnumdepth >\m@ne
\@chapapp\space \thechapter
\par\nobreak
\vspace*{-.5cm}
\fi
\interlinepenalty\@M
\Large\bfseries #1\par\nobreak
\vskip 20\p@
}}
\makeatother

see the \centering command at fourth line.

regards,
Edgar Fuentes

rupai

unread,
Jan 19, 2011, 1:11:31 AM1/19/11
to LaTeX Users Group

Hi Edgar,
Thank you so much for your reply. It solved my problem.

Thanks again,
regards,
rupai

Peter Flynn

unread,
Jan 19, 2011, 4:55:00 AM1/19/11
to latexus...@googlegroups.com
On Tue, Jan 18, 2011 at 6:57 AM, rupai <rupa...@gmail.com> wrote:
Hi,
       I am writing my thesis using the template given in the
following website
www.sunilpatel.co.uk/thesistemplate.php

That is not accessible: it says:

HTTP/1.1 301 Moved Permanently
Date: Wed, 19 Jan 2011 09:52:46 GMT
Server: Apache/1.3.41
X-Powered-By: PHP/5.2.6
X-Pingback: http://www.sunilpatel.co.uk/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Last-Modified: Wed, 19 Jan 2011 09:52:46 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Location: http://www.sunilpatel.co.uk/thesistemplate.php
Connection: close
Content-Type: text/html; charset=UTF-8
 
By default, the titles of each chapters are not "justified" in this
template. I would appreciate if you kindly give some suggestion  to
justify the title of a chapter. 

Why do you want to do that? I have never seen a chapter title justified.

Chapter titles are usually centred or ranged left, sometimes ranged right, but never justified (they're not usually long enough, and are usually in too big a size to make it possible).

///Peter
 

Reply all
Reply to author
Forward
0 new messages