LyX says Tex Gyra Schola is not installed, but I installed it

Steve Litt 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
>> problem?/etc/fonts/conf.d/09-texlive-fonts.conf
>> 
>> Thanks,
>> 
>> SteveT
>> 
>> 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"
>    e.g.
>	$ sudo cp `kpsewhich -var-value
>		TEXMFSYSVAR`/fonts/conf/texlive-fontconfig.conf
>	/etc/fonts/conf.avail/09-texlive-fonts.conf
>    make a symbolic link for your system
>	$ sudo ln
>		-s ../conf.avail/09-texlive-fonts.conf
>	/etc/fonts/conf.d/09-texlive-fonts.conf
>    The content should be something like:
>	<?xml version="1.0"?>
>	<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
>	<fontconfig>
>	  <dir>/usr/local/texlive/2021/texmf-dist/fonts/opentype</dir>
>	  <dir>/usr/local/texlive/2021/texmf-dist/fonts/truetype</dir>
>	  <dir>/usr/local/texlive/2021/texmf-dist/fonts/type1</dir>
>	  <dir>/usr/local/texlive/texmf-local/fonts/opentype</dir>
>	  <dir>/usr/local/texlive/texmf-local/fonts/truetype</dir>
>	  <dir>/usr/local/texlive/texmf-local/fonts/type1</dir>
>	</fontconfig>
>    provided you installed texlive under /usr/local/texlive/2021
>2.) Make your system aware of this
>    $ sudo fc-cache -fsv
>
>3.) Reconfigure lyx
>
>	Kornel


Thanks Kornel,

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
lualatex myfile.tex

I don't know how to set LyX to do that instead of using XeTeX, which no
longer works on this book.

Thanks,

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques


More information about the lyx-users mailing list