gmazzamuto / europasscv

Unofficial LaTeX class for the new version of the Europass curriculum vitae
116 stars 37 forks source link

Total page numbers when using pdflatex #38

Closed ghtmtt closed 5 years ago

ghtmtt commented 5 years ago

Seems that the total number of pages is not retrieved when compiling the tex with pdflatex.

selection_034

No errors when compiling the same tex with Texstudio

Are there additional packages required?

ppizzo commented 5 years ago

@ghtmtt : are you using a Debian-based machine? If so, it could be a problem with a recent Tex Live upgrade on those systems. I had the same problem today, solved switching to an Alpine-based Tex Live installation.

gmazzamuto commented 5 years ago

actually this is exactly how LaTeX works, that's normal behavior. The first time you run pdflatex many labels are undefined, and are replaced with ??. If you run pdflatex a second time, you'll see that the question marks will go away. Texstudio is probably doing the second compilation in the background for you. You just need to compile a second time.

@ppizzo I have solved the problem with the recent Tex Live update, but I haven't made a new release of the package yet (will do that asap). In the meantime you can download the europasscv.cls file from this repo.

ppizzo commented 5 years ago

Hi @gmazzamuto , many thanks for your quick reply. I will try with the updated europasscv.cls file. Actually I'm using LaTeX in a Docker container, you can find my repo here (still based on Alpine Linux, I will provide a Debian-based Dockerfile as well):

https://github.com/ppizzo/docker-latex

Many many thanks for your work! Very much appreciated, I've been using it for my CV and it looks beautiful!

Ciao Pietro

ppizzo commented 5 years ago

Hi @gmazzamuto , I just tried with your updated repo and it works perfectly! Thanks again.

Pietro

ghtmtt commented 5 years ago

thanks @ppizzo and @gmazzamuto

yes I'm using Debian Sid, so the problem should be upstream as you said. Double compilation work ;) thanks for the trick and for the awesome package!