TransWikia.com

Changing style of (sub)sections

TeX - LaTeX Asked on March 28, 2021

How can I change the style of sections and subsections…

I want this:

enter image description here

Instead of this default style:

enter image description here

Please note that the first style is indented meanwhile the default one is not. My document class is book.

One Answer

Use the titlesec package and redefine the format for subsection like

titleformat{subsection}[runin]%
{normalfontnormalsizebfseries}{hspace*{parindent}thesubsection}{1em}{}

Correct answer by schoekling on March 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP