4

Using beamer and unicode-math together leads to the disappearance of all log-like operators (\log, \mod, \sin, etc.), as shown by the following minimal file. Interestingly, compiling with XeLaTeX or LuaLaTex leads to a different whitespace “occupied” by the missing \log.

\documentclass{beamer}
\usepackage{unicode-math}
\begin{document}
\begin{frame}
  log$|log|\log|\mathrm{log}$
\end{frame}
\end{document}

This does not happens in the article class or without the unicode-math package. Is there a work-around for this bug ?

  • For what it’s worth, adding \setoperatorfont\mathrm in the preamble doesn’t change anything – Frédéric Grosshans Feb 23 '16 at 14:56
4

You have to override the default math font choice:

\documentclass{beamer}
\usefonttheme{professionalfonts}
\usepackage{unicode-math}
\begin{document}
\begin{frame}
  log$|log|\log|\mathrm{log}$
\end{frame}
\end{document}

enter image description here

However this might not be what you want; presently there's no sans serif Unicode math font.

| improve this answer | |
  • Thanks, it works! But if it is a sans-serif font problem, why do my other attempts to move to a math serif font (via \setoperatorfont\mathrm or \usefonttheme[onlymath]{serif}) fail ? – Frédéric Grosshans Feb 23 '16 at 15:58

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.