From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4624 Path: main.gmane.org!not-for-mail From: Marc van Dongen Newsgroups: gmane.comp.tex.context Subject: Re: Include PS in Metapost Date: Mon, 7 May 2001 07:04:32 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <20010507070431.S21612@cs.ucc.ie> References: <200105070535.f475Z7Y09890@merkur.econ.muni.cz> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="+g7M9IMkV8truYOl" X-Trace: main.gmane.org 1035395274 27236 80.91.224.250 (23 Oct 2002 17:47:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:47:54 +0000 (UTC) Cc: ConTeXt mailing list Original-To: AlterEgo Qasars In-Reply-To: <200105070535.f475Z7Y09890@merkur.econ.muni.cz>; from quasar@econ.muni.cz on Mon, May 07, 2001 at 07:35:07AM +0200 Xref: main.gmane.org gmane.comp.tex.context:4624 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4624 --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline AlterEgo Qasars (quasar@econ.muni.cz) wrote: : Good morning. Howsagoin, : Is it possible to include a postscript figure into a : MetaPost source? If it isn't possible generally, is it : possible to include the output of other MetaPost file? [snip] You can indeed. See below. Regards, Marc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% verbatimtex \documentclass{article} \usepackage{graphicx} \begin{document} etex; defaultfont := "cmr12"; defaultscale := 12pt /fontsize defaultfont; input mp-tool; prologues := 2; beginfig( 0 ); draw btex \includegraphics{fib.eps} etex; endfig; end. --+g7M9IMkV8truYOl Content-Type: application/postscript Content-Disposition: attachment; filename="fib.eps" %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: -477 -114 185 296 %%Creator: MetaPost %%CreationDate: 2000.09.26:1853 %%Pages: 1 %%EndProlog %%Page: 1 1 %%HiResBoundingBox: -476.49944 -113.64201 184.5126 295.07072 0 0.49814 dtransform truncate idtransform setlinewidth pop [] 0 setdash 1 setlinejoin 10 setmiterlimit newpath 0 0 moveto 0 -2.83482 lineto 2.83482 -2.83482 lineto 2.83482 0 lineto closepath stroke newpath 2.83482 -2.83482 moveto 5.66965 -2.83482 lineto 5.66965 0 lineto 2.83482 0 lineto closepath stroke newpath 5.66965 0 moveto 5.66965 5.66965 lineto 0 5.66965 lineto 0 0 lineto closepath stroke newpath 0 5.66965 moveto -8.50447 5.66965 lineto -8.50447 -2.83482 lineto 0 -2.83482 lineto closepath stroke newpath -8.50447 -2.83482 moveto -8.50447 -17.00894 lineto 5.66965 -17.00894 lineto 5.66965 -2.83482 lineto closepath stroke newpath 5.66965 -17.00894 moveto 28.34824 -17.00894 lineto 28.34824 5.66965 lineto 5.66965 5.66965 lineto closepath stroke newpath 28.34824 5.66965 moveto 28.34824 42.52235 lineto -8.50447 42.52235 lineto -8.50447 5.66965 lineto closepath stroke newpath -8.50447 42.52235 moveto -68.03577 42.52235 lineto -68.03577 -17.00894 lineto -8.50447 -17.00894 lineto closepath stroke newpath -68.03577 -17.00894 moveto -68.03577 -113.39294 lineto 28.34824 -113.39294 lineto 28.34824 -17.00894 lineto closepath stroke newpath 28.34824 -113.39294 moveto 184.26353 -113.39294 lineto 184.26353 42.52235 lineto 28.34824 42.52235 lineto closepath stroke newpath 184.26353 42.52235 moveto 184.26353 294.82166 lineto -68.03577 294.82166 lineto -68.03577 42.52235 lineto closepath stroke newpath -68.03577 294.82166 moveto -476.25037 294.82166 lineto -476.25037 -113.39294 lineto -68.03577 -113.39294 lineto closepath stroke showpage %%EOF --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="eps.mp" verbatimtex \documentclass{article} \usepackage{graphicx} \begin{document} etex; defaultfont := "cmr12"; defaultscale := 12pt /fontsize defaultfont; input mp-tool; prologues := 2; beginfig( 0 ); draw btex \includegraphics{fib.eps} etex; endfig; end. --+g7M9IMkV8truYOl--