I was wondering if someone could help reproduce the style of chapter shown in this image:
Specifically, just the small grey strip containing "CHAPTER" and the large chapter number (which is 14 in this case)
I am using the following document as a starting point:
\documentclass[11pt,a4paper]{book}
\usepackage{fontspec}
\usepackage{titlesec}
\usepackage{xcolor}
\usepackage{amsmath,array}
\usepackage{lipsum}
\usepackage[
top=3cm,
bottom=2.8cm,
left=2.5cm,
right=2.5cm,
marginparwidth=0cm,
marginparsep=0cm,
headheight=13.6pt]{geometry}
\usepackage{fancyhdr}
\newcommand{\chapnumfont}{
\fontsize{144}{0}
\selectfont
}
\colorlet{chapnumcol}{black!55}
\titleformat{\chapter}[display]
{\bfseries}
{\begin{center}
\begin{tabular}{r!{$$}r}
& \hspace*{\fill}\makebox[14.71cm][r]{\chapnumfont\textcolor{chapnumcol}{\thechapter}} \\
\end{tabular}
\end{center}}
{0pt}
{\Huge}
\begin{document}
\sloppy
\chapter{A chapter}
\lipsum
\lipsum
\end{document}
Best Answer
A solution might be to use TikZ (if you are ok with that). Here is a code that can perform what you ask, though not very elegant :
The result obtained with it (I keep your parameters for colors) :
I hope it may help you.