答案1
titlesec
以下是带有和 的简短代码tcolorbox
:
\documentclass[12pt, a4paper]{book}% http://ctan.org/pkg/amsproc
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[svgnames]{xcolor}
\usepackage{tcolorbox}
\colorlet{headingcolor}{SkyBlue!60!SteelBlue}
\usepackage{titlesec}%
\titleformat{\chapter}[display]
{\filright\sffamily}
{\tcbset{height=13pt}\mbox{\tcbox[colframe=headingcolor,colback=headingcolor] {\hspace*{16mm}}\enspace \LARGE\textsf{\thechapter}}\\{\color{headingcolor}\titlerule[2pt]}}
{-1ex}
{\huge}%
\usepackage{lipsum}
\begin{document}
\chapter{CHAPTER TITLE}
\lipsum[11]
\end{document}