MathTime Professional 2 doesn't work with Beamer. Did anyone encounter the same problem? Below short example:
\documentclass[10pt, xcolor=dvipsnames]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{polski}
\usepackage[polish]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{amsmath}
\usefonttheme{professionalfonts}
\usepackage[subscriptcorrection]{mtpro2}
\renewcommand{\rmdefault}{ptm}
\begin{document}
\begin{frame}{Title}
Short $x+Y$
\end{frame}
\end{document}
I get an error message
! LaTeX Error: Command `\lll' already defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1422 ...bol{\lll} {\mathrel}{AMSa}{"6E}
The problem disappears when switching to the other fonts. Does anybody have a suggestion how to fix it?
It might be important to add that for \documentclass{article}
MathTime Pro 2 works with minor modification the preamble.
Best Answer
The fault is in two places.
First problem: with
mtpro2
one shouldn't loadamssymb
. This is done automatically bybeamer
, but can be prevented with the optionnoamssymb
:Second problem: the
babel
language definition filepolish.ldf
defines\lll
for to me mysterious reasons.Possible fix:
In case you need the
\lll
math symbol, use\mathlll
.Note that loading
amsmath
andgraphicx
is not required withbeamer
, that loads them automatically.