【发布时间】:2019-03-04 18:53:13
【问题描述】:
我只想将页码保留在底部,没有任何标题。但是使用以下命令我仍然在标题中获得章节名称和部分
\pagestyle{fancy}
\renewcommand\headrulewidth{0pt}
\lhead{}\chead{}\rhead{}
\cfoot{\vspace*{1.5\baselineskip}\thepage}
提前致谢
【问题讨论】:
我只想将页码保留在底部,没有任何标题。但是使用以下命令我仍然在标题中获得章节名称和部分
\pagestyle{fancy}
\renewcommand\headrulewidth{0pt}
\lhead{}\chead{}\rhead{}
\cfoot{\vspace*{1.5\baselineskip}\thepage}
提前致谢
【问题讨论】:
\pagestyle{plain} 应该注意这一点。对于单页\thispagestyle{plain}
http://www.ctex.org/documents/packages/layout/fancyhdr.pdf
【讨论】:
fancyhdr 文档解释了问题。
一些 LATEX 命令,如 \chapter,使用 \thispagestyle 命令自动切换 到普通页面样式,从而忽略当前有效的页面样式。甚至定制这样的 您必须重新定义普通页面样式的页面。
它暗示
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyfoot[C]{\bfseries \thepage} % except the center
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
【讨论】: