LoF, LoT, Abstract, ToC에 번호가 없는 약어 - 왜 그렇습니까?

LoF, LoT, Abstract, ToC에 번호가 없는 약어 - 왜 그렇습니까?

솔루션번호가 매겨진 장을 포함한 TOC의 LOF+LOT+BIB내 경우에는 작동하지 않습니다.

분명히 나는 ​​다른 사람의 템플릿을 사용했습니다. 내가 그의 코드로 PDF를 생성할 때 위에 언급된 모든 섹션에는 번호가 매겨져 있습니다. 그러나 내 코드의 PDF를 생성할 때 이러한 섹션은 번호가 없는 상태로 유지됩니다. 이는 바람직하지 않습니다. 누구든지 저를 도와주실 수 있나요? 나는 비생산적인 사용 패키지에 의존하는 것으로 의심됩니다.

코드는 다음과 같습니다.

\documentclass[10pt,a4paper,bibliography=totocnumbered,listof=totocnumbered]{scrartcl}
\usepackage[tocbibind]
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage[subfigure,titles]{tocloft}
\usepackage{caption}

\setcounter{tocdepth}{2}
\renewcommand\cftchapafterpnum{\vskip8pt}
\renewcommand\cftsecafterpnum{\vskip10pt}

\usepackage{listings}
\lstset{basicstyle=\footnotesize, captionpos=b, breaklines=true, showstringspaces=false, tabsize=2, frame=lines, numbers=left, numberstyle=\tiny, xleftmargin=3em, framexleftmargin=3.0em}
\makeatletter
\def\l@lstlisting#1#2{\@dottedtocline{1}{0em}{1em}{\hspace{2,0em} Lst. #1}{#2}}
\makeatother

\geometry{a4paper, top=28mm, left=31mm, right=28mm, bottom=26mm, headsep=4mm, footskip=4mm}

\begin{document}

\titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
\renewcommand{\contentsname}{II Contents}
\phantomsection

\addtocounter{section}{1}
\tableofcontents
\pagebreak
\listoffigures
\pagebreak
\listoftables
\pagebreak


\noindent\section{List of Acronyms}
\begin{acronym} 
\setlength{\itemsep}{-\parsep} 
\acro{CEO}{Chief Executive Officer}     
\end{acronym}
\newpage


\setcounter{section}{0}
\renewcommand\refname{0. Introduction}
\section{{\Large Introduction}}
\markright{Introduction}
\phantomsection
\addcontentsline{toc}{section}{0. Introduction}
\addtocontents{toc}{\vspace{-0.5em}}

Lorem ipsum...

\newpage
\setcounter{section}{1}
\renewcommand\refname{Chapter 1}
\section*{{\Large Chapter 1}}
\markright{Chapter 1}
\phantomsection
\addcontentsline{toc}{section}{Chapter 1}
\addtocontents{toc}{\vspace{-0.5em}}

Lorem Ipsum again

\end{document}

답변1

tocbibind, tocloft및 패키지 titlesecfancyhdrKOMA 클래스에 권장되지 않습니다. 표준 클래스가 놓친 기능을 제공합니다. KOMA 스크립트는 기능을 제공하지만 앞서 언급한 패키지로 인해 오버런됩니다. 사용하지 않는 것이 해결책입니다.


위의 코드는 템플릿에서 발견되었다고 명시되어 있습니다. 코드에는 이상한 일이 너무 많아서 누구에게도 사용하라고 조언할 수 없습니다.
조심하세요. 많은 템플릿이 좋지 않습니다.

관련 정보