答案1
我不知道如何在 LyX 中做到这一点,但添加
\setcounter{secnumdepth}{4}
文件序言完成了这项工作。
\documentclass{scrbook}
\usepackage{classicthesis}
\setcounter{secnumdepth}{4}
\begin{document}
\mainmatter
\chapter{A}
\section{B}
\subsection{C}
\subsubsection{D}
Is it numbered?
\end{document}
我实际使用的代码是 titlesec 2.10.1,
\documentclass{scrbook}
\usepackage{classicthesis}
\setcounter{secnumdepth}{4}
%% This is only necessary if you have titlesec
%% version 2.10.1 (released 2016/03/15).
%% Version 2.10.2 should fix the bug, which
%% doesn't affect older versions.
\usepackage{etoolbox}
\makeatletter
\patchcmd{\ttlh@hang}{\parindent\z@}{\parindent\z@\leavevmode}{}{}
\patchcmd{\ttlh@hang}{\noindent}{}{}{}
\makeatother
%% End of workaround
\begin{document}
\mainmatter
\chapter{A}
\section{B}
\subsection{C}
\subsubsection{D}
Is it numbered?
\end{document}