# Problem using mmap, mathpazo and siunitx

I have these packages in my preamble: siunitx, mmap, mathpazo that somehow seem to mess things up. A minimum working example that shows the error:

\documentclass[a4paper]{article}

\usepackage{mmap}
\usepackage{siunitx}
\usepackage{mathpazo}    % fancy math fonts

\begin{document}

Hello world.

\end{document}


The error I get (using MikTeX 2.9 and LuaLaTeX or pdftex) is

...
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\siunitx\config\siunitx-binary.cfg
")
! Argument of strip@CM@prefix@ has an extra }.
<inserted text>
par
l.9 \begin{document}


If it helps, I've observed that the order of the packages makes no difference. I get the same error. Googling the issue gave no results.

Is there a workaround for this?

### Edit by diabonas:

The problem doesn't seem to be related to siunitx, apparently mmap doesn't support math fonts other than the default Computer Modern: Even a simple

\documentclass{article}
\usepackage{mmap}
\usepackage{mathpazo}    % fancy math fonts
\begin{document}
$Hello$
\end{document}


produces the \strip@CM@prefix@-error.

-
Welcome to TeX.sx! – Marco Daniel Sep 29 '12 at 16:02
@dcherian I've simplified the minimal (non)working example further - see my edit. Apparently the problem isn't related to siunitx, the problem seems to be that mmap doesn't support math fonts other than the default Computer Modern :-( – diabonas Sep 30 '12 at 11:06
Yes, I can reproduce that. What do I do with the question now? – kadal Sep 30 '12 at 18:09
@dcherian I'd try reformulating it to "Is it possible to use mmap with math fonts other than Computer Modern?", in the hope that one of the PDF/font experts here is able to help. I'm afraid though that the answer is "no, it isn't, use glyphtounicode instead" as you already suggested - however I'm not competent enough to judge this, so maybe there actually is a way to do it. – diabonas Sep 30 '12 at 20:53

I've done some more checking around. Replacing mmap with \input{glyphtounicode.tex} works. Further, this comment ( What are good ways to make pdflatex output copy-and-pasteable? ) says that mmap doesn't work with virtual fonts. The mathpazo readme ( http://www.math.washington.edu/tex-archive/fonts/mathpazo/README ) says that it uses virtual fonts. Is this the problem?