
答案1
由於您正在使用該fancyhdr
軟體包,因此您可以發出指令
\renewcommand\footrule{\hrule width0.5\textwidth}
排版寬度為 的頁尾規則0.5\textwidth
。 (預設情況下,\footrule
定義為\hrule
。)如果您希望頁尾規則的厚度為 1pt,您可以編寫
\renewcommand\footrule{\hrule width0.5\textwidth height1pt}
一個小的MWE:
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand\headrulewidth{0pt} % optional
\rhead{\thepage} % display page number top-right
\renewcommand\footrule{\hrule width0.5\textwidth}
\cfoot{} % don't display page number in middle of footer line
\lfoot{Stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff}
\begin{document}
Hello World.
\end{document}