When I compile the following code


\setmathsfont(Latin){Neo Euler}

    \( A \)

using XeLaTeX I obtain the following warnings:

Font shape `TU/NeoEuler(0)/m/it' undefined(Font) using `TU/NeoEuler(0)/m/n' instead
Some font shapes were not available, defaults substituted.

I have a font called Neo Euler installed. I don't like warnings, so what can I do?

  • that is saying you don't have an italic version of the font, which could be because you don't have and italic version of the font, or because xetex can not find it, do you know which of those is the case? Mar 2 '18 at 20:39
  • Perhaps I don't have it, but how is it needed here? The output looks just like the euler font I am used to from eulervm.
    – user157036
    Mar 2 '18 at 20:41
  • 1
    well perhaps you don't need it, perhaps the font isn't available in italic, but remember the pdflatex package is hand written specifically for whatever fonts are available in that font family, but mathspec/fontspec are generic font packages that try to do "the right thing" whatever font you name, so it's not unexpected if they end up looking for italic or bold fonts that do not exist and using some sensible defaults in that case, if you name a "main font" the package will try to set up all the standard variants bold, italic etc Mar 2 '18 at 20:43
  • So if I want to use Euler math font with mathspec, I should just arrange with these warnings in the log?
    – user157036
    Mar 2 '18 at 20:46
  • FYI “font shape” like TU/NeoEuler(0)/m/it corresponds to <encoding>/<family>/<series>/<shape> (per this answer, or see texdoc fntguide). In this case, it's saying that it (italics) was substituted with n (normal, i.e. upright/roman). Whether the italics are needed here I don't know. :-) Mar 2 '18 at 20:47

You want to declare that the italic font is the upright (and only) one.


]{Neo Euler}

    \( A \)

Here's the console output:

This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2017-04-15>
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(./euler.aux) [1] (./euler.aux) )
Output written on euler.pdf (1 page).
Transcript written on euler.log.

Your Answer

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