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

Kornel Benko kornel at lyx.org
Thu Jun 17 14:35:01 UTC 2021


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20210617/7e88a972/attachment.asc>


More information about the lyx-users mailing list