Text FormattingAdjust title indentationfor long title

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
diagram
Posts: 1
Joined: Tue Jan 12, 2021 9:30 pm

Adjust title indentationfor long title

Post by diagram »

I want to adjust title margins for two lines length titles. For example, is like below. How can I adjust? Thank you for your understanding I don't know how can I explain my problem.

Code: Select all

\titleformat{\chapter}{\normalfont\normalsize\bfseries}{\thechapter.}{1em}{}
\titleformat{\section}{\normalfont\normalsize\bfseries}{\thesection.}{1em}{}
\titleformat{\subsection}{\normalfont\normalsize\bfseries}{\thesubsection.}{1em}{}
\titleformat{\subsubsection}{\normalfont\normalsize\bfseries}{\thesubsubsection.}{1em}{}
\titlelabel{\thetitle.\quad}
I'm using titlesec,


Image

Code: Select all

\subsection{Outage probability for cooperative transmission using DF method under co-channel interference effect}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Adjust title indentationfor long title

Post by Bartman »

Without a Infominimal working example we don't know which document class you are using. There are document classes that have their own tools for such settings and whose cooperation with titlesec is therefore not recommended as it can lead to problems. So if you work with a standard class, you can find a suitable shape in section 3.1. "Format" of the package documentation.
Post Reply