Header and Footer
Using fancyhdr and titleps packages
Section titled “Using fancyhdr and titleps packages”\documentclass[12pt]{article}
\usepackage{titleps}\usepackage{fancyhdr}\usepackage{graphicx}\usepackage{lipsum} % for dummy text
\pagestyle{myheadings}\pagestyle{fancy}\fancyhf{}
\setlength{\headheight}{30pt}
\renewcommand{\headrulewidth}{4pt}\renewcommand{\footrulewidth}{2pt}
\fancyhead[L]{\includegraphics[width=1cm]{example-image-a}}\fancyhead[C]{}\fancyhead[R]{\rightmark}\fancyfoot[L]{ABC}\fancyfoot[C]{\textcopyright xyz}\fancyfoot[R]{\thepage}
\begin{document}
\section{First section}\subsection{One} \lipsum[1-3]\subsection{Two} \lipsum[4-6]
\end{document}Page number as CurrPage/TotalPages in footer
Section titled “Page number as CurrPage/TotalPages in footer”\documentclass[12pt]{article}
\usepackage{lastpage}\usepackage{fancyhdr}\usepackage{graphicx}\usepackage{lipsum} % for dummy text
\pagestyle{myheadings}\pagestyle{fancy}\fancyhf{}
\setlength{\headheight}{30pt}
\renewcommand{\headrulewidth}{1pt}\renewcommand{\footrulewidth}{2pt}
\lhead{\includegraphics[width=1cm]{example-image-a}}\rhead{}
\lfoot{ABC}\rfoot{\thepage/\pageref{LastPage}}
\begin{document}
\section{First section}\subsection{One} \lipsum[1-3]
\end{document}


