LyX says Tex Gyra Schola is not installed, but I installed it
slitt at troubleshooters.com
Fri Jun 18 01:28:24 UTC 2021
Kornel Benko said on Thu, 17 Jun 2021 16:35:01 +0200
>Am Thu, 17 Jun 2021 10:14:18 -0400
>schrieb Steve Litt <slitt at troubleshooters.com>:
>> Hi all,
>> The only font readable enough for my books is Century Schoolbook. All
>> the rest are too faint. Most Century Schoolbook implementations don't
>> work with LyX, or at least I haven't been able to get them to work.
>> With one exception...
>> Tex Gyra Schola is a Century Schoolbook implementation that has been
>> working for me for the past 5 years. But now, When I
>> Document->Settings->Fonts and select a Serif font, Tex Gyre Schola is
>> listed, but the words "(not installed)" are appended, and in fact
>> when I compile the document, the font in the PDF is definitely not
>> TeX Gyre Schola.
>> I installed the tex-gyre and tex-gyra-math packages with the
>> following command:
>> tlmgr install tex-gyre
>> tlmgr install tex-gyre-math
>> After those commands, I performed a texhash command. I then
>> terminated LyX and did a reconfigure. Still "(not installed)".
>> The other relevant settings on Document->Settings->Fonts are "Use
>> Non-TeX Fonts" is unchecked, LaTeX font encoding is Default.
>> What can I do to start to figure out this
>> Steve Litt
>> Spring 2021 featured book: Troubleshooting Techniques of the
>> Successful Technologist http://www.troubleshooters.com/techniques
>You have to add these texlive fonts to your system.
>1.) create file "/etc/fonts/conf.d/09-texlive-fonts.conf"
> $ sudo cp `kpsewhich -var-value
> make a symbolic link for your system
> $ sudo ln
> -s ../conf.avail/09-texlive-fonts.conf
> The content should be something like:
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> provided you installed texlive under /usr/local/texlive/2021
>2.) Make your system aware of this
> $ sudo fc-cache -fsv
>3.) Reconfigure lyx
I *almost* followed your instructions, and added in Ricardo Berlasso's
suggestion of using non-TeX fonts, and now my TeX Gyre Schola no longer
says "(not installed)" and the book printed from it looks like Century
Schoolbook, and not one of those thin, reedy fonts meant for people
with great eyes reading on 1200dpi laser printed Letter paper. Thanks
to both of you!
However, I accidentally ran fc-cache without arguments, then Ctrl+C'ed
out, then ran it with -fsv, and now, in LyX, when I go to select a
font, there are about three zillion arcane fonts to choose from. I
suspect my running fc-cache without arguments caused the three zillion.
Is there a way I can properly rebuild my font cache?
By the way, the only way I can compile it now is with
lyx -e luatex myfile.lyx
I don't know how to set LyX to do that instead of using XeTeX, which no
longer works on this book.
Spring 2021 featured book: Troubleshooting Techniques of the Successful
More information about the lyx-users