LaTeX 中的分隔页没有页码
我有一份 LaTeX 报告,我使用了以下命令来创建我的附录,但是,我的讲师指出任何分隔页都应该是未编号的。
\documentclass{report}
\usepackage{appendix}
\begin{document}
\include{chap1}
\include{appendix}
\end{document}
然后在appendix.tex中
\appendix
\pagestyle{empty}
\appendixpage
\noappendicestocpagenum
\addappheadtotoc
创建Appendices
分隔页,但仍将页码放在页脚中。正如预期的那样,目录中没有页码。
如何将其从页脚中删除?
I have a report in LaTeX, and i have used the following commands to create my Appendix, however, my lecturer states that any divider pages should be unnumbered.
\documentclass{report}
\usepackage{appendix}
\begin{document}
\include{chap1}
\include{appendix}
\end{document}
Then in appendix.tex
\appendix
\pagestyle{empty}
\appendixpage
\noappendicestocpagenum
\addappheadtotoc
This creates the Appendices
divider page, but still puts a page number on it in the footer. There is no page number in the TOC, as expected.
How can I remove it from the footer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我查看了appendix.sty源代码,发现了问题:第74行,在
\@chap@pppage
的定义中,发出了\thispagestyle{plain}
命令,从而覆盖此页面的\pagestyle{empty}
。解决此问题的不优雅但直接的方法是重新定义不带此行的命令 - 导入包后发出以下代码。修订、测试版本
I looked at the appendix.sty source, and I see the problem: line 74, in the definition of
\@chap@pppage
, issues a\thispagestyle{plain}
command, thus overriding your\pagestyle{empty}
for this page. The inelegant but direct way to fix this is to redefine the command without this line - issue the following code after importing the package.Revised, tested version
TeX FAQ 可能会在这里派上用场:
因此请尝试在
\appendix
之后添加\thispagestyle{empty}
。The TeX FAQ might come in handy here:
So give adding
\thispagestyle{empty}
after your\appendix
a try.尝试将
\pagestyle{empty}
更改为\thispagestyle{empty}
并将其放在\addappheadtotoc
之后。try changing
\pagestyle{empty}
to\thispagestyle{empty}
and put it after\addappheadtotoc
.请尝试:
*特别感谢 https://tex.stackexchange.com/questions /6639/删除页码但不删除标题!
Try instead:
*Special thanks to https://tex.stackexchange.com/questions/6639/removing-page-numbers-but-not-headers!