On 6/5/2014 9:37 PM, Sanjoy Mahajan wrote:
Hans Hagen <pra...@wxs.nl> writes:

you see the message:
LuaTeX warning (file cmr10): Font cmr10 at 3000 not found

You are right, though I had unwisely ignored it (weak excuse below).

so you need to load a map file that matches the used fonts:
\loadmapfile[mkiv-base]

That does fix it, thanks.

The warning message, which is helpful, seems to happen only with a
relatively recent LuaTeX.  In my earlier tests, with 0.78, there wasn't
a message, and also with the luatex in Debian's TL2014 there isn't one
(which is why I ignored it).

Debian's TL has luatex beta-0.79.1 (TeX Live 2014/Debian) (rev 4971)

The version in the context standalone is just a bit later:

beta-0.79.1 (TeX Live 2014/dev) (rev 4972)

Hard to believe that one svn revision makes all the difference, but
maybe it does.

I've added a "--mapfiles" option to "mtxrun --script metapost" (the more modern replacement for mptopdf) and default to some base map files. Will be in next beta. In context itself (when embedding such graphics) one still need to include those map files. However, when using mp graphics in context, it makes much more sense to define them runtime.

Alternatively, you can consider making your mp graphics like this:

\startMPpage
  some code
\stopMPpage

This will use the regular font system, gives access to everything context as well, and makes it possible to opentype fonts. The resulting (cropped) graphic can of course be included. One can also have more of them:

\starttext

\startMPpage
  some code
\stopMPpage

\startMPpage
  some code
\stopMPpage

\stoptext

and include the pages selectively.

Hans


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to