|
Comme je viens de l'indiquer en commentaire dans ce fil, je cherche à obtenir un fichier d'exemple qui comporte toutes les polices installées sur mon ordi. J'ai donc relancé le script suivant : \documentclass[german]{article} \usepackage{fontspec} \setmainfont{TeX Gyre Termes} \usepackage{luacode} \usepackage[margin=18mm]{geometry} \parindent=0pt \usepackage{longtable,makecell} \renewcommand\arraystretch{2} \usepackage{babel} \begin{document} \begin{luacode} myfonts=dofile(config.luaotfload.paths.index_path_luc) teststring = "Falsches Üben von Xylophonmusik quält jeden größeren Zwerg." tex.print("\\begin{longtable}{lp{10cm}}\\hline") for i,v in ipairs(myfonts.mappings) do -- Stop early for testing purposes. if i > 400 then break end tex.print('\\makecell[l]{\\bfseries') tex.print(-2, v.familyname) tex.print('\\\\[-1ex] \\scriptsize') tex.print(-2, v.fontname) tex.print('} & \\LARGE\\fontspec{' .. v.fontname .. '}') tex.print(-2, teststring) tex.print('\\\\ \\hline') end tex.print("\\end{longtable}") \end{luacode} \end{document} ... lequel plante assez rapidement : cannot open /home/user/.texlive2025/texmf-var/luatex-cache/generic/names/lua otfload-names.luc: No such file or directory stack traceback: [C]: in function 'dofile' [\directlua]:1: in main chunk. \luacode@dbg@exec ...code@maybe@printdbg {#1} #1 } l.33 \end{luacode} Et pour cause : il n'y a pas de fichier $ ls ~/.texlive2025/texmf-var/luatex-cache/generic/names/lua/
luaotfload-lookup-cache.lua luaotfload-lookup-cache.luc luaotfload-names.lua.gz luaotfload-names.luc.gz test.tmp
Car j'imagine que c'est |
Nota : le script ci-dessus est apparu pour la première fois sur ce forum en 2015, dans ce fil.
Je note également qu'à l'époque, il n'avait pas été répondu à la demande, figurant tout à la fin de ce fil, de lister toutes les polices utilisables par des logiciels LaTeX-like et en faire un document ordonné et illustré d'exemples. Je le regrette, tant un tel script me serait utile.