I'm using mathdesign package. Most features including greek fonts are satisfactory, however its alphabet math fonts look ugly. amsfonts package has standard good-looking fonts but its greek fonts are ugly. So I want to use mathdesign package with ams alphabet math fonts but they have conflict.

How can I use two different font packages?

------ Additional Question ---

Now I try to use GreekMathSymbols fonts for Greek symbol only.

\setmainfont{EB Garamond}[Scale=MatchLowercase]
\setsansfont{Clear Sans}[Scale=MatchLowercase]
\setmathfont{Asana Math}

It works fine with Greek symbols But I want latin modern math for latin and numbers so I tried this one


This time, Greek Symbols are changed to default fonts with following error message

** Font "GreekMathSymbols" does not contain requested(fontspec) Script "Math".

When the main math font is Asana Math, there was no such an error.

I found the answer

GreekMathSymbols.ttf doesn't have a math table - so I changed it to STIX Two Math

\setmathfont{STIX Two Math}[range=bfsfit/{greek,Greek}]

it didn't work,

option bfsfit should be changed to \mathit


\setmathfont{Latin Modern Math}
\setmathfont{STIX Two Math}[range=\mathit/{greek,Greek}]

it works as I wanted

In unicod-math manual there is no explanation about \mathit option when selecting font range

1 Answer 1


Use Unicode fonts. Then you can choose really beautiful ones, there are multiple for any taste. You also will be able to mix fonts for different Unicode ranges.

\documentclass[12pt, twoside, paper = B5]{scrbook}


\setmainfont{Libertinus Serif}
\setmathfont{STIX Two Math}
\setmathfont{TeX Gyre Pagella Math}[range = \mdlgwhtsquare]
  • thanks a lot. I'll try. only problem is that these packages do not support PdfLatex.
    – HaewonLee
    Jul 15, 2021 at 8:30
  • 1
    If you don't have a very serious reason to use pdftex, switch to LuaTeX.
    – facetus
    Jul 15, 2021 at 8:40
  • 1
    pdftex is really just for legacy 8-bit fonts from last century.
    – Cicada
    Jul 15, 2021 at 11:39
  • thank you for your comments. Pdflatex is a little faster when building but I'll move to LualaTex
    – HaewonLee
    Jul 16, 2021 at 0:11
  • 1
    It's a very bold statement, and doesn't make sense without context given. Both engines use the same code for the TeX part. In general, if a package is implemented in Lua, it will be several times faster, than the same implemented in pure TeX. Moreover, because of TeX limitations, for certain functionality you must save intermediate results and run a TeX engine several times to achieve a goal. If something is implemented in Lua, you don't need to compile the same document sometimes 5 times over an over. Nowadays, more and more packages are switching to Lua.
    – facetus
    Jul 16, 2021 at 0:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.