0

I'm trying to create a CV using Overleaf with Tex Live 2014 and moderncv. How can I add page numbers to my document? Looking at a template, it appears you can only add page numbers if the you include \makelettertitleand \makeletterclosing, but this ruins the formatting of my document.

4
  • It seems to me that the page number only appears if you have multiple pages, and the appearance is not related to \makelettertitle. Maybe your test case is too small for the page numbers to appear. Also note that you need to compile TWICE. Commented Jul 30, 2020 at 7:57
  • @domperor I added enough text to make the document four pages, and compiled twice, but there are still no page numbers unfortunately. Commented Jul 30, 2020 at 17:27
  • @domperor Do you happen to have a MWE in Overleaf (2014) where the page numbers are shown? Commented Jul 30, 2020 at 21:30
  • I have been trying w/ the 2012 ver you gave me before & the 2017 ver I have. I have not tried with 2014. Okay, I will try w/ that version on Overleaf. Commented Jul 31, 2020 at 8:24

1 Answer 1

1

Now I have tried with TeX Live 2014 ver. on Overleaf and found out the problem. The label lastpage is broken in that version. All u need to do is to manually set the lastpage label just before \end{document}, as follows:

\label{lastpage}\end{document} 

Again, do not forget to compile twice.

2
  • Overleaf MWE: overleaf.com/read/cmhmdvmhmwqd Commented Jul 31, 2020 at 8:43
  • Perfect, thanks so much! Commented Jul 31, 2020 at 16:22

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.