ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Metafun Label and externalfigure Problem
@ 2011-03-01 10:17 Lutz Haseloff
  2011-03-01 10:34 ` luigi scarso
  2011-03-01 20:39 ` Hans Hagen
  0 siblings, 2 replies; 11+ messages in thread
From: Lutz Haseloff @ 2011-03-01 10:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

with latest ConTeXt MKIV
Metapost Labels doesn't work for me anymore.
My Code:

\starttext
\startMPcode
label(textext("Test"),origin);
\stopMPcode
\stoptext

The Output only shows the word "mpout" as the Label.

There seems to be a Problem with externalfigure too.

With:

\starttext
\startMPcode
externalfigure "blblogogr.pdf" xscaled 35mm yscaled 19mm shifted (13mm,15mm);
\stopMPcode
\stoptext

I get the error message:

metapost        > loading 'metafun.mp' (experimental metapost version two)
! Emergency stop.
<inserted text> ...re.mp ; fi ; ;;;;]===], false)}

\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
                                                  \egroup \placeMPgraphic \d...
l.5 \stopMPcode

!  ==> Fatal error occurred, no output PDF file produced!
mtx-context     | fatal error: return code: 1>Exit code: 1

With:

\starttext
\startMPcode
externalfigure "blblogogr.pdf";
\stopMPcode
\stoptext

There is no errormessage and no picture in the output.


I hope, these are not all my ignorant faults, like always :-)


Greetings Lutz
___________________________________________________________________________________
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] 11+ messages in thread

* Re: Metafun Label and externalfigure Problem
  2011-03-01 10:17 Metafun Label and externalfigure Problem Lutz Haseloff
@ 2011-03-01 10:34 ` luigi scarso
  2011-03-01 11:23   ` Lutz Haseloff
  2011-03-01 20:39 ` Hans Hagen
  1 sibling, 1 reply; 11+ messages in thread
From: luigi scarso @ 2011-03-01 10:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Mar 1, 2011 at 11:17 AM, Lutz Haseloff
<lutz.haseloff@googlemail.com> wrote:
> Hi all,
>
> with latest ConTeXt MKIV
> Metapost Labels doesn't work for me anymore.
> My Code:
>
> \starttext
> \startMPcode
> label(textext("Test"),origin);
> \stopMPcode
> \stoptext
>
> The Output only shows the word "mpout" as the Label.
not here with current version: 2011.02.25 22:03
%%test
\starttext
\startTEXpage
\startMPcode
draw origin-(20,0) .. origin+(0,20) .. origin+(20,0) .. origin+(0,-20) .. cycle;
label(textext("Test"),origin);
\stopMPcode
\stopTEXpage
\stoptext


>
> There seems to be a Problem with externalfigure too.
>
> With:
>
> \starttext
> \startMPcode
> externalfigure "blblogogr.pdf" xscaled 35mm yscaled 19mm shifted (13mm,15mm);
> \stopMPcode
> \stoptext
>
> I get the error message:
>
> metapost        > loading 'metafun.mp' (experimental metapost version two)
> ! Emergency stop.
> <inserted text> ...re.mp ; fi ; ;;;;]===], false)}
>
> \processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
>                                                  \egroup \placeMPgraphic \d...
> l.5 \stopMPcode
>
> !  ==> Fatal error occurred, no output PDF file produced!
> mtx-context     | fatal error: return code: 1>Exit code: 1
>
> With:
>
> \starttext
> \startMPcode
> externalfigure "blblogogr.pdf";
> \stopMPcode
> \stoptext
>
> There is no errormessage and no picture in the output.
not here, but I must admit that xscaled and yscaled are a bit strange.

-- 
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] 11+ messages in thread

* Re: Metafun Label and externalfigure Problem
  2011-03-01 10:34 ` luigi scarso
@ 2011-03-01 11:23   ` Lutz Haseloff
  2011-03-01 11:34     ` luigi scarso
  0 siblings, 1 reply; 11+ messages in thread
From: Lutz Haseloff @ 2011-03-01 11:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

> not here with current version: 2011.02.25 22:03
> %%test
> \starttext
> \startTEXpage
> \startMPcode
> draw origin-(20,0) .. origin+(0,20) .. origin+(20,0) .. origin+(0,-20) .. cycle;
> label(textext("Test"),origin);
> \stopMPcode
> \stopTEXpage
> \stoptext
>

The problem occures with luatex rev 4088, no problem with 4050 or 4060

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 5184 bytes --]

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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] 11+ messages in thread

* Re: Metafun Label and externalfigure Problem
  2011-03-01 11:23   ` Lutz Haseloff
@ 2011-03-01 11:34     ` luigi scarso
  0 siblings, 0 replies; 11+ messages in thread
From: luigi scarso @ 2011-03-01 11:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Mar 1, 2011 at 12:23 PM, Lutz Haseloff
<lutz.haseloff@googlemail.com> wrote:
>> not here with current version: 2011.02.25 22:03
>> %%test
>> \starttext
>> \startTEXpage
>> \startMPcode
>> draw origin-(20,0) .. origin+(0,20) .. origin+(20,0) .. origin+(0,-20) .. cycle;
>> label(textext("Test"),origin);
>> \stopMPcode
>> \stopTEXpage
>> \stoptext
>>
ah 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] 11+ messages in thread

* Re: Metafun Label and externalfigure Problem
  2011-03-01 10:17 Metafun Label and externalfigure Problem Lutz Haseloff
  2011-03-01 10:34 ` luigi scarso
@ 2011-03-01 20:39 ` Hans Hagen
  2011-03-02  7:05   ` Lutz Haseloff
  1 sibling, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2011-03-01 20:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1-3-2011 11:17, Lutz Haseloff wrote:
> Hi all,
>
> with latest ConTeXt MKIV
> Metapost Labels doesn't work for me anymore.
> My Code:
>
> \starttext
> \startMPcode
> label(textext("Test"),origin);
> \stopMPcode
> \stoptext
>
> The Output only shows the word "mpout" as the Label.

works ok here

> There seems to be a Problem with externalfigure too.
>
> With:
>
> \starttext
> \startMPcode
> externalfigure "blblogogr.pdf" xscaled 35mm yscaled 19mm shifted (13mm,15mm);
> \stopMPcode
> \stoptext
>
> I get the error message:
>
> metapost>  loading 'metafun.mp' (experimental metapost version two)

beware: 35cm is a scale factor so the natural size gets scaled by 35 * 
cm (a constant)

use xsized and ysized instead (or just one to stay in proportion)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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] 11+ messages in thread

* Re: Metafun Label and externalfigure Problem
  2011-03-01 20:39 ` Hans Hagen
@ 2011-03-02  7:05   ` Lutz Haseloff
  2011-03-02 11:16     ` Taco Hoekwater
  0 siblings, 1 reply; 11+ messages in thread
From: Lutz Haseloff @ 2011-03-02  7:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I just tested luatex rev 4090:
--------------
\starttext
\startMPpage
externalfigure "blblogo.pdf" scaled .4 ;
%label(textext("Test"),origin);
\stopMPpage
\stoptext
--------------
gives no error message and an empty pdf 1mmx5mm
--------------
\starttext
\startMPpage
%externalfigure "blblogo.pdf" scaled .4 ;
label(textext("Test"),origin);
\stopMPpage
\stoptext
--------------
results in "mpout"
--------------
\starttext
\startMPpage
externalfigure "blblogo.pdf" scaled .4 ;
label(textext("Test"),origin);
\stopMPpage
\stoptext
--------------
gives:

metapost        > initializing instance 'metafun' using format 'metafun'
metapost        > loading 'metafun.mp' (experimental metapost version two)
! String contains an invalid utf-8 sequence.
l.6
   񞞋_number=2
<inserted text> ...re.mp ; fi ; ;;;;]===], false)}

\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
                                                 \egroup \placeMPgraphic \d...
\dostartMPpage ...??mg ][#1]\processMPgraphic {#2}
                                                 \dostopfittingpage
l.5 \stopMPpage

?


All three files compile as expected with luatex rev 4086


Greetings Lutz


2011/3/1 Hans Hagen <pragma@wxs.nl>:
> On 1-3-2011 11:17, Lutz Haseloff wrote:
>>
>> Hi all,
>>
>> with latest ConTeXt MKIV
>> Metapost Labels doesn't work for me anymore.
>> My Code:
>>
>> \starttext
>> \startMPcode
>> label(textext("Test"),origin);
>> \stopMPcode
>> \stoptext
>>
>> The Output only shows the word "mpout" as the Label.
>
> works ok here
>
>> There seems to be a Problem with externalfigure too.
>>
>> With:
>>
>> \starttext
>> \startMPcode
>> externalfigure "blblogogr.pdf" xscaled 35mm yscaled 19mm shifted
>> (13mm,15mm);
>> \stopMPcode
>> \stoptext
>>
>> I get the error message:
>>
>> metapost>  loading 'metafun.mp' (experimental metapost version two)
>
> beware: 35cm is a scale factor so the natural size gets scaled by 35 * cm (a
> constant)
>
> use xsized and ysized instead (or just one to stay in proportion)
>
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 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] 11+ messages in thread

* Re: Metafun Label and externalfigure Problem
  2011-03-02  7:05   ` Lutz Haseloff
@ 2011-03-02 11:16     ` Taco Hoekwater
  2011-03-03  7:23       ` Lutz Haseloff
  0 siblings, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 2011-03-02 11:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Hi,

Not having blblogo.pdf, I used cow.pdf for the tests below.
I use luatex 0.66.0 (rev 4090) hand-built on linux32, and
Context 2011.02.25 22:03 MKIV (received privately from Hans)

With that configuration, all three tests function exactly
as they should, so it is almost certainly not luatex that
is causing trouble. It could be a bug in one of the previous
beta's, or a local/minimals misconfiguration.

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] 11+ messages in thread

* Re: Metafun Label and externalfigure Problem
  2011-03-02 11:16     ` Taco Hoekwater
@ 2011-03-03  7:23       ` Lutz Haseloff
  2011-03-08  7:14         ` Lutz Haseloff
  2011-03-09  5:38         ` Lutz Haseloff
  0 siblings, 2 replies; 11+ messages in thread
From: Lutz Haseloff @ 2011-03-03  7:23 UTC (permalink / raw)
  To: Taco Hoekwater, mailing list for ConTeXt users

2011/3/2 Taco Hoekwater <taco@elvenkind.com>:
>
> Hi,
>
> Not having blblogo.pdf, I used cow.pdf for the tests below.
> I use luatex 0.66.0 (rev 4090) hand-built on linux32, and
> Context 2011.02.25 22:03 MKIV (received privately from Hans)
>
> With that configuration, all three tests function exactly
> as they should, so it is almost certainly not luatex that
> is causing trouble. It could be a bug in one of the previous
> beta's, or a local/minimals misconfiguration.

The same errors occure with cow.pdf.
I update my minimals by deleting the content of texmf-context
and unpacking cont-tmf.zip from pragma.

If I change only the luatex.dll to prior of 4088 all works fine.

Perhaps a bug in Akira Kakutos binary?

I use context minimals on Windows 7 64bit.

> 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] 11+ messages in thread

* Re: Metafun Label and externalfigure Problem
  2011-03-03  7:23       ` Lutz Haseloff
@ 2011-03-08  7:14         ` Lutz Haseloff
  2011-03-09  5:38         ` Lutz Haseloff
  1 sibling, 0 replies; 11+ messages in thread
From: Lutz Haseloff @ 2011-03-08  7:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Akiras luatex rev 4090 updated on 20110303 work again as expected.

Greetings Lutz

2011/3/3 Lutz Haseloff <lutz.haseloff@googlemail.com>:
> 2011/3/2 Taco Hoekwater <taco@elvenkind.com>:
>>
>> Hi,
>>
>> Not having blblogo.pdf, I used cow.pdf for the tests below.
>> I use luatex 0.66.0 (rev 4090) hand-built on linux32, and
>> Context 2011.02.25 22:03 MKIV (received privately from Hans)
>>
>> With that configuration, all three tests function exactly
>> as they should, so it is almost certainly not luatex that
>> is causing trouble. It could be a bug in one of the previous
>> beta's, or a local/minimals misconfiguration.
>
> The same errors occure with cow.pdf.
> I update my minimals by deleting the content of texmf-context
> and unpacking cont-tmf.zip from pragma.
>
> If I change only the luatex.dll to prior of 4088 all works fine.
>
> Perhaps a bug in Akira Kakutos binary?
>
> I use context minimals on Windows 7 64bit.
>
>> 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] 11+ messages in thread

* Re: Metafun Label and externalfigure Problem
  2011-03-03  7:23       ` Lutz Haseloff
  2011-03-08  7:14         ` Lutz Haseloff
@ 2011-03-09  5:38         ` Lutz Haseloff
  1 sibling, 0 replies; 11+ messages in thread
From: Lutz Haseloff @ 2011-03-09  5:38 UTC (permalink / raw)
  To: Taco Hoekwater, mailing list for ConTeXt users

Akiras luatex.dll rev 4090 updated on 20110303 works again as expected.

2011/3/3 Lutz Haseloff <lutz.haseloff@googlemail.com>:
> 2011/3/2 Taco Hoekwater <taco@elvenkind.com>:
>>
>> Hi,
>>
>> Not having blblogo.pdf, I used cow.pdf for the tests below.
>> I use luatex 0.66.0 (rev 4090) hand-built on linux32, and
>> Context 2011.02.25 22:03 MKIV (received privately from Hans)
>>
>> With that configuration, all three tests function exactly
>> as they should, so it is almost certainly not luatex that
>> is causing trouble. It could be a bug in one of the previous
>> beta's, or a local/minimals misconfiguration.
>
> The same errors occure with cow.pdf.
> I update my minimals by deleting the content of texmf-context
> and unpacking cont-tmf.zip from pragma.
>
> If I change only the luatex.dll to prior of 4088 all works fine.
>
> Perhaps a bug in Akira Kakutos binary?
>
> I use context minimals on Windows 7 64bit.
>
>> 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] 11+ messages in thread

* Re: Metafun Label and externalfigure Problem
@ 2011-03-02  9:08 Jeong Dalyoung
  0 siblings, 0 replies; 11+ messages in thread
From: Jeong Dalyoung @ 2011-03-02  9:08 UTC (permalink / raw)
  To: ntg-context

Dear Lutz,

 After  replacing "blblogo.pdf" with a figure file in my system and tested it. Otherwise, it shows a gray rectangle.
I got no error and the output is fine.( "Test" and the figure are well shown)

I don't know "rev 4090" but here is the version of ConTeXt  minimal in my system.

...
This is LuaTeX, Version beta-0.65.0-2010121316 
 \write18 enabled.
(testmp.tex

ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.3.1  int: english/english
...
Since I don't know deep inside ConTeXt, I can't tell you a solution. Sorry.
Setup in your system may be  different from mine.

Cheers.

Dalyoung
___________________________________________________________________________________
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] 11+ messages in thread

end of thread, other threads:[~2011-03-09  5:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-01 10:17 Metafun Label and externalfigure Problem Lutz Haseloff
2011-03-01 10:34 ` luigi scarso
2011-03-01 11:23   ` Lutz Haseloff
2011-03-01 11:34     ` luigi scarso
2011-03-01 20:39 ` Hans Hagen
2011-03-02  7:05   ` Lutz Haseloff
2011-03-02 11:16     ` Taco Hoekwater
2011-03-03  7:23       ` Lutz Haseloff
2011-03-08  7:14         ` Lutz Haseloff
2011-03-09  5:38         ` Lutz Haseloff
2011-03-02  9:08 Jeong Dalyoung

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