I must confess that the details of font usage and related packages are pretty fuzzy to me. That said, I am under the impression that to use the TeX Gyre fonts, my document must look like the following (compile with lualatex):

\setromanfont{Tex Gyre Termes}
\setmathfont{TeX Gyre Termes Math}

My question is regarding the appearance of the double factorial in the above. With the preamble removed, the double factorial appears as I would hope, but has extra(?) spacing in the document above. I can manually correct for the spacing, but then if I change fonts the spacing is off again. Why does the spacing change and is it possible to get the desired spacing without manual intervention?


classically ! is mathclose but unicode math sets it as mathpunct which makes two adjacent ones have \thinmuskip between them. You can use {!}{!} to avoid that.

Unicode has a !! character which unicode-math makes available as \Exclam but unfortunately it's not in this font, the log shows

Missing character: There is no ‼ (U+203C) in font TeXGyreTermesMath:mode=base;
| improve this answer | |
  • Thanks, {!}{!} fixes the spacing. Out of curiosity, is there an argument to be made for whether mathclose or mathpunct is the appropriate classification? – Scott H. May 8 '16 at 20:36
  • 1
    in math ! is pretty much only used for factorial so mathclose probably works better although it isn't really a mathclose in the sense of ) I'll complain to Will. see what happens:-) – David Carlisle May 8 '16 at 20:40
  • 1
    @ScottH. raised as github.com/wspr/unicode-math/issues/350 – David Carlisle May 8 '16 at 20:45

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.