[Tex/LaTex] LaTeX Error: File `lastpage.sty’ not found


I'm using a LaTeX template for a research article

I've converted the .tex file to a minimal example:





The file SelfArx.cls can be downloaded here

When I compile the LaTeX code above, I get these errors:

enter image description here

How can I resolve this problem?

Best Answer

You can add the package directly in your document. You may create a new auxiliary file called lastpage.sty and copy the entire code of the package that you can consult at http://www.biwako.shiga-u.ac.jp/sensei/kumazawa/tex/lastpage.sty.