我对标题进行了以下设置。但是,我不知道如何为 \subsubsection 创建略微缩进的标题。以下是我使用的代码,但似乎不起作用。有人知道该如何修复吗?谢谢!
\documentclass[12pt]{report}
\usepackage{titlesec}
\titleformat*{\chapter}{\centering\bfseries}{\fontsize{12}{14}\selectfont}
\titleformat*{\section}{\bfseries}{\fontsize{12}{14}\selectfont}
\titleformat*{\subsection}{\itshape\bfseries}{\fontsize{12}{14}\selectfont}
\titleformat*{\subsubsection}{\bfseries}{\fontsize{12}{14}\selectfont}{1em}{} %this needs to be indented from the left
\titleformat*{\paragraph}{\bfseries}{\fontsize{12}{14}\selectfont}
\begin{document}
\chapter{X}
\section{A}
\subsection{B}
\subsubsection{C}
\paragraph{D}
\end{document}