0

I'm looking to personalise my own chapter style as shown in the photo.

Despite a few articles on the subject I haven't managed to fully understand how it works and what needs to be done to achieve the following result. My document is a report.enter image description here

MatDef
  • 1
  • 1
  • @MatDef try titlesec or sectsty packages. There are a lot of questions already on this site and tutorials on how to use these packages. – Mane32 Mar 08 '24 at 14:23

1 Answers1

2

This is quite easy using a configurable class like the KOMA-Script classes scrreprt, which is another report class, or scrbook, which is another book class:

\documentclass[chapterprefix]{scrreprt}% or scrbook
\usepackage{libertinus}% use any scalable font you want

\setkomafont{chapter}{\normalfont\huge}% Font of the chapter title \setkomafont{chapterprefix}{\normalfont\fontsize{48}{48}\selectfont}% Font of the chapter number \renewcommand*{\chapterformat}{\thechapter}% Use just the chapter number without any prefix in the number line \let\raggedchapter\centering% horizontal centering of chapter headings

\usepackage{lipsum}\setcounter{chapter}{2}% Only for demonstration

\begin{document} \chapter{Methodology} \lipsum[1] \end{document}

enter image description here

Several more configuration options are provides, e.g., to modify the spaces above the number, below the number and below the title. See the KOMA-Script manuals for more information.

Similar things can be done using, e.g., memoir class or package sectsty or titlesec. Please see the manuals for more information and ask a question with minimal working example if you have problems implementing your requests.

cabohah
  • 11,455
  • It still possible for document of type "report" ? – MatDef Mar 08 '24 at 10:33
  • 1
    @MatDef Still? The original question did not even mention report, but only asked for a general chapter style. Changing a question after it has been answered and thus damaging the validity of the answer is not exactly friendly. But, why don't you test it? My example also works with scrreprt, which is not report but still a report class. The examples in the linked answers work with both book and report or already show solutions using report. So your changed question IMHO is a duplicate. – cabohah Mar 08 '24 at 10:53