ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Include PS in Metapost
@ 2001-05-07  5:35 AlterEgo Qasars
  2001-05-07  6:04 ` Marc van Dongen
  2001-05-07  8:36 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: AlterEgo Qasars @ 2001-05-07  5:35 UTC (permalink / raw)


Good morning.

Since here are many MetaPost gurus, I dare to ask this
question:

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?

My problem is this: I'd like to prepare a logo for
some society, and I need to include a font (only letters
MUES). I chose Concrete bold font, but it doesn't exist
in PS. With Mr. Hoekwater's help (hopefully I spelled 
your name correctly; if not, forgive me, please) I made
postscript figures from single letters. I can to add them
into the logo with TeX. But direct Metapost approach may
be preferable. Any hint how to do it?

Many greetings,
Michal Kvasnicka


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Include PS in Metapost
  2001-05-07  5:35 Include PS in Metapost AlterEgo Qasars
@ 2001-05-07  6:04 ` Marc van Dongen
  2001-05-07  8:34   ` Hans Hagen
  2001-05-07  8:36 ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Marc van Dongen @ 2001-05-07  6:04 UTC (permalink / raw)
  Cc: ConTeXt mailing list

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

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.

[-- Attachment #2: fib.eps --]
[-- Type: application/postscript, Size: 1774 bytes --]

[-- Attachment #3: eps.mp --]
[-- Type: text/plain, Size: 255 bytes --]

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Include PS in Metapost
  2001-05-07  6:04 ` Marc van Dongen
@ 2001-05-07  8:34   ` Hans Hagen
  2001-05-07  8:52     ` Marc van Dongen
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2001-05-07  8:34 UTC (permalink / raw)
  Cc: AlterEgo Qasars, ConTeXt mailing list

At 07:04 AM 5/7/01 +0100, Marc van Dongen wrote:

>beginfig( 0 );
>  draw btex \includegraphics{fib.eps} etex;
>endfig;

Are you rsure about that? btex/etex graphics only pass fonts and rules to
the mpx file, specials are ignored,

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Include PS in Metapost
  2001-05-07  5:35 Include PS in Metapost AlterEgo Qasars
  2001-05-07  6:04 ` Marc van Dongen
@ 2001-05-07  8:36 ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2001-05-07  8:36 UTC (permalink / raw)
  Cc: ConTeXt mailing list

At 07:35 AM 5/7/01 +0200, AlterEgo Qasars wrote:
>Good morning.
>
>Since here are many MetaPost gurus, I dare to ask this
>question:
>
>Is it possible to include a postscript figure into a
>MetaPost source? If it isn't possible generally, is it

you can use use pdtoedit to make a mp file from your ps one 

>possible to include the output of other MetaPost file?

then, you can use metafun macros to include mp subfigs, 

loadfigure "koe.mp" number 1
  scaled .5 ;

and do fancy things like 

refill currentpicture
  withcolor red ;

or 

redraw currentpicture
  withpen pencircle scaled 2pt withcolor green ;

also, did you read the makempy manual? 

[there are also macros for including bitmap graphics, hyperlinks etc into
mp code]

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Include PS in Metapost
  2001-05-07  8:34   ` Hans Hagen
@ 2001-05-07  8:52     ` Marc van Dongen
  0 siblings, 0 replies; 5+ messages in thread
From: Marc van Dongen @ 2001-05-07  8:52 UTC (permalink / raw)
  Cc: AlterEgo Qasars, ConTeXt mailing list

Hans Hagen (pragma@wxs.nl) wrote:

: At 07:04 AM 5/7/01 +0100, Marc van Dongen wrote:
: 
: >beginfig( 0 );
: >  draw btex \includegraphics{fib.eps} etex;
: >endfig;
: 
: Are you rsure about that? btex/etex graphics only pass fonts and rules to
: the mpx file, specials are ignored,

Hmm. You are right. Sorry about the confusion.
I only tested this by running metapost on it.
I didn't look at the result.

Sorry once more.

Regards,

Marc


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-05-07  8:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-07  5:35 Include PS in Metapost AlterEgo Qasars
2001-05-07  6:04 ` Marc van Dongen
2001-05-07  8:34   ` Hans Hagen
2001-05-07  8:52     ` Marc van Dongen
2001-05-07  8:36 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).