我用:
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
\chaptermark{Introduction}
当目录位于书的开头时,它似乎运行良好,在简介的标题上是带有页码的简介,在其他章节的标题上是第 1 章。章节名称。现在我将目录移到了书的末尾,我得到了第 0 章。简介,我无法修复它。
UPD:这是我的标题代码。\documentclass[russian,11pt,a5paper,twoside,openany]{book} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[russian]{babel} \usepackage{etoolbox} \usepackage{blindtext, color} \usepackage{indentfirst} \usepackage{tikz} \usepackage{graphicx} \usepackage{lipsum}
\usepackage[a5paper,tmargin=2.5cm,inner=1.5cm,outer=2cm,bmargin=2cm]{geometry}
\usepackage[format=plain,labelfont=bf,up,textfont=it,up]{caption}
\usepackage{tocloft}
\usepackage{tocvsec2}
\usepackage{footmisc}
\usepackage{wrapfig}
\usepackage[proportional,scaled=1.064]{erewhon}
\usepackage[erewhon,vvarbb,bigdelims]{newtxmath}
\usepackage{changepage}
\usepackage[pagestyles,newlinetospace,newparttoc]{titlesec}
\renewcommand*\oldstylenums[1]{\textosf{#1}}
\graphicspath{{./images}}
\titleformat{\chapter}[display]{\normalfont\bfseries\centering}
{\MakeUppercase{\chaptertitlename}\ \thechapter}{0pt}
{\normalfont\large\MakeUppercase}
\titlespacing{\chapter}{0pt}{40pt}{30pt}
\def\clearpage{\par}
\captionsetup[figure]{labelsep=period,font=small,labelfont=it}
\captionsetup[table]{labelsep=period,font=small,labelfont=it}
\renewcommand{\thefootnote}{\arabic{footnote}}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftaftertoctitle}{\chaptertitle\hfill}
\renewcommand{\cfttoctitlefont}{\hfill\large}
\renewcommand*{\cftchappresnum}{\chaptername\space}
\renewcommand\cftchapaftersnum{.}
\setlength{\cftchapnumwidth}{1.8cm}
\renewcommand{\cftsecfont}{\small\rmfamily}
\renewcommand{\cftchapfont}{\small\rmfamily}
\renewcommand{\contentsname}{\hspace*{\fill}\bfseries\large}
\sloppy