ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* metapost-pdf problem
@ 2009-08-31  5:37 Jean Magnan de Bornier
  2009-09-01  9:41 ` Peter Rolf
  2009-09-09 12:01 ` Hans Hagen
  0 siblings, 2 replies; 9+ messages in thread
From: Jean Magnan de Bornier @ 2009-08-31  5:37 UTC (permalink / raw)
  To: ntg-context

Hi all,

I have had trouble with metapost lately; mptopdf seems broken. Here are
two small test files:

rent.mp:
........................
input metafun;
numeric u; u=15mm;


beginfig(1);
  drawarrow (0,0)..(8u,0);
draw (3u,-.2u)..(3u,.5u);
label.bot(btex 0 etex, (3.2u,0));
  endfig;

end

.......................

rent.tex:

.......................
\starttext
 
\externalfigure[/home/jean/graph/rent.1]

\stoptext
.......................

I run metapost on the first file and (nearly) everything seems all right;
rent.1 is created and I can visualize it.

ThenI run in order mkiv, mkii, texexec --dvi, and mptopdf:

** mkiv output:
ERROR: Leaders not followed by proper glue.

--- TeX said ---
<to be read again> 
                   \normalhskip 
\forcecolorhack ->\leaders \hrule \normalhskip 
                                               \zeropoint 
\dohandleobject ...hss }\fi \fi }}\forcecolorhack 
                                                  \box \scratchbox \endgroup 
l.3 ...ox{\getobject{FIG}{/home/jean/graph/rent.1}
                                                  }
--- HELP ---
No help available



** mkii output:

name: dummy
file: rent
state: unknown

** texexec --dvi output:

OK


** 07:23 jean@boldair /home/jean/graph % mptopdf rent      

MPtoPDF 1.3.3 : no filename matches rent


My context system from minimals is updated from tomorrow night (mptopdf
was slightly different but failed anyway before thet update)


Sorry if the question was already discussed here!

--
jean 







































-- 
Jean
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: metapost-pdf problem
  2009-08-31  5:37 metapost-pdf problem Jean Magnan de Bornier
@ 2009-09-01  9:41 ` Peter Rolf
  2009-09-01 15:23   ` Jean Magnan de Bornier
  2009-09-09 12:01 ` Hans Hagen
  1 sibling, 1 reply; 9+ messages in thread
From: Peter Rolf @ 2009-09-01  9:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

same trouble here. The problem is the current definition of

\forcecolorhack (colo-ini.mkiv).

But we are lucky, as Hans has kept the old version as comment. For the 
moment just add a comment sign in front of the new definition and 
deactivate the old version. Nothing I can fix (no clue what this does 
and no time at all).

Best wishes,  Peter


Jean Magnan de Bornier schrieb:
> Hi all,
>
> I have had trouble with metapost lately; mptopdf seems broken. Here are
> two small test files:
>
> rent.mp:
> ........................
> input metafun;
> numeric u; u=15mm;
>
>
> beginfig(1);
>   drawarrow (0,0)..(8u,0);
> draw (3u,-.2u)..(3u,.5u);
> label.bot(btex 0 etex, (3.2u,0));
>   endfig;
>
> end
>
> .......................
>
> rent.tex:
>
> .......................
> \starttext
>  
> \externalfigure[/home/jean/graph/rent.1]
>
> \stoptext
> .......................
>
> I run metapost on the first file and (nearly) everything seems all right;
> rent.1 is created and I can visualize it.
>
> ThenI run in order mkiv, mkii, texexec --dvi, and mptopdf:
>
> ** mkiv output:
> ERROR: Leaders not followed by proper glue.
>
> --- TeX said ---
> <to be read again> 
>                    \normalhskip 
> \forcecolorhack ->\leaders \hrule \normalhskip 
>                                                \zeropoint 
> \dohandleobject ...hss }\fi \fi }}\forcecolorhack 
>                                                   \box \scratchbox \endgroup 
> l.3 ...ox{\getobject{FIG}{/home/jean/graph/rent.1}
>                                                   }
> --- HELP ---
> No help available
>
>
>
> ** mkii output:
>
> name: dummy
> file: rent
> state: unknown
>
> ** texexec --dvi output:
>
> OK
>
>
> ** 07:23 jean@boldair /home/jean/graph % mptopdf rent      
>
> MPtoPDF 1.3.3 : no filename matches rent
>
>
> My context system from minimals is updated from tomorrow night (mptopdf
> was slightly different but failed anyway before thet update)
>
>
> Sorry if the question was already discussed here!
>
> --
> jean 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>   

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: metapost-pdf problem
  2009-09-01  9:41 ` Peter Rolf
@ 2009-09-01 15:23   ` Jean Magnan de Bornier
  2009-09-01 15:33     ` Peter Rolf
  0 siblings, 1 reply; 9+ messages in thread
From: Jean Magnan de Bornier @ 2009-09-01 15:23 UTC (permalink / raw)
  To: ntg-context

Le 01 septembre à 11:41:56 Peter Rolf <indiego@gmx.net> écrit notamment:

| same trouble here. The problem is the current definition of
>
| \forcecolorhack (colo-ini.mkiv).
>
| But we are lucky, as Hans has kept the old version as comment. For the
| moment just add a comment sign in front of the new definition and
| deactivate the old version. Nothing I can fix (no clue what this does
| and no time at all).
>
Thanks Peter,

If I do so, mkiv still fails on my file, but goes a little further:

..................................
! Leaders not followed by proper glue.
<to be read again> 
                   \normalhskip 
\forcecolorhack ->\leaders \hrule \normalhskip 
                                               \zeropoint 
\dohandleobject ...hss }\fi \fi }}\forcecolorhack 
                                                  \box \scratchbox \endgroup 
l.3 ...ox{\getobject{FIG}{/home/jean/graph/rent.1}
                                                  }
\calculateexternalfigure ...xlua {figures.check()}
                                                  \ctxlua {figures.include()...
\dodoplaceexternalfigure ...[][#1][#2][#3][#4][#5]
                                                  \popmacro \textunderscore ...
...
l.4 
    
? 
.................................

Anyway the problem occurs also with mkii and pstopdf...
-- 
Jean
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: metapost-pdf problem
  2009-09-01 15:23   ` Jean Magnan de Bornier
@ 2009-09-01 15:33     ` Peter Rolf
  2009-09-01 16:12       ` Jean Magnan de Bornier
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Rolf @ 2009-09-01 15:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1596 bytes --]

Jean Magnan de Bornier schrieb:
> Le 01 septembre à 11:41:56 Peter Rolf <indiego@gmx.net> écrit notamment:
>
> | same trouble here. The problem is the current definition of
>   
> | \forcecolorhack (colo-ini.mkiv).
>   
> | But we are lucky, as Hans has kept the old version as comment. For the
> | moment just add a comment sign in front of the new definition and
> | deactivate the old version. Nothing I can fix (no clue what this does
> | and no time at all).
>   
> Thanks Peter,
>
> If I do so, mkiv still fails on my file, but goes a little further:
>
>   
Have you remade the formats? Sorry, I have forgotten to add this to the 
prior post.

context --make

> ..................................
> ! Leaders not followed by proper glue.
> <to be read again> 
>                    \normalhskip 
> \forcecolorhack ->\leaders \hrule \normalhskip 
>                                                \zeropoint 
> \dohandleobject ...hss }\fi \fi }}\forcecolorhack 
>                                                   \box \scratchbox \endgroup 
> l.3 ...ox{\getobject{FIG}{/home/jean/graph/rent.1}
>                                                   }
> \calculateexternalfigure ...xlua {figures.check()}
>                                                   \ctxlua {figures.include()...
> \dodoplaceexternalfigure ...[][#1][#2][#3][#4][#5]
>                                                   \popmacro \textunderscore ...
> ...
> l.4 
>     
> ? 
> .................................
>
> Anyway the problem occurs also with mkii and pstopdf...
>   


[-- Attachment #1.2: Type: text/html, Size: 2144 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: metapost-pdf problem
  2009-09-01 15:33     ` Peter Rolf
@ 2009-09-01 16:12       ` Jean Magnan de Bornier
  2009-09-01 17:32         ` Jean Magnan de Bornier
  0 siblings, 1 reply; 9+ messages in thread
From: Jean Magnan de Bornier @ 2009-09-01 16:12 UTC (permalink / raw)
  To: ntg-context

Le 01 septembre à 17:33:46 Peter Rolf <indiego@gmx.net> écrit notamment:

| Have you remade the formats? Sorry, I have forgotten to add this to
| the prior post.
>
| context --make

Sorry me! I should obviously have done that.
Yes it works now with mkiv, but I don't see how to do the same thing in
mkii...

Anyway thanks Peter,
-- 
Jean
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: metapost-pdf problem
  2009-09-01 16:12       ` Jean Magnan de Bornier
@ 2009-09-01 17:32         ` Jean Magnan de Bornier
  2009-09-01 18:22           ` Peter Rolf
  0 siblings, 1 reply; 9+ messages in thread
From: Jean Magnan de Bornier @ 2009-09-01 17:32 UTC (permalink / raw)
  To: ntg-context

Le 01 septembre à 18:12:29 Jean Magnan de Bornier <jm.bornier@free.fr> écrit notamment:

| Sorry me! I should obviously have done that.
| Yes it works now with mkiv, but I don't see how to do the same thing in
| mkii...

Well, texexec does the job all right, but texexec --xtx doesn't find the
images. The only thing I see in the log of xetex is:

figures         : dimensions of contr.1 loaded from figurefile itself
floatblocks     : no block given
floatblocks     : 1 placed

(three such for each figure)

-- 
Jean
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: metapost-pdf problem
  2009-09-01 17:32         ` Jean Magnan de Bornier
@ 2009-09-01 18:22           ` Peter Rolf
  2009-09-01 19:13             ` Jean Magnan de Bornier
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Rolf @ 2009-09-01 18:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Jean Magnan de Bornier schrieb:
> Le 01 septembre à 18:12:29 Jean Magnan de Bornier <jm.bornier@free.fr> écrit notamment:
>
> | Sorry me! I should obviously have done that.
> | Yes it works now with mkiv, but I don't see how to do the same thing in
> | mkii...
>
> Well, texexec does the job all right, but texexec --xtx doesn't find the
> images. The only thing I see in the log of xetex is:
>
> figures         : dimensions of contr.1 loaded from figurefile itself
> floatblocks     : no block given
> floatblocks     : 1 placed
>
> (three such for each figure)
>
>   
I never used xetex, but there is a good chance that this is also a 
format update problem

see

http://wiki.contextgarden.net/ConTeXt_Minimals#Remaking_formats

for the details.


Best wishes,  Peter
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: metapost-pdf problem
  2009-09-01 18:22           ` Peter Rolf
@ 2009-09-01 19:13             ` Jean Magnan de Bornier
  0 siblings, 0 replies; 9+ messages in thread
From: Jean Magnan de Bornier @ 2009-09-01 19:13 UTC (permalink / raw)
  To: ntg-context

Le 01 septembre à 20:22:21 Peter Rolf <indiego@gmx.net> écrit notamment:

| I never used xetex, but there is a good chance that this is also a
| format update problem

Well, no; I remade all formats and still xetex doesn't put the image in
place; by the way, mkiv does it only with full path. \setupexternalfigures
doesn't work right now (it used to some time ago)

This is LuaTeX, Version beta-0.43.0-2009081914

bye,
-- 
Jean
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: metapost-pdf problem
  2009-08-31  5:37 metapost-pdf problem Jean Magnan de Bornier
  2009-09-01  9:41 ` Peter Rolf
@ 2009-09-09 12:01 ` Hans Hagen
  1 sibling, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2009-09-09 12:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Jean Magnan de Bornier wrote:

> ** mkiv output:
> ERROR: Leaders not followed by proper glue.

probably fixed in latest beta

-----------------------------------------------------------------
                                           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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2009-09-09 12:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-31  5:37 metapost-pdf problem Jean Magnan de Bornier
2009-09-01  9:41 ` Peter Rolf
2009-09-01 15:23   ` Jean Magnan de Bornier
2009-09-01 15:33     ` Peter Rolf
2009-09-01 16:12       ` Jean Magnan de Bornier
2009-09-01 17:32         ` Jean Magnan de Bornier
2009-09-01 18:22           ` Peter Rolf
2009-09-01 19:13             ` Jean Magnan de Bornier
2009-09-09 12:01 ` 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).