Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I downloaded a template tried to run on my Texmaker. It says "LaTeX Error: File `kpfonts.sty' not found." How can I install this font on my system?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

According to Ubuntu Packges this file is in a package called texlive-fonts-extra. To install this package use the command:

sudo apt-get install texlive-fonts-extra
share|improve this answer
    
Thanks for the answer. Can you share me how you find the package name for this particular font..? –  Nikhil George Jul 30 at 13:35
    
Sure, go to packages.ubuntu.com/en. Under "Search the contents of packages" type the file name and choose "packages that contain files named like this" and search =) –  chaos Jul 30 at 13:37
    
Thanks Chaos !! –  Nikhil George Jul 30 at 13:38

If a latex document which works in another latex installation fails to compile on your system, especially when asking for a certain file as in this case, pretty sure there is a whole package missing. In this case, it requires the latex package "kpfonts" which you have to install separately. On Ubuntu, the best way to do this is an installation via apt-get. Let's do a qiuck search:

apt-cache search kpfonts

points you to a package alled texlive-fonts-extra.

apt-cache show texlive-fonts-extra

tells you that this package is a collection of different font packages, including kpfonts.

So the only thing you need to do is:

sudo apt-get install texlive-fonts-extra

If you don't like installing all those other packages included in there, take a look at http://tex.stackexchange.com/questions/10316/how-to-install-new-packages-on-texmaker-on-ubuntu ... and use google, this should help, too.

BTW: Could anyone who knows how to format Bash lines beautifully please edit my answer? Thanks in advance!

share|improve this answer

You need to install the package texlive-fonts-extra.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.