[Tex/LaTex] greek encodings under lyx

font-encodingsfontslyx

In my newly installed linux machine (Fedora 19), editing a formerly working document under lyx, I get:

Package fontenc Error: Encoding file 'lgrenc.def' not found

and in fact I see that the dir /usr/share/texlive/texmf-dist/tex/latex/greek-fontenc/ is empty

But installing it by yum install yum install texlive-greek-fontenc.noarch, (and calling texhash, and doing reconfigure&exit&restart in lyx), although I now have the lgrenc.def file, the error becomes:

        LaTeX error: this NFSS system isnt set up properly
    \begin{document}
    For encoding scheme LGR the defaults cmr/m/n do not form a valid font shape
The system maintainer forgot to specify a suitable substitution font shape usin
g the DeclareErrorFont command

followed by many

corrupted NFSS tables

any hint?

Best Answer

I had the same error in Ubuntu. A previously working document with greek letters gave the two errors below:

! Package fontenc Error: Encoding file `lgrenc.def' not found 
(fontenc) You might have misspelt the name of the encoding.

l.99 \ProcessOptions*                 
Necessary code for this encoding was not loaded.
Thus calling the encoding later on will produce further error messages.

! LaTeX Error: This NFSS system isn't set up properly.

l.261 \begin{document}
For encoding scheme LGR the defaults cmr/m/n do not form a valid font shape

The package greek-fontenc was missing. I installed the package "TexLive: Greek" from the Ubuntu repository and after that the document compiled properly.

"TexLive: Greek" is the debian package texlive-lang-greek. It contains greek-fontenc but also a bunch of other TeX packages. Perhaps you're missing one of them (e.g. cbfonts, "a complete set of Greek fonts"). See its debian page for the list of TeX packages included.

Related Question