책 목차

책 목차

논문을 준비하고 있는데 목차에 몇 가지 문제가 있습니다. 내 텍스트 소스는 다음과 같습니다

  \documentclass[12pt,twoside,openright]{book}   
   ..................
 ...............................

  \include{{./Chapter1/chapter1}}

  \thispagestyle{empty}


 \thispagestyle{empty}    \bibliographystyle{alpha}

  \bibliography{refs.bib}

  \addcontentsline{toc}{chapter}{Bibliography}

 \include{{./Samenvatting/Samenvatting}}

  \addcontentsline{toc}{chapter}{Samenvatting} 

 \thispagestyle{empty}    \include{{./Samenvatting/summary}}

  \addcontentsline{toc}{chapter}{Summary} 

 \thispagestyle{empty}    \include{{./Samenvatting/Sommario}}

  \addcontentsline{toc}{chapter}{Sommario}

  \thispagestyle{empty}    \include{{./ack/ack}} 

 \addcontentsline{toc}{chapter}{Acknowledgements}

  \thispagestyle{empty}    \include{{./CV/CV}} 

 \addcontentsline{toc}{chapter}{Curriculum Vitae}

 \thispagestyle{empty}

그러나 목차에는 다음과 같은 문제가 있다.

  1. 마지막 항목(내 tex의 CV)이 나타나지 않습니다.

  2. 이후 섹션: 참고문헌부터 끝까지 페이지 번호가 잘못되었습니다. 전체 텍스트의 숫자와 일치하지만 페이지 수와 일치하지 않습니다.

이 문제를 어떻게 해결할 수 있나요? 미리 감사드립니다.

답변1

마지막 항목(내 tex의 CV)이 나타나지 않습니다.

당신은 사용해야합니다진짜tex 파일의 장. 그러면 를 사용할 필요가 없습니다 \addcontentsline.

옵션이 없으면 다음 함수를 정의할 수 있습니다.

\newcommand{\phantomeintrag}[2]{%
    \phantomsection
    \addcontentsline{toc}{#1}{#2}
}

그런 다음 (파일을 포함하기 전에) 다음을 호출하세요.

\phantomeintrag{chapter}{Curriculum Vitae}

이후 섹션: 참고문헌부터 끝까지 페이지 번호가 잘못되었습니다. 전체 텍스트의 숫자와 일치하지만 페이지 수와 일치하지 않습니다.

제가 이해한 것이 맞는지 잘 모르겠습니다. 페이지 번호가 1부터 시작하도록 하시겠습니까?포함된 파일? 무엇이든 - 를 사용하여 페이지 번호 매기기를 다시 시작할 수 있습니다 \pagenumbering{arabic}. 또한 , 원하는 새 페이지 번호가 \setcounter{page}{123}어디에 있는지 명령을 사용하여 언제든지 카운터를 수동으로 설정할 수 있습니다 . 123이로 인해 페이지 번호가 중복될 수 있습니다.

관련 정보