15

I installed MacTeX's texlive 2014basic to avoid having to download too much all at once. One of the papers I wanted to build uses the textgreek package. Though I can install that with tlmgr

sudo tlmgr install textgreek

This still results in the following error when I try to pdflatex the paper

! Package textgreek Error: Cannot find the file lgrenc.def.

I can't figure out which tlmgr package to install to get that file generated. I wonder also if I should just be using a tlmgr generate command. But I can't tell what arguments I should pass to that (tlmgr help doesn't seem to provide a relevant example).

  • 1
    Is it on your system? Try kpsewhich lgrenc.def; if that doesn't return anything, then try locate lgrenc.def. – jon Feb 20 '15 at 05:20
  • 2
    You need to install sudo tlmgr install greek-fontenc (and also babel-greek, I guess). – egreg Feb 20 '15 at 07:37
  • 3
    @egreg: that gets me to a No file LGRcmr.fd and This NFSS system isn't set up properly. I guess that's progress. It's annoying that tlmgr doesn't seem to have given me the dependencies I need though when it installed textgreek – Michael Norrish Feb 20 '15 at 09:07
  • 1
    Install the full MacTeX and live happier. – egreg Feb 20 '15 at 10:51
  • @MichaelNorrish lgrenc.def is in greek-fontenc, as egreg mentioned. The LGRcmr.fd not found error is a problem with your usage. Concerning the tlmgr dependency comment: yes, tlmgr does not guarantee inter-package dependecies. We try to keep inter-collection dependencies working and up2date, but also this is not guaranteed. – norbert Mar 02 '15 at 03:33
  • 2
    @norbert I have installed greek-fontenc, textgreek, babel-greek and cbfonts but I still get No file LGRcmr.fd. What do you mean by "...error is a problem with your usage"? – Mankka Apr 24 '19 at 09:10
  • lgrcmr.fd is in the cbfonts-fd package ("LaTeX font description files for the CB Greek fonts"), – Alf Eaton Jul 15 '20 at 20:49

5 Answers5

11

Note: this is a Debian, and Debian derivates, packaging bug and was fixed in texlive-latex-extra version 2017.20170724-1


  • The Tex package textgreek is in the Debian package texlive-latex-extra.
  • The Tex package greek-fontenc is in the Debian package texlive-lang-greek.
  • textgreek is dependent on greek-fontenc. However, textlive-lang-greek is not listed as a dependency of texlive-latex-extra.

If you are using a version with this issue, the solution is to manually install texlive-lang-greek:

sudo apt install texlive-lang-greek
8

Arch Linux solution:

pacman -Syuu texlive-langgreek

de-arl
  • 81
6

The solution that I found was to also install the cbfonts and cbfonts-fd packages, as indicated here greek encodings under lyx, besides the two packages indicated by egreg. It might have sufficed to install only the cbfonts package but to be sure I also installed cbfonts-fd package.

Note: I am running Fedora so for other distributions and/or OSs, the packages name may differ

3

Try installing some more additional packages like:

  • babel-greek
  • greek-fontenc
  • cbfonts

This solved it for me.

1

Update 2020:

To solve textgreek.sty not found, you need to install texlive-science

sudo apt-get install texlive-science

Further details here: https://ingbrief.wordpress.com/2017/11/12/kubuntu-17-10-latex-textgreek-sty/

Gery
  • 513