Using fonts from the LaTeX Font Catalogue

David Carlisle d.p.carlisle at gmail.com
Fri May 7 08:54:37 CEST 2021


Paulo ,some comments on your list

> 103 of them are expected to be processed with xeLaTeX or luaLaTeX, but do
not work either because they expect the fonts to be installed, including
XITS:

> asanamath.tex

> Error of the type:
> ! Package fontspec Error: The font "Asana-Math" cannot be found.
> All of them are reported AS being part of TeXLive.

Your texlive appears mis-configured, this document works fine for me in
tl2021 (using Asana Math or Asana-Math names)

\documentclass{article}
\usepackage{unicode-math}
%\setmathfont{Asana Math}
\setmathfont{Asana-Math}
\begin{document}
$x$
\end{document}

Note that if you are searching for fonts by font name rather than filename
with xelatex then you need to configure fontconfig
to look in the texlive tree, specifically add 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>
</fontconfig>

lualatex should find Asana Math by name out of the box.

The asanamath.tex example downloaded from the catalogue works in lualatex
and xelatex when I try it.
just a warning that bold math is not available:

LaTeX Font Warning: Font shape `TU/Asana-Math(0)/b/n' undefined
(Font)              using `TU/Asana-Math(0)/m/n' instead on input line 108.

[2] (./asanamath.aux)

LaTeX Font Warning: Some font shapes were not available, defaults
substituted.

 )
(see the transcript file for additional information)
Output written on asanamath.pdf (2 pages).
Transcript written on asanamath.log.



> Some of them are reported AS part of TeXLive and some as NOT part of
TeXLive.

It would be helpful to filter out all the cases that are documented as not
being in texlive, as in that case clearly the files not being in texlive is
not an error.

>     ---> All of these from a single package: {emerald}
For example these are all documented as not being in texlive.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20210507/b0237797/attachment.html>


More information about the texhax mailing list.