![如何将章节标签对齐在右侧并将章节标题对齐在左侧](https://linux22.com/image/402383/%E5%A6%82%E4%BD%95%E5%B0%86%E7%AB%A0%E8%8A%82%E6%A0%87%E7%AD%BE%E5%AF%B9%E9%BD%90%E5%9C%A8%E5%8F%B3%E4%BE%A7%E5%B9%B6%E5%B0%86%E7%AB%A0%E8%8A%82%E6%A0%87%E9%A2%98%E5%AF%B9%E9%BD%90%E5%9C%A8%E5%B7%A6%E4%BE%A7.png)
答案1
这并不难titlesec
:
\documentclass[12pt, a4paper]{book}%
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{lipsum}
\usepackage{titlesec}%
\titleformat{\chapter}[display]{\sffamily\huge\bfseries}{\filleft\chaptername \thechapter}{4ex}{}[{\titlerule[1.5pt]}]
\begin{document}
\chapter{Introduction}
\sffamily
\lipsum[11]
\end{document}