2

I can make the chapter name bold by using \textbf{...} in the text file like:

\chapter{\textbf{Scholastic Forest Management Planning and Forest Zoning}}

But I want to make the text "Chapter 1" bold as well.

enter image description here

In order to achieve the above, here is the class that I used/created

% Chapter title formatting
\newcommand*{\chaptertitleformatone}{ % main-matter and appendices
  \titleformat{\chapter}[display]
          {\normalfont\LARGE\normalfont}
         % {\titleline{\leaders\hrule height 1pt\hfill}
              {\titleline{}
        \vspace{5pt}
        \titleline{}
        \vspace{1pt}
        \LARGE\MakeUppercase{\chaptername} \thechapter}
          {1pc}
          {\titleline{}
        \vspace{0.5pc}
        \LARGE}
  • 1
    Using \textbf inside \chapter command is not something encouraged. Strictly speaking, this should be avoided at any cost. Please take a look at this, and see if you like any from the links/examples found in the answers. – Masroor Sep 10 '13 at 1:33
1

Tweak this as you wish.

\documentclass{report}
\usepackage{kpfonts}
\usepackage[explicit]{titlesec}
\titleformat{\chapter}[display]
  {\normalfont}{\Large\scshape\chaptertitlename\ \thechapter}{0pt}{\LARGE\bfseries #1}
\titlespacing*{\chapter}
  {0pt}{65pt}{40pt}

\begin{document}
\tableofcontents
\chapter{Introduction}
Text
\chapter{Main}
\section{Section}
Text
\begin{thebibliography}{99}
\bibitem{Test} test reference
\end{thebibliography}
\end{document}

enter image description here

  • Why the use of explicit here? There's really no need for it to achieve such a simple formatting as the one requested here. – Gonzalo Medina Sep 10 '13 at 2:39
1

Simply use \bfseries in the second argument for \titleformat; then this will apply to both the "Chapter No" string and to the title; a similar remark applies to \LARGE; since you want to use it for all the parts of the title, move it to the second argument.

Also, use \chaptertitlename instead of just \chaptername; the latter will always produce "Chapter" (or its idiomatic localization), whereas the former will correctly produce "Chapter" or "Appendix" if \appendix has been used.

Here's a version of your code (modulo \titleline{} which really isn't doing its job in its present form):

\documentclass{book}
\usepackage{titlesec}

\titleformat{\chapter}[display]
  {\normalfont\LARGE\bfseries}
  {\titleline{}\vspace{5pt}\titleline{}\vspace{1pt}%
  \MakeUppercase{\chaptertitlename} \thechapter}
  {1pc}
  {\titleline{}\vspace{0.5pc}}

\begin{document}

\chapter{Test chapter}

\end{document}

enter image description here

Since, apparently, you are not really interested in having rules in your titles, as the image suggests, your code can be reduced to:

\documentclass{book}
\usepackage{titlesec}

\titleformat{\chapter}[display]
  {\normalfont\LARGE\bfseries}
  {\MakeUppercase{\chaptertitlename}~\thechapter}
  {1.5pc}
  {}

\begin{document}

\chapter{Test chapter}

\end{document}

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.