논문에 부록을 추가하려고 하는데 다음 명령을 사용했습니다.
\begin{appendices}
\chapter{Performance Tables of ABCD}
\input{tab1}
\input{tab2}
\input{tab3}
\input{tab4}
\input{realworld}
\end{appendices}
그리고 저는 다음 패키지를 사용했습니다.
\usepackage[titletoc]{appendix}
문제는 다음과 같은 내용이 표시된다는 것입니다.
부록 A만 표시되도록 하려면 어떻게 해야 합니까? 어리석은 질문이라면 죄송합니다.
답변1
나는 당신을 가정ToC에서 챕터가 설정되는 방식에 관해 서문에 이미 몇 가지 정의가 있습니다.. 따라서 아래 나열된 몇 가지 사소한 조정을 Chapter
통해 부록 삽입을 끌 수 있습니다 .
\documentclass{report}
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\newcommand{\frontmatternumberline}{%
\renewcommand{\numberline}[1]{\@chapapp~##1\hfill\mbox{}\par\nobreak}}
\newcommand{\appendixnumberline}{%
\renewcommand{\numberline}[1]{##1\hfill\mbox{}\par\nobreak}}
\patchcmd{\l@chapter}% <cmd>
{#1}% <search>
{\frontmatternumberline #1}% <replace>
{}{}% <success><failure>
\AtBeginEnvironment{appendices}{% Do the following when you hit \begin{appendices}
\addtocontents{toc}{\string\let\string\frontmatternumberline\string\appendixnumberline}}
\makeatother
\usepackage[titletoc]{appendix}
\begin{document}
\tableofcontents
\chapter{Introduction}
\chapter{Preliminaries}
\section{Problem definition}
\section{Genetic algorithms}
\section{Ant algorithms}
\section{Previous work}
\begin{appendices}
\chapter{An appendix}
\section{First appendix}
\section{Second appendix}
\section{Last appendix}
\end{appendices}
\end{document}
\string
이 경우 와 유사한 사용은 \protect
ToC에 대한 매크로 삽입이 확장되지 않도록 하는 것입니다.
답변2
해당 \chapter*
장은 TOC에 표시되어서는 안 됩니다.
\begin{appendices}
\chapter*{Performance Tables of ABCD}
...
\end{appendices}