我正在用 latex 创建我的论文报告。添加附录时,我得到的页面仅在附录 A 和附录 B 之前带有字符串“附录”。附录的代码如下
\begin{appendices}
\chapter{}
\lhead{Appendix \emph{A}}
\begin{center}
\Large {\textbf{BOOK Dataset}}
\end{center}
\begin{center}
\large{\textbf{Accuracy of POSITIVE class features}}
\end{center}
\begin{table}[h]
\begin{center}
\caption{Accuracy (\%) of unigram features using MI}
\end{center}
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\multirow{2}{*}{Feature Length} & \multicolumn{3}{c|}{unigram without threshold} & \multicolumn{3}{c|}{unigram with threshold} \\ \cline{2-7}
& C1 & C2 & C3 & C1 & C2 & C3 \\ \hline
200 & 56 & 70.4 & 60.7 & 56.7 & 70.4 & 55.5 \\ \hline
500 & 60 & \cellcolor{violet!=40}72.4 & 63 & 61.7 & \cellcolor{violet!=40}72.4 & 65.9 \\ \hline
1000 & 64.2 & 70.8 & 58.6 & 63.6 & 70.7 & 62.8 \\ \hline
1100 & 65.8 & 71 & 58.6 & 65.3 & 71.6 & \cellcolor{blue!=50}70.4 \\ \hline
1300 & 65.1 & 72 & 66.1 & 65.8 & 71.6 & 62 \\ \hline
1400 & 65.7 & 71.4 & 65.2 & 66.7 & 71.3 & 61.4 \\ \hline
1600 & \cellcolor{green!=50}66.9 & 70.2 & 66.5 & 67.5 & 70.8 & 62.7 \\ \hline
2000 & 66.3 & 71.5 & \cellcolor{blue!=50}67.7 & \cellcolor{green!=50}68.7 & 70.1 & 61.8 \\ \hline
\end{tabular}
\end{table}
\chapter{}
\lhead{Appendix \emph{B}}
\begin{center}
\Large {\textbf{MOVIE Dataset}}
\end{center}
\begin{center}
\large{\textbf{Accuracy of POSITIVE class features}}
\end{center}
\begin{table}[h]
\begin{center}
\caption{Accuracy(\%) unigram features using MI}
\end{center}
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
& \multicolumn{3}{c|}{Accuracy without threshold} & \multicolumn{3}{c|}{Accuracy with threshold} \\ \cline{2-7}
\multirow{-2}{*}{Feature Length} & C1 & C2 & C3 & C1 & C2 & C3 \\ \hline
1300 & 80.5 & 81.2 & 81.5 & 79.6 & 81.1 & 80.9 \\ \hline
1400 & 79.5 & 81.6 & \cellcolor[HTML]{FFFFC7}81.8 & 78.2 & 81.4 & 81.3 \\ \hline
1500 & 79.6 & \cellcolor[HTML]{67FD9A}81.7 & 81.6 & 79.1 & 80.9 & 80.6 \\ \hline
1600 & 80 & 81 & 81.1 & 80.4 & 81.8 & 80.9 \\ \hline
1800 & 79.6 & 81 & 80.6 & 80.5 & 80.9 & 80.8 \\ \hline
1900 & 79.7 & 81.4 & 80.8 & 80.6 & 81.6 & 82.4 \\ \hline
2000 & 79.9 & 81.5 & 81.3 & 79.9 & 82.5 & 82.6 \\ \hline
2100 & 80.2 & 80.2 & 80.3 & 80.4 & 82.8 & \cellcolor[HTML]{FFFFC7}83.5 \\ \hline
2300 & 80.7 & 80.3 & 80.5 & 81.3 & \cellcolor[HTML]{9AFF99}83.2 & 83.5 \\ \hline
2400 & \cellcolor[HTML]{FFCCC9}80.8 & 80.2 & 79.9 & \cellcolor[HTML]{FFCCC9}81.4 & 83.1 & 82.8 \\ \hline
2500 & 80.5 & 80.4 & 79.8 & 81 & 83.1 & 83.1 \\ \hline
\end{tabular}
\end{table}
\end{appendices}
\end{document}
本附录章节主要调用文件如下
\input{./Chapters/main_appendix.tex}
我的问题是:
1.在“附录 A”一章之前,显示带有“附录”字样的页面,我想删除该页面。2.在目录中,其显示如下
- 附录 ................................ 45
- 附录 A ................................ 46
- 附录 B ...................... 47
我想将其与附录 A 和附录 B 一起显示。以便删除附录...45
有什么办法可以解决我的问题吗
答案1
致电appendix
包裹使用[titletoc]
包选项。从appendix
文档:
可以使用环境
appendices
来代替\appendix
命令。[...] 环境的功能appendices
通常通过包选项访问,但也可以使用声明来代替。选项包括:
toc
Appendices
在列出附录之前,将标题(例如)放入目录 (ToC)。(这可以通过调用\addappheadtotoc
命令来完成。)[...]
titletoc
在目录中列出的每个附录前添加一个名称(例如
Appendix
)。该名称由 的值指定\appendixname
。[...]
这是一个简单的例子:
\documentclass{report}
\usepackage[titletoc]{appendix}
\begin{document}
\tableofcontents
\chapter{A chapter}
\chapter{Another chapter}
\begin{appendices}
\chapter{}
\chapter{}
\end{appendices}
\end{document}