latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
245 stars 29 forks source link

disable-beamer section does not work #95

Closed Wrzlprmft closed 14 years ago

Wrzlprmft commented 14 years ago
\documentclass{beamer}
\usepackage{xltxtra}
\usepackage{unicode-math}

\begin{document}
test
\end{document}

produces the following error when compiled xith xelatex:

(/usr/local/texlive/2009/texmf-dist/tex/xelatex/unicode-math.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/xpackages/xtras/l3keys2e.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading files)
                  Copyright (C) Markus Kohm

)
! Undefined control sequence.
 ...essreplacements \else \um_warning:n 
                                                  {disable-beamer}\beamer@su...
l.2305 }{}

However, if I remove the following lines from unicode-math.sty, everything works fine:

\@ifclassloaded{beamer}{
  \ifbeamer@suppressreplacements\else
    \um_warning:n {disable-beamer}
    \beamer@suppressreplacementstrue
  \fi
}{}

I hope, this is not due to another not-up-to-date-package, since I understand it to be unicode-math-commands, that are unrecognized.

My specifications are: Debian Sqeeze; TeX-Live fully and manually installed; recent versions of fontspec, xltxtra und unicode-math installed according to instructions

PS: I had the same problem with the TeX-Live installed via Debian’s package manager.

wspr commented 14 years ago

fix beamer warning

closed by f1f9229ab6f2fb611ded376498a3e0bb468d95ce

thanks Wrzlprmft !