章節編號替換為章節名稱

章節編號替換為章節名稱

我想要這樣的風格 在此輸入影像描述 代替 在此輸入影像描述

如何實現這項目標?我用來\usepackage[md,sc]{titlesec}將章節標題設為小型大寫字母樣式。

編輯:我的第一張圖片中的“I”是用這種特殊方式寫的“1”(可能是某種非標準字體?)。這些md, sc選項確實存在於titlesec在此輸入影像描述

答案1

這已經非常接近了。無需為titlesec-package 指定選項:

\documentclass{report}
\usepackage{ebgaramond}
\usepackage[T1]{fontenc}
\usepackage{blindtext, color}
\usepackage{titlesec}

\definecolor{gray75}{gray}{0.75}

\titleformat{\chapter}[hang]%
    {\scshape\Huge}%
    {\textcolor{gray75}{\fontencoding{U}\fontfamily{eur}\fontseries{b}\selectfont\thechapter}%
    \hspace{10pt}%
    \vrule width.5pt depth0.1ex%
    \hspace{10pt}}%
    {0pt}%
    {\Large}

\begin{document}
\chapter{Introduction}
\Blindtext[3]
\end{document}

花俏的章節

相關內容