答案1
以下是重新创建章节的尝试。有几件事可能会出错:
- 两位数的章节号太宽
- 过长的章节标题会扰乱垂直对齐
从这里开始更改章节编号并不困难。我将把这个任务留给 OP 或任何想发表评论的人……
以下是目前的代码:
\documentclass[oneside]{book}
\usepackage{bookman}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{microtype}
\usepackage{titlesec}
\usepackage{blindtext}
\usepackage{xcolor}
\usepackage{soul}
\definecolor{gray50}{gray}{0.5}
\usepackage{tikz}
\newcommand\dottedline[1][]{%
\tikz[baseline]\draw[line width=3pt,dotted,line cap=round,dash pattern=on 0pt off 3\pgflinewidth, gray50](0,-1.2)--(0,1.8);%
}
% \titleformat{〈command〉}[〈shape〉]{〈format〉}{〈label〉}{〈sep〉}{〈before-code〉}[〈after-code〉]
\titleformat%
{\chapter}% command
[hang]% shape
{\Huge\bfseries}% format
{\raisebox{0pt}[0pt][4\baselineskip]{%
\begin{minipage}{25mm}
\raisebox{12mm}{\parbox{25mm}{\centering\fontsize{90}{90}\normalfont\bfseries\textcolor{gray50}{\thechapter}\\[4mm]\normalsize\bfseries\textcolor{gray50}{\so{CHAPTER}}}}%
\end{minipage}\hspace{10mm}\dottedline
}
}% label
{10mm}% sep
{}% before-code
[]% after-code
\begin{document}
\chapter{Introduction}
\blindtext
\chapter{Second Chapter}
\end{document}
这是输出: