ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MetaPost and fonts
@ 2002-09-26 11:01 Jens-Uwe Morawski
  2002-09-26 14:53 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-26 11:01 UTC (permalink / raw)


Ahoi,

in a document i use the following font-setup:
\enableregime[il1]
\usetypescriptfile[ts-larabie]
\definetypeface[BlueHighway][ss][sans][BlueHighway][default]
	[rscale=1.3,encoding=ec]
\setupencoding[default=ec]
\setupbodyfont[BlueHighway,ss,10pt]

\usetypescriptfile[ts-misc-ttf]
\definetypeface[Binky][rm][serif][Binky][default][encoding=texnansi]

In the normal text now the default-font is BlueHighway and i can
switch temporally to Binky using {\Binky <some text>}.

Using the above font-setup in \start|\stopMPenvironment sets
correctly the body-font, but a

label(btex some {\Binky important} words etex,origin)

fails, since the command \Binky is unknown.

In contrast the following stand-alone MP-file works.
(You have to setup MetaPost so that it uses texexec for processing
  the generated mpxerr.tex (mpost --tex=texexec or env-var TEX=texexec))

%--snip---
input metafun ;

verbatimtex
\usetypescriptfile[ts-larabie]
\definetypeface[BlueHighway][ss][sans][BlueHighway][default]
	[rscale=1.3,encoding=ec]
\setupencoding[default=ec]
\enableregime[il1]
\setupbodyfont[BlueHighway,ss,10pt]

\usetypescriptfile[ts-misc-ttf]
\definetypeface[Binky][rm][serif][Binky][default][encoding=texnansi]
\starttext
etex

beginfig(1);
label.top(btex Some text in BlueHighway (default). etex, origin) ;
label.bot(btex \Binky  Some text in Binky etex, origin);
endfig;

verbatimtex
\stoptext
etex
end
%---snap----

I thought that ConTeXt generates a file like this to process
the inline MetaPost code, but it seems that i do not understand
the ConTeXt-MP-processing. 

What can i do to have the full typesetting/font-setup capabilities
also available in MetaPost?

Thanks in advance.

Jens


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

* Re: MetaPost and fonts
  2002-09-26 11:01 MetaPost and fonts Jens-Uwe Morawski
@ 2002-09-26 14:53 ` Hans Hagen
  2002-09-26 19:15   ` Jens-Uwe Morawski
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2002-09-26 14:53 UTC (permalink / raw)
  Cc: ConTeXt

At 01:01 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote:

>Ahoi,
>
>in a document i use the following font-setup:
>\enableregime[il1]
>\usetypescriptfile[ts-larabie]
>\definetypeface[BlueHighway][ss][sans][BlueHighway][default]
>         [rscale=1.3,encoding=ec]
>\setupencoding[default=ec]
>\setupbodyfont[BlueHighway,ss,10pt]
>
>\usetypescriptfile[ts-misc-ttf]
>\definetypeface[Binky][rm][serif][Binky][default][encoding=texnansi]
>
>In the normal text now the default-font is BlueHighway and i can
>switch temporally to Binky using {\Binky <some text>}.
>
>Using the above font-setup in \start|\stopMPenvironment sets
>correctly the body-font, but a
>
>label(btex some {\Binky important} words etex,origin)
>
>fails, since the command \Binky is unknown.

\startMPenvironment % optionally [global]
   \define....
\stopMPenvironment
-------------------------------------------------------------------------
                                   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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: MetaPost and fonts
  2002-09-26 14:53 ` Hans Hagen
@ 2002-09-26 19:15   ` Jens-Uwe Morawski
  2002-09-27  6:48     ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-26 19:15 UTC (permalink / raw)


On Thu, 26 Sep 2002 16:53:56 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> At 01:01 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote:
> 
> >Ahoi,
> >
> >in a document i use the following font-setup:
> >\enableregime[il1]
> >\usetypescriptfile[ts-larabie]
> >\definetypeface[BlueHighway][ss][sans][BlueHighway][default]
> >         [rscale=1.3,encoding=ec]
> >\setupencoding[default=ec]
> >\setupbodyfont[BlueHighway,ss,10pt]
> >
> >\usetypescriptfile[ts-misc-ttf]
> >\definetypeface[Binky][rm][serif][Binky][default][encoding=texnansi]
> >
> >In the normal text now the default-font is BlueHighway and i can
> >switch temporally to Binky using {\Binky <some text>}.
> >
> >Using the above font-setup in \start|\stopMPenvironment sets
> >correctly the body-font, but a
> >
> >label(btex some {\Binky important} words etex,origin)
> >
> >fails, since the command \Binky is unknown.
> 
> \startMPenvironment % optionally [global]
>    \define....
> \stopMPenvironment

Ahhh, [global] is required! Now it works. Many thanks.

Bye,
  Jens


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

* Re: MetaPost and fonts
  2002-09-26 19:15   ` Jens-Uwe Morawski
@ 2002-09-27  6:48     ` Hans Hagen
  2002-09-27 10:37       ` Jens-Uwe Morawski
  2002-10-02 17:52       ` Jens-Uwe Morawski
  0 siblings, 2 replies; 8+ messages in thread
From: Hans Hagen @ 2002-09-27  6:48 UTC (permalink / raw)
  Cc: ConTeXt

At 09:15 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote:

> > \startMPenvironment % optionally [global]
> >    \define....
> > \stopMPenvironment
>
>Ahhh, [global] is required! Now it works. Many thanks.

hm, global just tells context to apply it to mp graphics and the doc itself 
(the tex part); saves duplicate keying

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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: MetaPost and fonts
  2002-09-27  6:48     ` Hans Hagen
@ 2002-09-27 10:37       ` Jens-Uwe Morawski
  2002-10-02 17:52       ` Jens-Uwe Morawski
  1 sibling, 0 replies; 8+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-27 10:37 UTC (permalink / raw)


On Fri, 27 Sep 2002 08:48:44 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> At 09:15 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote:
> 
> > > \startMPenvironment % optionally [global]
> > >    \define....
> > > \stopMPenvironment
> >
> >Ahhh, [global] is required! Now it works. Many thanks.
> 
> hm, global just tells context to apply it to mp graphics and the doc itself 
> (the tex part); saves duplicate keying

then
\startMPenvironment[global]

is equal to

\startMPenvironment[+] ?

Jens


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

* Re: MetaPost and fonts
  2002-09-27  6:48     ` Hans Hagen
  2002-09-27 10:37       ` Jens-Uwe Morawski
@ 2002-10-02 17:52       ` Jens-Uwe Morawski
  2002-10-04  7:30         ` Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Jens-Uwe Morawski @ 2002-10-02 17:52 UTC (permalink / raw)


On Fri, 27 Sep 2002 08:48:44 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> At 09:15 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote:
> 
> > > \startMPenvironment % optionally [global]
> > >    \define....
> > > \stopMPenvironment
> >
> >Ahhh, [global] is required! Now it works. Many thanks.
> 
> hm, global just tells context to apply it to mp graphics and the doc itself 
> (the tex part); saves duplicate keying

Sorry Hans. In the same moment when i activated [global] i switched
from run time MP conversion, which is normally activated here, to
'texexec --automp'. Thus, my font definitions work with --automp but
not with the run time MP conversion. Hmm!?

Best,
  Jens


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

* Re: MetaPost and fonts
  2002-10-02 17:52       ` Jens-Uwe Morawski
@ 2002-10-04  7:30         ` Hans Hagen
  2002-10-07 12:31           ` Jens-Uwe Morawski
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2002-10-04  7:30 UTC (permalink / raw)
  Cc: ConTeXt

At 07:52 PM 10/2/2002 +0200, Jens-Uwe Morawski wrote:
>On Fri, 27 Sep 2002 08:48:44 +0200
>Hans Hagen <pragma@wxs.nl> wrote:
>
> > At 09:15 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote:
> >
> > > > \startMPenvironment % optionally [global]
> > > >    \define....
> > > > \stopMPenvironment
> > >
> > >Ahhh, [global] is required! Now it works. Many thanks.
> >
> > hm, global just tells context to apply it to mp graphics and the doc 
> itself
> > (the tex part); saves duplicate keying
>
>Sorry Hans. In the same moment when i activated [global] i switched
>from run time MP conversion, which is normally activated here, to
>'texexec --automp'. Thus, my font definitions work with --automp but
>not with the run time MP conversion. Hmm!?

strange, do you have a minimal example ?

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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: MetaPost and fonts
  2002-10-04  7:30         ` Hans Hagen
@ 2002-10-07 12:31           ` Jens-Uwe Morawski
  0 siblings, 0 replies; 8+ messages in thread
From: Jens-Uwe Morawski @ 2002-10-07 12:31 UTC (permalink / raw)


On Fri, 04 Oct 2002 09:30:31 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> At 07:52 PM 10/2/2002 +0200, Jens-Uwe Morawski wrote:
> >On Fri, 27 Sep 2002 08:48:44 +0200
> >Hans Hagen <pragma@wxs.nl> wrote:
> >
> > > At 09:15 PM 9/26/2002 +0200, Jens-Uwe Morawski wrote:
> > >
> > > > > \startMPenvironment % optionally [global]
> > > > >    \define....
> > > > > \stopMPenvironment
> > > >
> > > >Ahhh, [global] is required! Now it works. Many thanks.
> > >
> > > hm, global just tells context to apply it to mp graphics and the doc 
> > itself
> > > (the tex part); saves duplicate keying
> >
> >Sorry Hans. In the same moment when i activated [global] i switched
> >from run time MP conversion, which is normally activated here, to
> >'texexec --automp'. Thus, my font definitions work with --automp but
> >not with the run time MP conversion. Hmm!?
> 
> strange, do you have a minimal example ?

No, sorry. I've updated ConTeXt yesterday and now it seems that this
problem is gone. I cannot reproduce the error anymore. Thus, i hope it
was only a temporary problem.

Thanks,
  Jens


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

end of thread, other threads:[~2002-10-07 12:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-26 11:01 MetaPost and fonts Jens-Uwe Morawski
2002-09-26 14:53 ` Hans Hagen
2002-09-26 19:15   ` Jens-Uwe Morawski
2002-09-27  6:48     ` Hans Hagen
2002-09-27 10:37       ` Jens-Uwe Morawski
2002-10-02 17:52       ` Jens-Uwe Morawski
2002-10-04  7:30         ` Hans Hagen
2002-10-07 12:31           ` Jens-Uwe Morawski

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).