Project

General

Profile

Kpathsea can't find fonts for latex (texlive) rendering

Moostropfen - almost 5 years ago -

Hi,

I'm trying to compile a document that I created with the help of org-mode, exported as tex and want to convert to pdf. So when invoking $pdflatex example.tex, kpathsea complains that it can't find a whole bunch of fonts, under which are ecrm1728, ecrm1440, ecrm1000, ecbx1400 and a lot more. For every font the error looks as following:

kpathsea: Running mktextfm ecrm1095
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1095
This is METAFONT, Version 2.7182818 (TeX Live 2018/Parabola GNU/Linux-libre) (preloaded base=mf)

kpathsea: Running mktexmf ecrm1095
! I can't find file `ecrm1095'.
<*> ...ljfour; mag:=1; nonstopmode; input ecrm1095

Please type another input file name
! Emergency stop.
<*> ...ljfour; mag:=1; nonstopmode; input ecrm1095

Transcript written on mfput.log.
grep: ecrm1095.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1095' failed to make ecrm1095.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font T1/cmr/m/n/10.95=ecrm1095 at 10.95pt not loadable: Metric (TFM) file not
found.
<to be read again>
relax
l.105 \fontencoding\encodingdefault\selectfont

Here it says that a possible solution might be installing the CTAN package texlive-fonts-recommended, which should then at least contain the ecrm1000 font. But after starting tllocalmgr, it spits out: "Can't get object for collection-genericrecommended at /usr/bin/tllocalmgr line 107"

Since I'm not familiar with perl, line 107 doesn't quite help me:
my %tlpackages = $tlpdb->archpackages;

texlive-most and texlive-lang are installed and system is up to date.

This is my first forum post, so if you need further details just tell me and I'll provide them. Every help is appreciated, thank you.


Replies (8)

RE: Kpathsea can't find fonts for latex rendering - alextee - almost 5 years ago -

I had a similar problem when using pdflatex with sphinx-doc to generate documentation PDFs. I had texlive-most installed but it doesn't seem to contain the required fonts. FWIW I solved this issue by installing texlive from here [link removed]

EDIT: link removed since it seems that it contains non-free software

RE: Kpathsea can't find fonts for latex rendering - freemor - almost 5 years ago -

It should be noted the much of texlive-* is in the [libre] repo meaning that work had to be done to make it respect your freedom.
Installing from the link above would almost certainly Violate that Freedom and the spirit of Parabola

IMHO the link above should be removed by the forum moderators as: "Recommending non-free" which is against Parabola's social contract.

RE: Kpathsea can't find fonts for latex rendering - alextee - almost 5 years ago -

I didn't know that the official texlive release had non-free components. link removed

RE: Kpathsea can't find fonts for latex rendering - freemor - almost 5 years ago -

Thanks :)

If the missing font issue is something new it'd probably be a good idea to turn this Thread into a bug report on the tracker.
Could be the libre/texlive-* builds need a tweak.

RE: Kpathsea can't find fonts for latex rendering - alextee - almost 5 years ago -

It's not new afaik, I had this problem before. It doesn't work on Arch either with texlive-most installed, so some fonts are probably left out when packaged for Arch. I made a bug report to sphinx-doc (https://github.com/sphinx-doc/sphinx/issues/6505) but I'm not sure if it's really their fault or a packaging problem in Arch upstream. I mean, if Debian has the fonts in `sudo apt-get install texlive-fonts-recommended` they are probably free...?

EDIT:
Here is my project in case someone wants to test it:
https://git.zrythm.org/zrythm/zrythm-docs

Just run `make latexpdf` (needs python-sphinx installed)

RE: Kpathsea can't find fonts for latex rendering - bill-auger - almost 5 years ago -

alextee wrote:

if Debian has the fonts they are probably free...?

yes, if the package is in the main repos, and not 'non-free' or 'contrib'

RE: Kpathsea can't find fonts for latex rendering - eschwartz - almost 5 years ago -

It doesn't work on Arch either with texlive-most installed, so some fonts are probably left out when packaged for Arch.

But the build works fine for me in Arch Linux, while parabola explicitly rm's the fonts you reference: https://git.parabola.nu/abslibre.git/tree/libre/texlive-core/PKGBUILD#n90

    (1-8/8)