3

I am using the report class to submit my thesis. Since my university wants the word 'chapter' to be in a different font, and the title of the chapter to be in a different format, I made some changes. The problem is that, the word chapter is not appearing because of the modifications I made. Is there any way I could still get the word chapter to appear with the this format?

Here's the code

\documentclass{report}

\usepackage[top=1.0in,bottom=0.75in,left=1.25in,right=1in]{geometry}
\usepackage[onehalfspacing]{setspace}

\makeatletter
\renewcommand\chapter{\@startsection{chapter}{{Chapter} 1}{\z@}
    {-3.5ex \@plus -1ex \@minus -.2ex}
    {2.3ex \@plus.2ex}
    {\normalfont\LARGE\bfseries}}
\makeatother

\begin{document}

\chapter{title}

\end{document}

I want this:

Chapter 1 Title

but I'm getting that:

1 Title

  • I think you mean "different format" rather than "different font". – jub0bs May 4 '13 at 18:05
  • Yes, that's want I meant. Sorry!! my bad – Raghuram May 4 '13 at 18:07
  • I added the extra {Chapter} to see if it works, but as expected I got an error – Raghuram May 4 '13 at 18:13
  • @user1556826 I updated my answer with an option without additional packages. – Gonzalo Medina May 4 '13 at 22:46
4

To easily make modifications to the sectional unit headings, you can use the titlesec package:

\documentclass{report}
\usepackage[top=1.0in,bottom=0.75in,left=1.25in,right=1in]{geometry}
\usepackage[onehalfspacing]{setspace}
\usepackage{titlesec}

\titleformat{\chapter}[block]
  {\normalfont\LARGE\bfseries}{\chaptertitlename\ \thechapter}{1em}{}
\titlespacing*{\chapter}
  {0pt}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus.2ex}

\begin{document}

\chapter{Test Title}
Test text

\end{document}

enter image description here

If you don't want to use additional packages, you need to redefine the internal commands \@makechapterhead (for numbered chapters) and \@makeschapterhead (for unnumbered chapters), The code below contains the redefinitions needed to obtain the result you required:

\documentclass{report}
\usepackage[top=1.0in,bottom=0.75in,left=1.25in,right=1in]{geometry}
\usepackage[onehalfspacing]{setspace}

\makeatletter
\def\@makechapterhead#1{%
  \vskip-3.5ex \@plus -1ex \@minus -.2ex%
  {\parindent \z@ \raggedright \normalfont
    \LARGE\bfseries%
    \ifnum \c@secnumdepth >\m@ne
      \@chapapp\space \thechapter\hspace{10pt}
    \fi
    \interlinepenalty\@M
    #1\par\nobreak
     \vskip2.3ex \@plus.2ex
  }}
\def\@makeschapterhead#1{%
  \vskip-3.5ex \@plus -1ex \@minus -.2ex%
  {\parindent \z@ \raggedright
    \normalfont
    \interlinepenalty\@M
    \LARGE\bfseries  #1\par\nobreak
    \vskip2.3ex \@plus.2ex
  }}
\makeatother

\begin{document}

\chapter{Test Title}
Test text

\end{document}
  • I used the package, and works like a charm. Thank You!! – Raghuram May 5 '13 at 5:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.