我正在写一份报告,其中各章都有一封信。我有一个自定义文档类 \documentclass[11pt]{tudelft-report},标题的格式如下。附录现在也称为 A | “附录名称”,我更喜欢附录 A | “附录名称”。有人能帮我吗?
\usepackage{titlesec, blindtext, color}
\definecolor{gray75}{gray}{0.75}
\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\chapter}[hang]{\Huge}{\thechapter\hsp\textcolor{gray75}{|}\hsp}{0pt}{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{2\baselineskip}
\renewcommand\thechapter{\Alph{chapter}}
%% Format the section titles and spacing
\titleformat{\section}
{\LARGE\titlestyle\bfseries}
{\thesection}
{5pt}
{}
\titlespacing*{\section}{0pt}{\baselineskip}{4pt}
%% Format the subsections titles and spacing
\titleformat{\subsection}
{\Large\titlestyle\bfseries}
{\thesubsection}
{5pt}
{}
\titlespacing*{\subsection}{0pt}{\baselineskip}{2pt}
%% Format the subsubsections titles and spacing
\titleformat{\subsubsection}
{\large\titlestyle\bfseries}
{}
{0pt}
{}
\titlespacing*{\subsubsection}{0pt}{\bigskipamount}{0pt}