Garamond-Math icon indicating copy to clipboard operation
Garamond-Math copied to clipboard

There is no ♯ (\sharp) , ▿ (\triangledown) in font Garamond-Math

Open Mariusz-W opened this issue 2 years ago • 1 comments

Some symbols missing that appear in advanced Mathematics. I got the corresponding messages about the missing characters when processing notes of my lectures.

Mariusz-W avatar Nov 22 '22 06:11 Mariusz-W

The symbols \flat and \natural are also missing. It seems that \triangledown is already missing from unicode-math. As a workaround the missing symbols (excluding \triangledown) can be loaded from another font.

Minimal example including the workaround.

% !TEX program = lualatex
\documentclass{article}
\usepackage{unicode-math}

\begin{document}
  \textbf{default font}\\
  \textbackslash flat $\flat$\\
  \textbackslash natural $\natural$\\
  \textbackslash sharp $\sharp$\\
  \textbackslash triangledown $\triangledown$
  \vskip1cm
  
  \setmathfont{Garamond-Math}
  \textbf{Garamond-Math}\\
  \textbackslash flat $\flat$\\
  \textbackslash natural $\natural$\\
  \textbackslash sharp $\sharp$\\
  \textbackslash triangledown $\triangledown$
  \vskip1cm
  
  \setmathfont{Latin Modern Math}[range={\sharp, \natural, \flat}]
  \textbf{Workaround}\\
  \textbackslash flat $\flat$\\
  \textbackslash natural $\natural$\\
  \textbackslash sharp $\sharp$\\
  \textbackslash triangledown $\triangledown$

\end{document}

minimal

f-graf avatar Dec 13 '22 17:12 f-graf