목차 제목에 텍스트 추가 텍스트가 있는 이유

목차 제목에 텍스트 추가 텍스트가 있는 이유

목차 제목에 추가 텍스트가 나타납니다. 문제를 어떻게 해결합니까? 여기 내 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}

위 MWE의 출력은 다음과 같습니다. 여기에 이미지 설명을 입력하세요

하지만 용지 형식을 A4Paper 크기로 변경하면 아래와 같이 올바르게 표시됩니다. 여기에 이미지 설명을 입력하세요

용지 크기를 변경하지 않고 수정된 페이지를 얻으려면 어떻게 해야 합니까?

답변1

이것은 쉽게 해결됩니다. 명령 앞에 \thispagestyle{empty}or 를 넣으면 됩니다 . 헤더가 너무 좁기 때문에 제목과 겹치는 것은 실행 중인 헤더의 텍스트입니다.\thispagestyle{plain}\tableofcontents

나는 모든 코드를 반복하지 않고 명령을 입력해야 하는 부분만 복사했습니다. 물론 더 정교한 방법으로도 동일한 작업을 수행할 수 있습니다.

그러나 나는 당신이 책 수업에 가한 모든 해킹 대신에 다음과 같은 수업을 사용하는 것이 좋습니다.필기장~에서KOMA 스크립트, 내장된 명령을 사용하여 모든 변경 작업을 수행할 수 있습니다. 그러면 경험하게 될 모든 비호환성을 피할 수 있습니다.

오리지널 북클래스를 선호하신다면, 같은 작가의 패키지 묶음을 이용하시는 것을 추천드립니다. 저자열거 항목,하비에르 베조스 로페스, 페이지 스타일, 제목, 목차를 변경하는 우수한 패키지도 제작했습니다.. 보세요제목(페이지 스타일 제어),타이틀섹(대체 섹션 제목) 및타이틀톡(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

관련 정보