ConTeXt setup in TeX Live

Bruno Voisin bvoisin at icloud.com
Mon Mar 25 19:49:19 CET 2024


> On 25 Mar 2024, at 01:41, Bruno Voisin <bvoisin at icloud.com> wrote:
> 
> Thus texmf-dist/web2c/texmfcnf.lua defines
> 
>           TEXMFLOCAL      = "selfautoparent:texmf-local",
> 
> and you get for example
> 
> % mtxrun --resolve-path TEXMFLOCAL
> /usr/local/texlive/2024/texmf-local
> 
> [...]
> 
> So whereas kpsewhich finds the font
> 
> % kpsewhich LucidaBrightOT.otf                                                                            
> /usr/local/texlive/texmf-local/fonts/opentype/bh/lucidaot/LucidaBrightOT.otf
> 
> context doesn't: running
> 
> % mtxrun --find-file LucidaBrightOT.otf    
> 
> returns nothing. 

Editing the line

           TEXMFLOCAL      = "selfautoparent:texmf-local",
 
in texmfcnf.lua to

           TEXMFLOCAL      = "selfautoparent:../texmf-local",

then running

mtxrun --generate
mtxrun --script fonts --reload

seems to solve the problem. After that,

% mtxrun --resolve-path TEXMFLOCAL
/usr/local/texlive/2024/../texmf-local

% mtxrun --find-file LucidaBrightOT.otf
/usr/local/texlive/texmf-local/fonts/opentype/bh/lucidaot/LucidaBrightOT.otf

and a test context file calling the Lucida OpenType fonts typesets fine.

The comments inside texmfcnf.lua would need to be edited to reflect the actual settings, but the above seems to work.

Thanks to Hans Hagen for pointing (off-list) in the right direction.

Bruno


More information about the tex-live mailing list.