For my document I would like to use Linux Libertine as main font and Neo Euler as maths font. However, there seems to be some conflict with the code I am using. Here is a MWE and its output:


\usepackage{luatextra, amsmath}
\usepackage[math-style=ISO, bold-style=ISO]{unicode-math}

% Main fonts
\defaultfontfeatures{Ligatures=TeX, Scale=MatchLowercase}

\setmainfont[SmallCapsFont={LinLibertineCapitalsO}, SmallCapsFeatures={Letters=SmallCaps}, , Numbers=OldStyle]{Linux Libertine O}
\setsansfont[LetterSpace=3, Numbers={Proportional,OldStyle}]{Myriad Pro}
\setmonofont{Ubuntu Mono}
\setmathfont{Neo Euler}


\emph{ABCDEFGHIKLMNOPQRSTUVWXZY abcdefghijklmnopqrstuvxyz}
\(ABCDEFGHIKLMNOPQRSTUVWXZY abcdefghijklmnopqrstuvxyz\)
\[ABCDEFGHIKLMNOPQRSTUVWXZY abcdefghijklmnopqrstuvxyz\]
ABCDEFGHIKLMNOPQRSTUVWXZY abcdefghijklmnopqrstuvxyz
\[ \mathbf{\hat{x}} \iiint \mathbf{\dot{A}} \]


Euler or Linux Libertine?

Note how there seems to be a mix-up between the two fonts. How can I make sure the correct fonts are selected?

  • I now realize that if I specify Neo Euler as my main font plainly by \setmainfont{Neo Euler} the commands \textit and \textbf do not have any effect. Thoughts? – Ingo Apr 6 '12 at 16:23
  • because it has no bold or italic text fonts, text and math fonts are built and handled differently. – Khaled Hosny Apr 6 '12 at 19:44

Neo Euler is upright by design and currently math italic slots are empty (now I think this was a bad decision, but no time to fix it now), so [math-style=ISO, bold-style=ISO] does not make much sense here and what you are seeing is the default Computer Modern math font, instead you should use [math-style=upright].

  • Thanks for the explanation. Euler really is a great typeface, but I am also convinced of the ISO standard for math typesetting. It is the most logical approach, so I will look into alternatives. – Ingo Apr 7 '12 at 11:57
  • 1
    @tehingo, by design Euler is an upright italic (Hermann Zapf is to be blamed, I didn't design it :)), this is how things are and if you really want slanted italic, then Euler is not your best choice. – Khaled Hosny Apr 7 '12 at 12:25
  • No blame to Mr Zapf, I'm sure he has his reasons ;-). Personally I prefer a different style, so I'll decide for something else :-). Thanks again anyway! – Ingo Apr 7 '12 at 12:49

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.