Re: [NTG-context] Metapost error
Works again with last nights beta, thanks. 2011/10/19 Lutz Haseloff : > Hi Hans, Hi all, > > with newest Context and luatex compiling following file: > > \starttext > \startMPcode > draw externalfigure "hacker.jpg" xscaled 30mm yscaled 20mm ; > \stopMPcode > \stoptext > > doesn't show the picture and gives an error message: > > > ! Improper `addto'. > > withpen > draw->...:also(EXPR0)else:doublepath(EXPR0)withpen > .currentpen.fi._op_ > > ; > > ; > <*> ...re "hacker.jpg" xscaled 30mm yscaled 20mm ; > ; > > > metapost > error: unknown, no error, terminal or log messages > metapost > terminal: [1] > > > Thanks for any help > > Lutz > ___ 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 ___
Re: [NTG-context] Metapost error
On Wed, Oct 19, 2011 at 1:34 PM, Lutz Haseloff wrote: > Hi Hans, Hi all, > > with newest Context and luatex compiling following file: > > \starttext > \startMPcode > draw externalfigure "hacker.jpg" xscaled 30mm yscaled 20mm ; > \stopMPcode > \stoptext > > doesn't show the picture and gives an error message: > > > ! Improper `addto'. > > withpen > draw->...:also(EXPR0)else:doublepath(EXPR0)withpen > .currentpen.fi._op_ > > ; > > ; > <*> ...re "hacker.jpg" xscaled 30mm yscaled 20mm ; > ; > > > metapost > error: unknown, no error, terminal or log messages > metapost > terminal: [1] > > > Thanks for any help > > Lutz hm, strange, it seems that externalfigure is redefined This is ok \starttext \startMPcode def externalfigure primary filename = if false : rawtextext("\externalfigure[" & filename & "]") else : image ( addto currentpicture doublepath unitsquare withprescript "fg_name=" & filename ; ) % unitsquare % withpen pencircle scaled 0 % withprescript "fg_name=" & filename fi enddef ; draw externalfigure "hacker.jpg" xscaled 30mm yscaled 20mm ; \stopMPcode \stoptext -- luigi ___ 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 ___
[NTG-context] Metapost error
Hi Hans, Hi all, with newest Context and luatex compiling following file: \starttext \startMPcode draw externalfigure "hacker.jpg" xscaled 30mm yscaled 20mm ; \stopMPcode \stoptext doesn't show the picture and gives an error message: ! Improper `addto'. withpen draw->...:also(EXPR0)else:doublepath(EXPR0)withpen .currentpen.fi._op_ ; ; <*> ...re "hacker.jpg" xscaled 30mm yscaled 20mm ; ; metapost> error: unknown, no error, terminal or log messages metapost> terminal: [1] Thanks for any help Lutz ___ 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 ___
Re: [NTG-context] MetaPost error
Hi Martin, The metafun.mem file is svaed in the directory where you run texexec --make metafun. Thus you need to copy this file into a place where TeX can find it. e.g. \...\texmf-var\web2c. Run mktexlsr In order to be able to typeset FLOWcharts do not forget to load the chart-module At the beginning of your file just say: \usemodule[chart] Willi ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] MetaPost error
Hello I'm very newbie in ConTeXt and I can't generate any document with MetaPost... For example: \startFLOWchart etc. I generate: makemem metafun I did texexec --make --alone metafun and I still have error: initexmf: don't know to dump metafun I can't find default mem file! Where I can set it or something else do to fix this ?... Best regards martin ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context