I am trying to use the beautiful PragmataPro font in a ConTeXt document. My font setup is the following.

\definefontfamily [mainface] [serif] [Baskerville]
\definefontfamily [mainface] [sans]  [Open Sans]
\definefontfamily [mainface] [mono]  [Pragmata Pro]
\definefontfamily [mainface] [math]  [Pragmata Pro]


However, the following math snippet fails to render; it fails at 𝟚.

  Ξ© BAut 𝟚 ≃ Aut 𝟚 ≃ 𝟚

I see the following error message in logs.

mkiv lua stats  > unknown math characters: 𝟚 (U+1D7DA) (n=4)

PragmataPro includes this character and I can also see it when typing it in emacs using PragmataPro.

My ConTeXt version:

mtx-context     | ConTeXt Process Management 0.63
mtx-context     |
mtx-context     | main context file: /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2016.05.17 19:20
  • You cannot use a non-math font for math. (There are ways to get this to work partially but the results are really unsatisfactory) Aug 29, 2017 at 22:45
  • What distinguishes a non-math font from a math font? PragmataPro does include all the math glyphs I want. Can you point me to this partial solution?
    – vikraman
    Aug 29, 2017 at 22:52
  • A non-math font does not have a MATH table, i.e. the math symbols have to be in the correct slots. You can try using a text font in math using \definefallbackfamily. Aug 29, 2017 at 23:03
  • I tried to write the same text in tt, but this also fails to render {\tt Ξ© BAut 𝟚 ≃ Aut 𝟚 ≃ 𝟚}. Could the problem be elsewhere?
    – vikraman
    Aug 29, 2017 at 23:05
  • First of all, you are using \definefontfamily wrong. It is not serif, sans, mono, and math but rm, ss, tt, and mm. Aug 29, 2017 at 23:10

1 Answer 1


I do not have your proprietary fonts. Here is a minimal example which uses DejaVu Sans for math. The main math font is still Latin Modern Math but letters, Greek, mathematical operator, and double struck digits, of course, are taken from DejaVu via fallback.

\definefontfamily [mainface] [rm] [DejaVu Serif]
\definefontfamily [mainface] [ss] [DejaVu Sans]
\definefontfamily [mainface] [tt] [DejaVu Sans]

\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=lowercasenormal]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=lowercasenormal,offset=lowercaseitalic,tf=style:italic]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=uppercasenormal]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=uppercasenormal,offset=uppercaseitalic,tf=style:italic]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=lowercasegreeknormal,offset=lowercasegreekitalic,tf=style:italic]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=uppercasegreeknormal]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=digitsdoublestruck]
\definefallbackfamily [mainface] [mm] [DejaVu Sans] [range=mathematicaloperators]

\definefontfamily [mainface] [mm] [Latin Modern Math]




\mono{Ξ© B Aut 𝟚 ≃ Aut 𝟚 ≃ 𝟚}

  Ξ© B \Aut 𝟚 ≃ \Aut 𝟚 ≃ 𝟚


As I already said in the comments, results are really poor when trying to use non-math fonts in math. I'm rather surprised that it actually does not turn out like complete rubbish.

enter image description here

  • With TeX Gyre Pagella Math and PragmataPro as fallback, I get this: !screenshot which looks decent. I don't think the font is damaged because I can see 𝟚 when using the same font in my editor.
    – vikraman
    Aug 29, 2017 at 23:43
  • @vikraman If you like my answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and marking it as accepted answer (by clicking on the checkmark βœ“). It's hard to say what the issue behind the missing 𝟚 is. I don't have that particular font and the only font I know which has 𝟚 works fine. Aug 29, 2017 at 23:48
  • @vikraman I found that FreeSerif also has the glyph (list of supported fonts) and it also works fine (screenshot) so I really think the font you use is broken in some way. Aug 29, 2017 at 23:51
  • Thanks, I think I'll probably switch everything to TeX Gyre in that case.
    – vikraman
    Aug 29, 2017 at 23:53
  • @vikraman Yes, using a font designed for math is usually the best solution. You might want to check out the other TeX Gyre math fonts as well. There is also Bonum, Schola, and Termes. Termes will probably fit best with your Baskerville serif font. Aug 29, 2017 at 23:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .