externalfigure error in current mkiv beta
Hi all, with the current Context beta ConTeXt ver: 2011.04.13 09:23 MKIV fmt: 2011.4.19 int: english/english and a recent luatex LuaTeX, Version beta-0.66.0-2011041617 (rev 4160) (Win 7 64bit) the externalfigure macro breaks with following message: metapost > loading 'metafun.mp' (experimental metapost version two) metapost > terminal: >> picture ! Isolated expression. <to be read again> ; <*> externalfigure "hacker.png" ; ; metapost > error: unknown, no error, terminal or log messages metapost > terminal: [1] metapost > error: unknown, no error, terminal or log messages metapost > terminal: metapost > error: unknown, no error, terminal or log messages metapost > terminal: metapost > error: unknown, no error, terminal or log messages metapost > terminal: (Please type a command or say `end') metapost > error: unknown, no error, terminal or log messages metapost > terminal: metapost > error: unknown, no error, terminal or log messages metapost > terminal: metapost > error: unknown, no error, terminal or log messages metapost > terminal: >> picture ! Isolated expression. <to be read again> ; <*> externalfigure "hacker.png" ; ; My code: \starttext \startMPcode externalfigure "hacker.png" ; \stopMPcode \stoptext The current "current" from http://www.pragma-ade.com/context/current/cont-tmf.zip works ok. Greetings Lutz
On Tue, Apr 19, 2011 at 2:06 PM, Lutz Haseloff
Hi all,
with the current Context beta ConTeXt ver: 2011.04.13 09:23 MKIV fmt: 2011.4.19 int: english/english and a recent luatex LuaTeX, Version beta-0.66.0-2011041617 (rev 4160) (Win 7 64bit)
the externalfigure macro breaks with following message:
metapost > loading 'metafun.mp' (experimental metapost version two) metapost > terminal: >> picture ! Isolated expression. <to be read again> ; <*> externalfigure "hacker.png" ; ;
metapost > error: unknown, no error, terminal or log messages metapost > terminal: [1]
metapost > error: unknown, no error, terminal or log messages metapost > terminal:
metapost > error: unknown, no error, terminal or log messages metapost > terminal:
metapost > error: unknown, no error, terminal or log messages metapost > terminal: (Please type a command or say `end')
metapost > error: unknown, no error, terminal or log messages metapost > terminal:
metapost > error: unknown, no error, terminal or log messages metapost > terminal:
metapost > error: unknown, no error, terminal or log messages metapost > terminal: >> picture ! Isolated expression. <to be read again> ; <*> externalfigure "hacker.png" ; ;
My code:
\starttext \startMPcode externalfigure "hacker.png" ; \stopMPcode \stoptext confirmed -- luigi
On 19-4-2011 2:26, luigi scarso wrote:
\starttext \startMPcode externalfigure "hacker.png" ; \stopMPcode \stoptext confirmed
in mkiv the functionality has changed: draw externalfigure "somefile" scaled 10cm ; so, beter scaling etc 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 -----------------------------------------------------------------
On Tue, Apr 19, 2011 at 4:36 PM, Hans Hagen
On 19-4-2011 2:26, luigi scarso wrote:
\starttext \startMPcode externalfigure "hacker.png" ; \stopMPcode \stoptext
confirmed
in mkiv the functionality has changed:
draw externalfigure "somefile" scaled 10cm ;
so, beter scaling etc right: this works ok now. \starttext \startMPcode draw externalfigure "hacker.jpg" scaled 10cm ; \stopMPcode \stoptext
-- luigi
On Wed 20 Apr 2011, Lutz Haseloff wrote:
Is there a recent Metafun manual?
http://www.pragma-ade.com/general/manuals/metafun-p.pdf (2010-10-08)
I would even buy it (like the "Fonts in ConTeXt").
http://www.boekplan.nl/node/9 (€49) Pont
Thanks again.
Lutz
2011/4/20 Pontus Lurcock
On Wed 20 Apr 2011, Lutz Haseloff wrote:
Is there a recent Metafun manual?
http://www.pragma-ade.com/general/manuals/metafun-p.pdf (2010-10-08)
I would even buy it (like the "Fonts in ConTeXt").
http://www.boekplan.nl/node/9 (€49)
Pont
But it already needs to be updated with "draw externalfigure" :) Alan P.S. The printed manual on paper is really nice! On Wednesday 20 April 2011 07:09:16 Pontus Lurcock wrote:
On Wed 20 Apr 2011, Lutz Haseloff wrote:
Is there a recent Metafun manual?
http://www.pragma-ade.com/general/manuals/metafun-p.pdf (2010-10-08)
I would even buy it (like the "Fonts in ConTeXt").
http://www.boekplan.nl/node/9 (€49)
Pont
On 17-5-2011 10:41, Alan Braslau wrote:
But it already needs to be updated with "draw externalfigure" :)
I'm still not sure about that one ... compatibility vs clean 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 -----------------------------------------------------------------
On Tuesday 17 May 2011 23:09:51 Hans Hagen wrote:
On 17-5-2011 10:41, Alan Braslau wrote:
"draw externalfigure"
I'm still not sure about that one ... compatibility vs clean
I rather like the new syntax - indeed much cleaner. (However, for compatibility issues, it might be nice to somehow program a better error message, if possible, so that 'externalfigure "hacker.jpg";' more elegantly fails.) In fact, '\externalfigure' in ConTeXt and 'externalfigure' in metafun (without 'draw') can be a bit confusing, as in \starttext \externalfigure "hacker" scaled 5cm ; \stoptext Of course, no-one would ever admit to such foolishness. Alan
On 17-5-2011 11:21, Alan Braslau wrote:
On Tuesday 17 May 2011 23:09:51 Hans Hagen wrote:
On 17-5-2011 10:41, Alan Braslau wrote:
"draw externalfigure"
I'm still not sure about that one ... compatibility vs clean
I rather like the new syntax - indeed much cleaner.
(However, for compatibility issues, it might be nice to somehow program a better error message, if possible, so that 'externalfigure "hacker.jpg";' more elegantly fails.)
pretty hard in metapost
In fact, '\externalfigure' in ConTeXt and 'externalfigure' in metafun (without 'draw') can be a bit confusing, as in \starttext \externalfigure "hacker" scaled 5cm ; \stoptext Of course, no-one would ever admit to such foolishness.
maybe another name externalimage or so (as images in mp need to be drawn) 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 -----------------------------------------------------------------
On Tue, 17 May 2011, Hans Hagen wrote:
In fact, '\externalfigure' in ConTeXt and 'externalfigure' in metafun (without 'draw') can be a bit confusing, as in \starttext \externalfigure "hacker" scaled 5cm ; \stoptext Of course, no-one would ever admit to such foolishness.
maybe another name externalimage or so (as images in mp need to be drawn)
I usually prefer the more verbose: draw textext("\externalfigure[...]") ... which makes things conceptually clearler. Aditya
participants (6)
-
Aditya Mahajan
-
Alan Braslau
-
Hans Hagen
-
luigi scarso
-
Lutz Haseloff
-
Pontus Lurcock