ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* luatex-plain & metapost
@ 2009-10-23 12:36 luigi scarso
  2009-10-25 14:54 ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: luigi scarso @ 2009-10-23 12:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I'm experimenting with
luatex-plain in minimals, cfr.
minimals/tex/texmf-context/tex/generic/context

All examples are compiled with

$> luatex  --fmt=luatex-plain.fmt luatex-test.tex

luatex-plain.fmt is build with

$>luatex --ini luatex-plain.tex


This is ok:
%luatex-test.tex
\pdfoutput=1
\setmplibformat{metafun}
\mplibcode
    beginfig(1) ;
        draw fullcircle
            scaled 10cm
            withcolor red
            withpen pencircle xscaled 4mm yscaled 2mm rotated 30 ;
        label("Foo",(0bp,0bp));
    endfig ;
\endmplibcode
\end

This is wrong:
%luatex-test-wrong.tex
\pdfoutput=1
\setmplibformat{metafun}
\mplibcode
    beginfig(1) ;
        draw fullcircle
            scaled 10cm
            withcolor red
            withpen pencircle xscaled 4mm yscaled 2mm rotated 30 ;
        label(textext("Foo"),(0bp,0bp));
    endfig ;
\endmplibcode
\end

Any ideas ?
-- 
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
___________________________________________________________________________________


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

* Re: luatex-plain & metapost
  2009-10-23 12:36 luatex-plain & metapost luigi scarso
@ 2009-10-25 14:54 ` Hans Hagen
  2009-10-25 15:54   ` luigi scarso
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2009-10-25 14:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

luigi scarso wrote:
> I'm experimenting with
> luatex-plain in minimals, cfr.

>         label(textext("Foo"),(0bp,0bp));

textext is a mkiv feature

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: luatex-plain & metapost
  2009-10-25 14:54 ` Hans Hagen
@ 2009-10-25 15:54   ` luigi scarso
  2009-10-25 16:30     ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: luigi scarso @ 2009-10-25 15:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Oct 25, 2009 at 4:54 PM, Hans Hagen <pragma@wxs.nl> wrote:
> luigi scarso wrote:
>>
>> I'm experimenting with
>> luatex-plain in minimals, cfr.
>
>>        label(textext("Foo"),(0bp,0bp));
>
> textext is a mkiv feature
not a metafun macro ?

Anyway, this also doesn't work
%luatex-test-wrong.tex
\pdfoutput=1
\setmplibformat{metafun}
\mplibcode
   beginfig(1) ;
       draw fullcircle
           scaled 10cm
           withcolor red
           withpen pencircle xscaled 4mm yscaled 2mm rotated 30 ;
       label(btex Foo etex,(0bp,0bp));
   endfig ;
\endmplibcode
\end
-- 
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
___________________________________________________________________________________

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

* Re: luatex-plain & metapost
  2009-10-25 15:54   ` luigi scarso
@ 2009-10-25 16:30     ` Hans Hagen
  2009-10-25 21:59       ` luigi scarso
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2009-10-25 16:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

luigi scarso wrote:
> On Sun, Oct 25, 2009 at 4:54 PM, Hans Hagen <pragma@wxs.nl> wrote:
>> luigi scarso wrote:
>>> I'm experimenting with
>>> luatex-plain in minimals, cfr.
>>>        label(textext("Foo"),(0bp,0bp));
>> textext is a mkiv feature
> not a metafun macro ?
> 
> Anyway, this also doesn't work
> %luatex-test-wrong.tex
> \pdfoutput=1
> \setmplibformat{metafun}
> \mplibcode
>    beginfig(1) ;
>        draw fullcircle
>            scaled 10cm
>            withcolor red
>            withpen pencircle xscaled 4mm yscaled 2mm rotated 30 ;
>        label(btex Foo etex,(0bp,0bp));
>    endfig ;
> \endmplibcode
> \end

forget about metafun in plain ... it cooperates with mkiv and it's very 
unlikely that i'll ever make it generic

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: luatex-plain & metapost
  2009-10-25 16:30     ` Hans Hagen
@ 2009-10-25 21:59       ` luigi scarso
  2009-10-26  7:08         ` Taco Hoekwater
  0 siblings, 1 reply; 13+ messages in thread
From: luigi scarso @ 2009-10-25 21:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen <pragma@wxs.nl> wrote:
> forget about metafun in plain ... it cooperates with mkiv and it's very
> unlikely that i'll ever make it generic
ok , but this also doesn't work
 \pdfoutput=1
 \setmplibformat{plain}
 \mplibcode
   beginfig(1) ;
       draw fullcircle
           scaled 10cm
           withcolor red
           withpen pencircle xscaled 4mm yscaled 2mm rotated 30 ;
       label(btex Foo etex,(0bp,0bp));
   endfig ;
 \endmplibcode
 \end

-- 
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
___________________________________________________________________________________


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

* Re: luatex-plain & metapost
  2009-10-25 21:59       ` luigi scarso
@ 2009-10-26  7:08         ` Taco Hoekwater
  2009-10-26  8:41           ` luigi scarso
  0 siblings, 1 reply; 13+ messages in thread
From: Taco Hoekwater @ 2009-10-26  7:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users



luigi scarso wrote:
> On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen <pragma@wxs.nl> wrote:
>> forget about metafun in plain ... it cooperates with mkiv and it's very
>> unlikely that i'll ever make it generic
> ok , but this also doesn't work
>  \pdfoutput=1
>  \setmplibformat{plain}
>  \mplibcode
>    beginfig(1) ;
>        draw fullcircle
>            scaled 10cm
>            withcolor red
>            withpen pencircle xscaled 4mm yscaled 2mm rotated 30 ;
>        label(btex Foo etex,(0bp,0bp));

There is no btex .. etex in mplib, at all.

Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: luatex-plain & metapost
  2009-10-26  7:08         ` Taco Hoekwater
@ 2009-10-26  8:41           ` luigi scarso
  2009-10-26  8:47             ` Taco Hoekwater
  2009-10-26  8:53             ` Hans Hagen
  0 siblings, 2 replies; 13+ messages in thread
From: luigi scarso @ 2009-10-26  8:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Oct 26, 2009 at 9:08 AM, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> luigi scarso wrote:
>> On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen <pragma@wxs.nl> wrote:
>>> forget about metafun in plain ... it cooperates with mkiv and it's very
>>> unlikely that i'll ever make it generic
>> ok , but this also doesn't work
>>  \pdfoutput=1
>>  \setmplibformat{plain}
>>  \mplibcode
>>    beginfig(1) ;
>>        draw fullcircle
>>            scaled 10cm
>>            withcolor red
>>            withpen pencircle xscaled 4mm yscaled 2mm rotated 30 ;
>>        label(btex Foo etex,(0bp,0bp));
>

> There is no btex .. etex in mplib, at all.
>
So there are no others way to put a text in a btex ...etex fashion ?

-- 
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
___________________________________________________________________________________

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

* Re: luatex-plain & metapost
  2009-10-26  8:41           ` luigi scarso
@ 2009-10-26  8:47             ` Taco Hoekwater
  2009-10-26  8:51               ` luigi scarso
  2009-10-26  8:53             ` Hans Hagen
  1 sibling, 1 reply; 13+ messages in thread
From: Taco Hoekwater @ 2009-10-26  8:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users



luigi scarso wrote:
> On Mon, Oct 26, 2009 at 9:08 AM, Taco Hoekwater <taco@elvenkind.com> wrote:
>>
>> luigi scarso wrote:
>>> On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen <pragma@wxs.nl> wrote:
>>>> forget about metafun in plain ... it cooperates with mkiv and it's very
>>>> unlikely that i'll ever make it generic
>>> ok , but this also doesn't work
>>>  \pdfoutput=1
>>>  \setmplibformat{plain}
>>>  \mplibcode
>>>    beginfig(1) ;
>>>        draw fullcircle
>>>            scaled 10cm
>>>            withcolor red
>>>            withpen pencircle xscaled 4mm yscaled 2mm rotated 30 ;
>>>        label(btex Foo etex,(0bp,0bp));
> 
>> There is no btex .. etex in mplib, at all.
>>
> So there are no others way to put a text in a btex ...etex fashion ?

Not without macro/lua support, no. context mkiv does support these
things, but Hans is (understandably) unwilling to write code to
deal with the fairly unpredictable font setup of the luatex-plain
environment.

Best wishes,
Taco

___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: luatex-plain & metapost
  2009-10-26  8:47             ` Taco Hoekwater
@ 2009-10-26  8:51               ` luigi scarso
  2009-10-26  8:59                 ` Taco Hoekwater
  0 siblings, 1 reply; 13+ messages in thread
From: luigi scarso @ 2009-10-26  8:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Oct 26, 2009 at 10:47 AM, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> luigi scarso wrote:
>> On Mon, Oct 26, 2009 at 9:08 AM, Taco Hoekwater <taco@elvenkind.com> wrote:
>>>
>>> luigi scarso wrote:
>>>> On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen <pragma@wxs.nl> wrote:
>>>>> forget about metafun in plain ... it cooperates with mkiv and it's very
>>>>> unlikely that i'll ever make it generic
>>>> ok , but this also doesn't work
>>>>  \pdfoutput=1
>>>>  \setmplibformat{plain}
>>>>  \mplibcode
>>>>    beginfig(1) ;
>>>>        draw fullcircle
>>>>            scaled 10cm
>>>>            withcolor red
>>>>            withpen pencircle xscaled 4mm yscaled 2mm rotated 30 ;
>>>>        label(btex Foo etex,(0bp,0bp));
>>
>>> There is no btex .. etex in mplib, at all.
>>>
>> So there are no others way to put a text in a btex ...etex fashion ?
>
> Not without macro/lua support, no. context mkiv does support these
> things, but Hans is (understandably) unwilling to write code to
> deal with the fairly unpredictable font setup of the luatex-plain
> environment.
OK -- I understand this.
Any plan to implement btex...etex in mplib ?


-- 
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
___________________________________________________________________________________

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

* Re: luatex-plain & metapost
  2009-10-26  8:41           ` luigi scarso
  2009-10-26  8:47             ` Taco Hoekwater
@ 2009-10-26  8:53             ` Hans Hagen
  1 sibling, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2009-10-26  8:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

luigi scarso wrote:
> On Mon, Oct 26, 2009 at 9:08 AM, Taco Hoekwater <taco@elvenkind.com> wrote:
>>
>> luigi scarso wrote:
>>> On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen <pragma@wxs.nl> wrote:
>>>> forget about metafun in plain ... it cooperates with mkiv and it's very
>>>> unlikely that i'll ever make it generic
>>> ok , but this also doesn't work
>>>  \pdfoutput=1
>>>  \setmplibformat{plain}
>>>  \mplibcode
>>>    beginfig(1) ;
>>>        draw fullcircle
>>>            scaled 10cm
>>>            withcolor red
>>>            withpen pencircle xscaled 4mm yscaled 2mm rotated 30 ;
>>>        label(btex Foo etex,(0bp,0bp));
> 
>> There is no btex .. etex in mplib, at all.
>>
> So there are no others way to put a text in a btex ...etex fashion ?

well, you can set up some kind of mechanism that eventually produces a 
picture that mp can handle, or roll out your own code

anyhow, i see not much reason for spending time on that kind of support 
for plain as i have no use for it

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: luatex-plain & metapost
  2009-10-26  8:51               ` luigi scarso
@ 2009-10-26  8:59                 ` Taco Hoekwater
  2009-10-26  9:03                   ` luigi scarso
  0 siblings, 1 reply; 13+ messages in thread
From: Taco Hoekwater @ 2009-10-26  8:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users



luigi scarso wrote:
> OK -- I understand this.
> Any plan to implement btex...etex in mplib ?

Not btex ... etex, no.

Maybe something new will appear in the long run, maybe not.

Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: luatex-plain & metapost
  2009-10-26  8:59                 ` Taco Hoekwater
@ 2009-10-26  9:03                   ` luigi scarso
  2009-10-26 16:42                     ` Dohyun Kim
  0 siblings, 1 reply; 13+ messages in thread
From: luigi scarso @ 2009-10-26  9:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> luigi scarso wrote:
>> OK -- I understand this.
>> Any plan to implement btex...etex in mplib ?
>
> Not btex ... etex, no.
>
> Maybe something new will appear in the long run, maybe not.
>
> Best wishes,
> Taco

>well, you can set up some kind of mechanism
>that eventually produces a picture that mp can handle, or roll out your own code
>anyhow, i see not much reason for spending
>time on that kind of support for plain as i have no use for it
>
>Hans


OK.

-- 
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
___________________________________________________________________________________


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

* Re: luatex-plain & metapost
  2009-10-26  9:03                   ` luigi scarso
@ 2009-10-26 16:42                     ` Dohyun Kim
  0 siblings, 0 replies; 13+ messages in thread
From: Dohyun Kim @ 2009-10-26 16:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2009/10/26 luigi scarso <luigi.scarso@gmail.com>:
>> luigi scarso wrote:
>>> OK -- I understand this.
>>> Any plan to implement btex...etex in mplib ?
>>
>> Not btex ... etex, no.
>>
>> Maybe something new will appear in the long run, maybe not.
>>
>> Best wishes,
>> Taco
>
>>well, you can set up some kind of mechanism
>>that eventually produces a picture that mp can handle, or roll out your own code
>>anyhow, i see not much reason for spending
>>time on that kind of support for plain as i have no use for it
>>
>>Hans
>
>
> OK.

Well... I have implemented btex .. etex feature
upon Hans & Taco's luatex-mplib.* files
mostly by mimicking the implementation in context.

Please visit
http://cvs.ktug.or.kr/viewcvs/ko.TeX/luatexko/luatexplainko-mplib.tex
http://cvs.ktug.or.kr/viewcvs/ko.TeX/luatexko/luatexplainko-mplib.lua

Best,
-- 
Dohyun Kim
___________________________________________________________________________________
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
___________________________________________________________________________________


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

end of thread, other threads:[~2009-10-26 16:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-23 12:36 luatex-plain & metapost luigi scarso
2009-10-25 14:54 ` Hans Hagen
2009-10-25 15:54   ` luigi scarso
2009-10-25 16:30     ` Hans Hagen
2009-10-25 21:59       ` luigi scarso
2009-10-26  7:08         ` Taco Hoekwater
2009-10-26  8:41           ` luigi scarso
2009-10-26  8:47             ` Taco Hoekwater
2009-10-26  8:51               ` luigi scarso
2009-10-26  8:59                 ` Taco Hoekwater
2009-10-26  9:03                   ` luigi scarso
2009-10-26 16:42                     ` Dohyun Kim
2009-10-26  8:53             ` 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).