LyX의 Classicesis에서 일반적인 4자리 숫자 숫자를 갖도록 하위 섹션을 사용자 정의하는 방법

LyX의 Classicesis에서 일반적인 4자리 숫자 숫자를 갖도록 하위 섹션을 사용자 정의하는 방법

나는 최신 LyX 버전의 classicthesis 템플릿을 사용하고 있습니다.

내가 원하는 것은 문서 설정 "book"의 일반 설정인 숫자 번호를 포함하는 것입니다. 여기에 이미지 설명을 입력하세요

문서 설정 "classicesis"에서 내가 얻는 것은 숫자 번호가 없는 다음과 같습니다. 여기에 이미지 설명을 입력하세요

[업데이트!]

"문서 설정" -> "번호 매기기 및 목차"는 Classicsis 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}

관련 정보