这里我面临着目录标题中出现额外文本的问题,我该如何解决这个问题这是我的 MWE
\documentclass[twoside,8pt,openany]{book}
\usepackage[inner=1cm,outer=0.5cm,paperheight=9.5in,paperwidth=6.3in]{geometry}
\usepackage[T1]{fontenc}
\usepackage{titletoc} %%% Table of contents
\usepackage{ebgaramond}
\usepackage{lipsum}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{paracol}
\usepackage{microtype}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RO,LE]{\rightmark}
\fancyhead[LE,RO]{\leftmark} %% display chapter in header
\renewcommand{\headrulewidth}{.5pt}
\fancyhead[C]{\thepage} %% To display numbering on every page alternately left and right
\setlength{\headwidth}{\textwidth}
\setlength{\headheight}{15pt}
\setlength{\headsep}{0pt}
\setlength{\columnseprule}{0pt}
\usepackage[colorlinks, unicode]{hyperref}
%%%% End Add
\makeatletter
\newcommand\versenumcolor{red}
\newcommand\chapnumcolor{red}
\renewcommand\paragraph{%
\@startsection{paragraph}{4}{\z@}%
{.25ex \@plus.25ex \@minus.1ex}%
{-.5em}%
{\normalfont\normalsize\bfseries\color{\versenumcolor}}}%
\newlength{\biblechapskip}
\setlength{\biblechapskip}{1em plus .33em minus .2em}
\newcounter{biblechapter}
\newcounter{bibleverse}[biblechapter]
\renewcommand\chaptername{Book}
\let\ltx@chapter=\chapter
\let\ltx@paragraph=\paragraph
\newcommand{\book}[1]{%
\gdef\currbook{#1}
\ltx@chapter{#1}}
\newcount\biblechap@svdopt
\newenvironment{biblechapter}[1][\thebiblechapter]
{\biblechap@svdopt=#1
\ifnum\c@biblechapter=\biblechap@svdopt\else
\advance\biblechap@svdopt by -1\fi
\setcounter{biblechapter}{\the\biblechap@svdopt}
\refstepcounter{biblechapter}
\lettrine{\color{\chapnumcolor}\lower-6pt\hbox{\thebiblechapter}}{}\ignorespaces}
{\vspace{\biblechapskip}}
\renewcommand{\verse}[1][\thebibleverse]{%
\refstepcounter{bibleverse}
\markright{{\scshape\currbook} \thebiblechapter:\thebibleverse}
\ifnum\c@bibleverse=1\else
\ltx@paragraph*{#1}\fi}%
\makeatother
\newcounter{jChapter}
\newcommand{\jverse}[1]{\noindent{\fontsize{11}{30}\selectfont\color{cyan}\textbf{#1\hspace{1.0mm}}\noindent}\markboth{\scshape \currbook\ \thejChapter : #1}{} }
\newcommand{\jChapter}[1]{
\setcounter{jChapter}{#1}
\noindent{\fontsize{27}{30}\selectfont\color{red}\textbf{#1}}\markboth{\scshape \currbook\ \thejChapter : 1}{}%\vspace{-5mm}
}
\newcommand{\story}[1]{\vfill\noindent\parbox[t]{\columnwidth}{\centering\it\color{blue}\textbf{#1}}}% \centering contained within \parbox
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\storygap}{\vfill\ensurevspace{3\baselineskip}\switchcolumn*}% paracol specific code
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{\fontsize{30}{30}\selectfont\textbf{KARBI - NRSV PARALLEL BIBLE}}
\date{}
\author{}
\usepackage{lipsum}
\usepackage{ragged2e}
\newcommand{\BookLine}{ \centering\noindent\rule{19cm}{1pt}}
\newcommand{\BookNote}[1]{{\begin{center} \textbf{KEPACHINI} \justify
#1
\end{center}
\BookLine
\vspace{2mm}
}}
\newcommand{\ParallelLText}[2]{\switchcolumn[0] #1\par \switchcolumn[1] #2\par \switchcolumn*}
\usepackage[perpage]{footmisc} %%% To restart footnote numbering on every new pages
\usepackage{multicol,etoolbox}
\setcounter{tocdepth}{2} %set depth of printed table of contets.
\makeatletter
\patchcmd{\l@section}
{\hfil}
{\leaders\hbox{\normalfont$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill}
{}{}
\renewcommand\tableofcontents{%
\begin{multicols}{2}[\section*{\contentsname
\@mkboth{%
\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}]%
\printlist{toc}{}{}
\thispagestyle{empty}
\end{multicols}%
}
\makeatother %print dots in sections in toc.
%%% Command to make uppercase for every first letter
\usepackage{mfirstuc}
\MFUnocap{are}
\MFUnocap{or}
\MFUnocap{etc}
\newcommand{\athepi}{\textbf{\capitalisewords{Athepi Alamthe Hei Hei}}\\}
\usepackage{enumitem}
\usepackage{transparent}
\begin{document}
\renewcommand{\thefootnote}{\emph{\alph{footnote}}}
\frontmatter
\maketitle
{\setlength{\columnsep}{130pt}
\renewcommand{\contentsname}{\hfill\Huge Kechejok Barim\hfill~\\[2.5ex] }
\startlist{toc}
\hypersetup{linkcolor=blue}
\tableofcontents
}
\mainmatter
{\pagenumbering{gobble}
\part*{\scshape Kechejok Barim}
}
\pagenumbering{arabic}
\setlength{\columnseprule}{0.5pt}
\setcounter{page}{1}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\book{Kecheng}
\end{document}
但是当我将纸张格式更改为 A4 纸张大小时,它会正确显示如下
如何在不改变纸张尺寸的情况下获得更正后的页面?
答案1
这很容易解决。只需在命令前放置一个\thispagestyle{empty}
或。这是运行标题中的文本与标题重叠,因为标题太窄了。\thispagestyle{plain}
\tableofcontents
我没有费心重复您的所有代码,我只复制了您必须输入命令的代码片段。当然,您可以用更复杂的方式做同样的事情。
但是,我建议你不要对 book 类进行任何改动,而是使用类似记事本从KOMA 脚本,您可以使用内置命令进行所有更改。这样您就可以避免遇到的所有不兼容问题。
如果你更喜欢原版的 bookclass,我建议你使用同一作者的软件包。枚举项,哈维尔·贝索斯·洛佩斯,还制作了更改页面样式、标题、目录的优秀软件包ETC。 看一下标题(页面样式控制),标题安全(替代章节标题)和标题目录(toc/lof/lot 的替代标题)。最后,但并非最不重要的是,色彩空间,如果您希望正确打印颜色。
\frontmatter
\maketitle
{\setlength{\columnsep}{130pt}
\renewcommand{\contentsname}{\hfill\Huge Kechejok Barim\hfill~\\[2.5ex] }
\startlist{toc}
\hypersetup{linkcolor=blue}
\thispagestyle{plain}\tableofcontents %% <--- Change code here
}
\mainmatter