1. Open the Latex editor.
2. Type this following latex source code in latex editor:
% !TEX TS-program=pdflatex
% !TEX encoding=UTF-8 Unicode
% Distributed under the LaTeX Project Public License
% https://www.latex-project.org/lppl.txt
% file name: SimplePageNumber2.tex
\documentclass[12pt]{article}
\usepackage{bookman}
\usepackage{lastpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear existing header and footer
\renewcommand{\headrulewidth}{0pt} % Remove Line From Header
\renewcommand{\footrulewidth}{0pt} % Remove Line From Footer 
\fancyfoot[R]{Page \thepage\hspace{5pt} of\hspace{5pt} \pageref{LastPage}}
\begin{document}
\Huge{}
FedEx
\clearpage
UPS
\newpage
DHL
\pagebreak
TNT Express
\end{document}
3. save file as pageNumber2.tex.
4. run the Typeset command or similar other command with pdfLatex 2x times
Output
![]()  | 
| Simple Sample Latex Page 1 of 4 | 
![]()  | 
| Simple Sample Latex Page 2 of 4 | 
![]()  | 
| Simple Sample Latex Page 3 of 4 | 
![]()  | 
| Simple Sample Latex Page 4 of 4 | 
< back to  Learning Latex RoadMap




Tidak ada komentar:
Posting Komentar