為什麼更改頁面頁腳內容會在頁面頂部繪製一條線

為什麼更改頁面頁腳內容會在頁面頂部繪製一條線

我想更改頁腳內容,使其成為我選擇的文字而不是頁碼。但進行此變更會在頁面頂部繪製一條線。如何擺脫它?

這是代碼:

\documentclass{article}  % The style class
\usepackage{fancyhdr}    % headers and footers

\pagestyle{fancy}        % set the pagestyle to fancy to include headers and footers
\fancyhf{}               % clear the header and footer
\fancyfoot[C]{This document is written in \LaTeX. $\odot$ Last update \today}

\begin{document}
bla
\end{document}

這是輸出的螢幕截圖:

pdf 的圖像

答案1

添加

\renewcommand{\headrulewidth}{0pt}

到文件的序言部分。

相關內容