0

I want to indent the title block of my chapter heading. The code below is almost exactly how I want chapter titles displayed except for the fact that the second line and onward of the chapter title are aligned with the chapter number. How do I do this?

\documentclass{report}
\usepackage{titlesec}    
\titleformat{\chapter}[display]
{\normalfont\Huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Large \thechapter\ \quad}

\begin{document}
    \tableofcontents
\chapter{Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction }
\section{Motivation}
\end{document}

What I wantDesired identation

0

It's simple with the linegoal package:

\documentclass{report}
\usepackage{titlesec}
\usepackage{linegoal}
\titleformat{\chapter}[display]
{\normalfont\Huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Large \thechapter\ \quad\parbox[t]{\linegoal}}

\begin{document}

    \tableofcontents

\chapter{Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction }
\section{Motivation}

\end{document} 

enter image description here

| improve this answer | |
0

Leandriis comment is related. However I did it a different way after someone suggested using minipages:

\documentclass{report}
\usepackage{titlesec}    
\titleformat{\chapter}[display]
{\normalfont\Huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Large \thechapter\ \quad}

\titleformat{\chapter}[display]
{\bfseries\huge}% note that \bfseries has no effect with the default fonts
{\filright\chaptertitlename~\thechapter}
{0ex}
{\vspace{1ex}%
    \Large \begin{minipage}[t]{0.05\textwidth}\thechapter\end{minipage} \hspace{0.05\linewidth} \begin{minipage}[t]{.9\textwidth}}
    [\end{minipage}]

\begin{document}
    \tableofcontents
\chapter{Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction }
\section{Motivation}
\end{document}
| improve this answer | |

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.