I am making an article document and want to give two sided border in some pages ( top and bottom of the pages). \hrule
doesn't work in the \chapter
pages. Please help.
1 Answer
You can adapt this solution to suit your needs:
\documentclass{book}
\usepackage{lipsum}
\usepackage{fancyhdr}
\fancyhf{}
\cfoot{\thepage}
\renewcommand{\headrulewidth}{2.0mm}
\renewcommand{\footrulewidth}{2.0mm}
\begin{document}
% Bordered pages start here
\chapter{This Chapter with Top and Bottom Borders}
\thispagestyle{fancy}
\pagestyle{fancy}
\section{Bordered Pages}
\lipsum[1-10]
\clearpage
% Un-bordered pages start here
\pagestyle{plain}
\section{Un-Bordered Pages}
\lipsum[11-20]
\clearpage
% Bordered pages start here
\pagestyle{fancy}
\section{Bordered Pages Again}
\lipsum[21-30]
\end{document}
article
class does not provide the\chapter
macro there are no\chapter
pages. Perhaps you should look at the reported errors for your document before coming here.