我想知道如何删除目录中未编号章节的单词“CHAPTER”。我执行以下操作:
\chapter*{ВВЕДЕНИЕ}
\label{chap:intro}
\addtocounter{chapter}{1}
\addcontentsline{toc}{chapter}{\protect\numberline{ВВЕДЕНИЕ}}
我也尝试过这样做:
\addcontentsline{toc}{}{\protect\numberline{ВВЕДЕНИЕ}}
它可以起作用,但问题是删除章节名称和页码之间的点和空格 - 页码紧挨着章节名称。
完整 MWE:
\documentclass[a4paper,14pt,russian]{extreport}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[russian]{babel}
\usepackage{amssymb,latexsym,amsmath,amscd}
\usepackage[left=3cm,right=1cm, top=2cm,bottom=2cm]{geometry}
\usepackage{graphicx}
\usepackage{tocloft}
\usepackage{titlesec}
\usepackage{caption}
\usepackage{indentfirst}
\usepackage{autobreak}
\DeclareCaptionLabelFormat{gostfigure}{Рисунок #2}
\DeclareCaptionLabelSeparator{gost}{~---~}
\captionsetup{labelsep=gost}
\captionsetup[figure]{labelformat=gostfigure}
\renewcommand{\cfttoctitlefont}{\hspace{0.38\textwidth} \bfseries\MakeUppercase}
\renewcommand{\cftbeforetoctitleskip}{-1em}
\renewcommand{\cftaftertoctitle}{\mbox{}\hfill \\ \mbox{}\hfill{\footnotesize Стр.}\vspace{-2.5em}}
\renewcommand{\cftchapfont}{\normalsize\bfseries \MakeUppercase{\chaptername} }
\renewcommand{\cftsecfont}{\hspace{31pt}}
\renewcommand{\cftsubsecfont}{\hspace{11pt}}
\renewcommand{\cftbeforechapskip}{1em}
\renewcommand{\cftparskip}{-1mm}
\renewcommand{\cftdotsep}{1}
\setcounter{tocdepth}{2} % задать глубину оглавления — до section включительно
\titleformat{\chapter}[display]
{\filcenter}
{\MakeUppercase{ГЛАВА} \thechapter}
{8pt}
{\bfseries}{}
\titleformat{\section}
{\normalsize\bfseries}
{\thesection}
{1em}{}
\titleformat{\section}
{\normalsize\bfseries}
{\thesection}
{1em}{}
\linespread{1.3}
\renewcommand{\rmdefault}{ftm} % Times New Roman
\frenchspacing
\numberwithin{equation}{section}
\renewcommand\cftsecaftersnum{.}
\pretolerance1000
\begin{document}
\def\contentsname{ОГЛАВЛЕНИЕ}
\def\chaptername{ГЛАВА}
\newpage
\include{title}
\tableofcontents
\renewcommand{\chaptername}{ГЛАВА}
\renewcommand{\contentsname}{ОГЛАВЛЕНИЕ}
\renewcommand{\bibname}{СПИСОК ИСПОЛЬЗОВАННЫХ ИСТОЧНИКОВ}
\chapter*{ВВЕДЕНИЕ}
\label{chap:intro}
\addtocounter{chapter}{1}
\addcontentsline{toc}{chapter}{ВВЕДЕНИЕ}
...
\end{document}
我没有发现任何问题,如果我没记错的话,所有的包裹都完成了它们的工作……
先感谢您!