![如何调整目录中的分节点?](https://linux22.com/image/374612/%E5%A6%82%E4%BD%95%E8%B0%83%E6%95%B4%E7%9B%AE%E5%BD%95%E4%B8%AD%E7%9A%84%E5%88%86%E8%8A%82%E7%82%B9%EF%BC%9F.png)
我希望我的图表、章节等的编号为 1.1。(而不是 1.1)。因此,我希望在每个数字末尾都加一个点。使用下面的 MWE,我可以实现这一点,但在目录中没有额外的点。让事情变得更复杂一点:对于章节,我希望在目录中有额外的点,但不在文本本身中。(使用的颜色等在我的文件中定义,但这样 MWE 就会有点大)
这是我的 MWE:
\documentclass[twoside,openright,numbers=endperiod,titlepage,headinclude,
footinclude=false,cleardoublepage=empty,abstractoff,
BCOR=5mm,b5paper,fontsize=11pt, american,
]{scrreprt}
\usepackage{caption}
%lay-out of captions for figures and tables
\usepackage{caption}
\captionsetup{width=0.9\textwidth,format=plain,labelsep=quad,font=small,textfont={sl,{color=dark-gray}},labelfont={bf,{color=darker-gray}}}
%lay-out of section titles
\usepackage{titlesec}
\newcommand{\hsp}{\hspace{10pt}}
\titleformat{\chapter} [frame] {\bfseries\huge \centering \itshape}{{\color{dark-gray} \Huge \textasciii{Chapter \thechapter}}} {0.7cm} {}
\titleformat{\section}[hang]{\bfseries}{\Large \thesection. \hsp \textcolor{dark-gray}{||}\hsp}{6pt}{\Large \bfseries}
\titleformat{\subsection}[hang]{\color{darker-gray} \bfseries}{\color{darker-gray} \large \thesubsection.}{6pt}{\large \bfseries}
%lay-out table of contents
\usepackage{tocloft}
\renewcommand{\cftchapfont}{\color{darker-gray}}
\renewcommand{\cftsecfont}{}
\begin{document}
\tableofcontents
\include{Chapters/Introduction}
\end{document}