Curricula Vitae / RésumésCannot compile

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Cannot compile

Post by templateuser »

The compiler says:

Code: Select all

! unicode-math error: "no-font-selected"
! 
! You've loaded the unicode-math package, but you forgot to select a Unicode
! math font. Please select one with the \setmathfont
! command.
! 
! See the unicode-math documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
                                                  
l.50 {\color{red} $\varheartsuit
                                $} JavaScript
But I cannot understand. What should I do?

stephen_shen

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Cannot compile

Post by Vel »

Hi Stephen,

Open up friggeri-cv.cls and go to line 60 which says: %\setmathfont{XITS Math}

Uncommenting this line will fix your problem provided you have that font! If you don't, try a different one in its place.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: Cannot compile

Post by templateuser »

Thank you Vel !

But I am confused, I was always dealing with .tex file, what's the use of .cls file?

stephen_shen
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Cannot compile

Post by Vel »

Hi Stephen,

You'll notice that the first line of the cv_10.tex file is \documentclass[]{friggeri-cv} which is saying that the compiler should refer to friggeri-cv.cls for the way to set out the document. Basically, this class is modifying the article class to create the layout you see and it hides the code that is used to create the document from the actual content of the document which is in the .tex file. This means that in the tex file you can focus on just writing the content but if you want to change anything in the template you do so in the .cls file. It's a way of abstracting the content from the layout and is cleaner than having everything in the .tex file!

Hope that makes sense!

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: Cannot compile

Post by templateuser »

Well, you are expert!

stephen_shen
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: Cannot compile

Post by templateuser »

Also i updated the miktex 2.9 and i uncommented the line it is not possible for me to make an pdf output.

if uncommented the mathfont lieb i have 723 errors, otherwise about 900!!!!!!!!

So please can you help me???

Texnicenter, miktex 2.9 uptodate, windows 8.1

Sunderland85
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: Cannot compile

Post by templateuser »

just solved i just isntalled the missing fonts....

Sunderland85
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Cannot compile

Post by templateuser »

I followed the steps, but the generated file was completely blank.
And the compilation generated the errors:

kpathsea: Invalid fontname `[latinmodern-math.otf]/ICU', contains '['

GuilhermeSantiago
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Re: Cannot compile

Post by Vel »

It looks like you're missing a font, did you specify the latin modern font anywhere?
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
Post Reply