Skip to content


LaTeX: solving “pdflatex.EXE (file t1-zi4r-0): Font t1-zi4r-0 not found”

Got that puzzling error, “pdflatex.EXE (file t1-zi4r-0): Font t1-zi4r-0 not found“, which was blocking me when trying to build an R package. At a higher level in the code, the error message was a more obscure “Warning: running command Rcmd.exe Rd2pdf had status 1“.

Anyway, that second one means there’s been an error, and the first one is the clue: a font is missing. Problem: Latex is supposed to fetch missing files on the fly, and for some reason in this case it didn’t. No obvious solution to this, LaTeX was working very fine apart from that. So I just tried the random thing to do: update it (hadn’t updated it since install time about 2 years ago – oops).
And that turned out to be it. The install was so old that I needed to run the update program twice, once to update the update program and core, and once to perform the hefty amount of package updates. After the update, running the R package builder again made LaTex successfully fetch the missing font (said hello to the firewall 😉 ), and all worked. Tada 🙂

Posted in LaTeX.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

Sorry about the CAPTCHA that requires JS. If you really don't want to enable JS and still want to comment, you can send me your comment via e-mail and I'll post it for you.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA