Re: [NTG-context] loadcurrentMPgraphic from metafun manual
On Fri, 08 Jun 2007 16:25:13 -0400 Aditya Mahajan [EMAIL PROTECTED] wrote: Quoting nicola [EMAIL PROTECTED]: Hi, I have tried the following example (metafun-p.pdf, p. 112-3): \startMPgraphic draw unitsquare xscaled 5cm yscaled 1cm withpen pencircle scaled 2mm withcolor .625red; \stopMPgraphic \hbox \bgroup \loadcurrentMPgraphic{width=5cm,height=1cm}\placeMPgraphic \quad \loadcurrentMPgraphic{width=8cm,height=1cm}\placeMPgraphic \egroup but nothing is drawn unless I remove the setups in curly braces (in which case a rectangle 5cm x 1cm is drawn). Is there a different way to pass options to the figure inclusion macro? Interestingwhat is happening is something equivalent to \externalfigure [\MPgraphicfile.\the\currentMPgraphic] [type=mps,object=no, symbol=yes,reset=yes, maxwidth=,maxheight=, frame=off,background=, width=8cm, height=1cm]% and there is no figure. If I remove object=no, the figure is there. I do not understand why object=no should affect the placement of the figure. Aditya Hi, right, the object=no value is the problem. You can solve your problem by inserting the following macro somewhere before starttext in your document: \unprotect \def\insertMPfileARG#1#2% {\ifx\undefined\externalfigure \message{[insert file #1 here]}% \else \externalfigure [#1] [\c!type=\c!mps,\c!object=\v!yes, \c!symbol=\v!yes,\c!reset=\v!yes, \c!maxwidth=,\c!maxheight=, \c!frame=\v!off,\c!background=, #2]% \fi} \protect I changed only the no value from object to yes. Wolfgang ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \loadcurrentMPgraphic from metafun manual
Hi, I have tried the following example (metafun-p.pdf, p. 112-3): \startMPgraphic draw unitsquare xscaled 5cm yscaled 1cm withpen pencircle scaled 2mm withcolor .625red; \stopMPgraphic \hbox \bgroup \loadcurrentMPgraphic{width=5cm,height=1cm}\placeMPgraphic \quad \loadcurrentMPgraphic{width=8cm,height=1cm}\placeMPgraphic \egroup but nothing is drawn unless I remove the setups in curly braces (in which case a rectangle 5cm x 1cm is drawn). Is there a different way to pass options to the figure inclusion macro? Nicola ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] loadcurrentMPgraphic from metafun manual
Quoting nicola [EMAIL PROTECTED]: Hi, I have tried the following example (metafun-p.pdf, p. 112-3): \startMPgraphic draw unitsquare xscaled 5cm yscaled 1cm withpen pencircle scaled 2mm withcolor .625red; \stopMPgraphic \hbox \bgroup \loadcurrentMPgraphic{width=5cm,height=1cm}\placeMPgraphic \quad \loadcurrentMPgraphic{width=8cm,height=1cm}\placeMPgraphic \egroup but nothing is drawn unless I remove the setups in curly braces (in which case a rectangle 5cm x 1cm is drawn). Is there a different way to pass options to the figure inclusion macro? Interestingwhat is happening is something equivalent to \externalfigure [\MPgraphicfile.\the\currentMPgraphic] [type=mps,object=no, symbol=yes,reset=yes, maxwidth=,maxheight=, frame=off,background=, width=8cm, height=1cm]% and there is no figure. If I remove object=no, the figure is there. I do not understand why object=no should affect the placement of the figure. Aditya ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___