0

When I create a page in latex, below everything appears the nº of page: 1 , 2 ...

Its possible to show the page number above the total page?

For example:

 \documentclass[11pt,a4paper]{article}
 \begin{document}
  Hi % page 1
 \newpage
 Hi2 % page 2
 \end{document}

enter image description hereenter image description here

Thanks.

Solid
  • 363
  • 3
    From a google search, https://stackoverflow.com/questions/4236389/page-x-of-y-in-latex-footer – Huang_d Jun 09 '17 at 15:39
  • 3
    Package lastpage can help –  Jun 09 '17 at 15:40
  • 3
    \documentclass[11pt,a4paper]{article} \usepackage{lastpage} \usepackage{fancyhdr}

    \renewcommand{\headrulewidth}{0pt} \fancypagestyle{plain}{% \fancyhf{} \fancyfoot[C]{\thepage/\pageref{LastPage}} } \begin{document} \pagestyle{plain} Hi % page 1 \newpage Hi2 % page 2 \end{document}

    –  Jun 09 '17 at 15:44

0 Answers0