答案1
我尝试使用tikz
和titlesec
包裹。
\documentclass[a4paper]{report}
\usepackage{tikz}
\usepackage[explicit]{titlesec}
\usepackage{lipsum}
\titleformat{\chapter}[hang]
{\sffamily}
{}
{0pt}
{%
\noindent%
\begin{tikzpicture}%
\node[above,yshift=4pt,font=\fontsize{15}{15}\mdseries] {CHAPTER};
\node[xshift=0.15\linewidth,below right,text width=0.72\linewidth,font=\fontsize{28}{34}\bfseries] {#1};
\node[below,fill=black,text=white,font=\fontsize{48}{48}\bfseries,inner sep=22pt] {\thechapter};
\end{tikzpicture}%
}
[]
\titlespacing{\chapter}{0pt}{20pt}{70pt}[0pt]
\begin{document}
\chapter{Stuff for the title}
\lipsum[1-3]
\chapter{A long title with two lines}
\lipsum[1-3]
\chapter{Yet another long title with three lines of text}
\lipsum[1-3]
\end{document}