I'm trying to achieve a footer line, which would only be a fraction of length of the whole footer, like this:
Is there any way to do it? I am using article.
Thanks!
I'm trying to achieve a footer line, which would only be a fraction of length of the whole footer, like this:
Is there any way to do it? I am using article.
Thanks!
Since you're using the fancyhdr package, you could issue the instruction
\renewcommand\footrule{\hrule width0.5\textwidth}
to typeset a footer rule whose width is 0.5\textwidth. (By default, \footrule is defined as \hrule.) If you want the thickness of the footer rule to be, say, 1pt, you'd write
\renewcommand\footrule{\hrule width0.5\textwidth height1pt}
A small 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}
fancyhdrpackage at present? – Mico Mar 28 '20 at 17:22