I'm using the fancy header package, and applying the following command:
Code: Select all
\lhead{}
\rfoot{\thepage\ of \pageref{LastPage}}
\lfoot{}
\cfoot{}
Code: Select all
\lhead{}
\rfoot{\thepage\ of \pageref{LastPage}}
\lfoot{}
\cfoot{}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\rfoot{\thepage\ of \pageref{LastPage}}
\lfoot{}
\cfoot{}
\usepackage{lastpage}
\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=blue}
\usepackage{lipsum}%just to automatically generate some text
\begin{document}
\lipsum[1-14]
\end{document}
Code: Select all
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\rfoot{\thepage\ of \mypageref{LastPage}}
\lfoot{}
\cfoot{}
\usepackage{lastpage}
\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=blue}
\newcommand*{\mypageref}[1]{%
\hypersetup{linkcolor=black}\pageref{#1}\hypersetup{linkcolor=red}}
\usepackage{lipsum}%just to automatically generate some text
\begin{document}
\lipsum[1-14]
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis