ToC에서는 페이지 번호 매기기를 제거하는 데 문제가 있지만 페이지에서는 제거하지 못합니다. 나는 답을 찾아보고 여러 가지를 시도했지만 아무것도 작동하지 않았습니다. \thispagestyle{plain}
페이지 번호 매기기에 사용해야 하는데 이렇게 하면 페이지가 자동으로 ToC에 배치됩니다. 대신 사용하면 {empty}
페이지의 페이지 번호가 제거됩니다.
도와주세요!
newpage
\thispagestyle{plain}
\setcounter{page}{1}
%\pagenumbering{gobble} (this supresses the page numbers on the page which is not what I want)
\addcontentsline{toc}{chapter}{Appendices}
\chapter*{Appendix 1: Room Temperature}
\noindent\makebox[\textwidth][c]{\raisebox{-0.9\height}[10pt][10pt]{\includegraphics[page=1,scale=0.6]{Room-Code}}}\par
\addcontentsline{toc}{chapter}{Appendix 1: Room Temperature}
답변1
질문(문서 클래스, TOC 관련 패키지 등)에 MWE가 없으면 추측일 뿐입니다.
패키지를 사용하여 TOC에 tocloft
추가 할 수 있습니다.\cftpagenumbersoff{chapter}
예:
\documentclass{report}
\usepackage{blindtext}% only for dummy text
\usepackage{tocloft}
\begin{document}
\tableofcontents
\blinddocument
\cleardoublepage
\setcounter{page}{1}
\addtocontents{toc}{\protect\cftpagenumbersoff{chapter}}% <- added
\addcontentsline{toc}{chapter}{Appendices}
\chapter*{Appendix 1: Room Temperature}
\addcontentsline{toc}{chapter}{Appendix 1: Room Temperature}
\blindtext
\end{document}
또는 패키지 제안 tocbasic
:
\documentclass{report}
\usepackage{blindtext}% only for dummy text
\usepackage{tocbasic}
\newcommand\gobble[1]{}
\begin{document}
\tableofcontents
\blinddocument
\cleardoublepage
\setcounter{page}{1}
\addtocontents{toc}{\DeclareTOCStyleEntry[pagenumberformat=\protect\gobble]{tocline}{chapter}}
\addcontentsline{toc}{chapter}{Appendices}
\chapter*{Appendix 1: Room Temperature}
\addcontentsline{toc}{chapter}{Appendix 1: Room Temperature}
\blindtext
\end{document}
또는 다음을 사용하여 \appendix
:
\documentclass{report}
\usepackage{blindtext}% only for dummy text
\usepackage{tocbasic}
\newcommand\gobble[1]{}
\newcommand\appendixprefixintoc[1]{\appendixname~#1:\hfill}
\begin{document}
\tableofcontents
\blinddocument
\cleardoublepage
\appendix
\setcounter{page}{1}
\addtocontents{toc}{\DeclareTOCStyleEntry[pagenumberformat=\protect\gobble]{tocline}{chapter}}
\addcontentsline{toc}{chapter}{Appendices}
\addtocontents{toc}{\DeclareTOCStyleEntry[entrynumberformat=\protect\appendixprefixintoc,dynnumwidth]{tocline}{chapter}}
\chapter{Room Temperature}
\blindtext
\end{document}