如何在 LyX 中自訂 subsubsection 使其具有 Classicthesis 中常見的四位數字編號

如何在 LyX 中自訂 subsubsection 使其具有 Classicthesis 中常見的四位數字編號

我正在使用最新的 LyX 版本的 classicthesis 模板。

我想要的是包含數字的數字,這是文件設定「book」下的正常設定: 在此輸入影像描述

我在文件設定“classicthesis”下得到的是以下沒有數字的內容: 在此輸入影像描述

[更新!

「文件設定」->「編號與目錄」只能取得Classicthesis LyX檔案中編號的小節,而無法取得產生的PDF中編號的小節。

那麼,還有其他解決方案嗎?感謝緊急幫助,因為我的論文將在不到一周內到期!

答案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}

相關內容