如何删除 LaTex 中的标头
我不想在每页的标题上显示每章的名称。我还喜欢在摘要、致谢、目录、图表列表和表格列表的标题中不包含任何内容。但我目前每个页面上都有标题,例如:
谢谢并致以问候!
编辑:
我刚刚用 \thispagestyle{plain}
替换了 \thispagestyle{botcenter}
。据说后者会清除标题(http://en.wikibooks.org/wiki/LaTeX /Page_Layout),但事实并非如此。我该怎么办?
谢谢!
编辑:
我现在刚刚意识到这可能是显示标题的精美页面样式。
\pagestyle{fancy}
\fancyhf{}
\setlength{\headheight}{15pt}
\lhead{\leftmark}
\cfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}
\fancypagestyle{plain}{% Redefine ``plain'' style for chapter boundaries
\fancyhf{} % clear all header and footer fields
\fancyfoot[C]{\thepage} % except the center
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
如何删除页眉并保留页脚?我认为需要页脚来显示页码,对吗?
谢谢!
编辑:
我的pdf文件的目录、表格列表和图表列表的第一页也没有页码。这是正常的吗?如果不是,如何修复?谢谢!
I would like to not show the name of each chapter on the header of its each page. I also like to have nothing in the headers for abstract, acknowledgement, table of content, list of figures and list of tables. But I currently have the header on each page, for example:
Thanks and regards!
EDIT:
I just replaced \thispagestyle{botcenter}
with \thispagestyle{plain}
. The latter is said to clear the header (http://en.wikibooks.org/wiki/LaTeX/Page_Layout), but it does not. How shall I do?
Thanks!
EDIT:
I now just realized it could be the fancy pagestyle that shows the header.
\pagestyle{fancy}
\fancyhf{}
\setlength{\headheight}{15pt}
\lhead{\leftmark}
\cfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}
\fancypagestyle{plain}{% Redefine ``plain'' style for chapter boundaries
\fancyhf{} % clear all header and footer fields
\fancyfoot[C]{\thepage} % except the center
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
How can I remove header and keep the footer? I think footer is needed to show the page number right?
Thanks!
EDIT:
My pdf file also has no page numbering for the first page of Table of Content, List of Tables and List of Figures. Is this normal? If it is not, how to fix it? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我通过
\fancyhead{}
和\renewcommand{\headrulewidth}{0pt}
完成此操作。I did this by
\fancyhead{}
, along with\renewcommand{\headrulewidth}{0pt}
.我认为您应该尝试使用
\pagestyle
,如果这不能提供足够的控制,则可以尝试fancyhdr
包。我不确定他们将如何与我猜测的自定义文档类进行交互。I think you should be experimenting with
\pagestyle
and, if that does not provide enough control, thefancyhdr
package. How they will interact with what I surmise is a custom document class I am not sure.编辑:我清除了其他杂乱的内容。您唯一需要做的就是从
\lhead
中删除\leftmark
。EDIT: I cleared my other ramblings. The only thing you need to do is remove the
\leftmark
from your\lhead
.