LaTeX forum ⇒ Text FormattingHow to change size of fons in \chapter{} or \section{} part

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
user22741
Posts: 1
Joined: Fri Nov 09, 2018 12:03 pm

How to change size of fons in \chapter{} or \section{} part

Postby user22741 » Fri Nov 09, 2018 12:10 pm

Hi, I'm starting using Latex, and I need some help with the problem I have.
I have created document like this:
  1. \documentclass[12pt,a4paper,titlepage]{report}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[top=2cm, bottom=2cm, left=2.5cm, right=2.5cm]{geometry}
  4.  
  5. \title{Nazwa projektu}
  6. \date{}
  7.  
  8. \begin{document}
  9. \maketitle
  10. \tableofcontents
  11.  
  12. \chapter{chapter 1}
  13. \section{ sec 1}
  14. \section{sec 2}
  15. text text text TEXT text
  16.  
  17.  
  18. \end{document}




and now I want to change size of font for \chapter \section \subsection etc. parts (at best for whole document), but all methods I've tried like \small, \fontsize{}{} don't work for this parts of text - just normal text changes. Now the text there is too large, so it doesn't fit in one line and don't look esthetic.
I would appreciate the help very much :D

User avatar
Johannes_B
Site Moderator
Posts: 3883
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Nov 09, 2018 1:30 pm

You can use package titlesec to customize your chapter and section titles.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9164
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Nov 10, 2018 1:33 am

Welcome to the forum!

Compare it to

\documentclass[headings=normal,a4paper]{scrreprt}

or

\documentclass[headings=small,a4paper]{scrreprt}

Stefan
Site admin


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 9 guests