ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mptopdf problem: he is broken and asking for fix
@ 2013-03-26 21:07 Martin Bruchanov
  2013-03-26 22:13 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Bruchanov @ 2013-03-26 21:07 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1.1: Type: text/plain, Size: 950 bytes --]

Hi,

I'm using:

MPtoPDF 1.4.1 : running 'mpost --mem=mpost  linejoin.mp'
This is MetaPost, version 1.800 (kpathsea version 6.1.1dev)

Attached sources give following error:

This is MetaPost, version 1.800 (kpathsea version 6.1.1dev)  26
MAR 2013 22:04
**linejoin.mp
(mpost.mp (/mnt/data/tex/texmf/metapost/base/plain.mp
Preloading the plain mem file, version 1.004) ) (./linejoin.mp
(./line_makro.mp) [1
! This can't happen (degenerate spec).
endfig->scantokens.extra_endfig;shipit;
                                       endgroup
l.24 endfig
           ;
I'm broken. Please show this to someone who can fix can fix

So I hope, there is someone who can fix :)

Best regards,

BruXy

-- 
Martin Bruchanov

Skype     :  bruxytronics
WWW       :  http://bruxy.regnet.cz/
GPG-Key   :  http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53)
Linked-In :  http://www.linkedin.com/in/bruxy
Google+   :  http://gplus.to/BruXy

[-- Attachment #1.1.2: linejoin.mp --]
[-- Type: text/plain, Size: 582 bytes --]

input line_makro.mp

def drawjoin(text cap)(text move)(expr xsour)(text desc) =
	x0 := xsour;
	linejoin := cap;
	label.top(desc, z0+(0, 1u));
	line(move)(tl, tlline); 
	line(move)(.4bp, black); 
	put_points(shifted (xsour, 0));
enddef;

% Rohy navazujicich car
beginfig(1); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
	path p;
	
	z0 = (0,0);
	z1 = (1u,1u);
	z2 = (2u,0);
	p := z0--z1--z2;

	drawjoin(rounded)()(0)("rounded");
	drawjoin(beveled)(shifted z0)(3u)("beveled");
	drawjoin(mitered)(shifted z0)(6u)("mitered");
endfig;
end;



[-- Attachment #1.1.3: line_makro.mp --]
[-- Type: text/plain, Size: 632 bytes --]

def line(text t)(expr size,col) =
	draw p t withpen pencircle scaled size withcolor col;
enddef;

def bod(text t) =
	draw p t withpen pencircle scaled .4bp;
enddef;

def put_points(text t) =
	for i = z0,z1,z2:
		if i = z0:
			drawdot i withpen bodik;
		else: 
			drawdot i t withpen bodik;
		fi;
  	endfor;
enddef;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

defaultfont := "cmtt10";
u := cm;

% uzka carka
nl := .4bp;
pen bodik;
bodik := pensquare scaled 2nl;

color tlline;
tlline := 0.7white;

tl := 3mm;
%drawdot (0,0) shifted (-1cm, 0) withpen bodik;



[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 4+ messages in thread

* Re: mptopdf problem: he is broken and asking for fix
  2013-03-26 21:07 mptopdf problem: he is broken and asking for fix Martin Bruchanov
@ 2013-03-26 22:13 ` Hans Hagen
  2013-03-27  8:17   ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2013-03-26 22:13 UTC (permalink / raw)
  To: bruxy, mailing list for ConTeXt users; +Cc: Martin Bruchanov, Taco Hoekwater

On 3/26/2013 10:07 PM, Martin Bruchanov wrote:
> Hi,
>
> I'm using:
>
> MPtoPDF 1.4.1 : running 'mpost --mem=mpost  linejoin.mp'
> This is MetaPost, version 1.800 (kpathsea version 6.1.1dev)
>
> Attached sources give following error:
>
> This is MetaPost, version 1.800 (kpathsea version 6.1.1dev)  26
> MAR 2013 22:04
> **linejoin.mp
> (mpost.mp (/mnt/data/tex/texmf/metapost/base/plain.mp
> Preloading the plain mem file, version 1.004) ) (./linejoin.mp
> (./line_makro.mp) [1
> ! This can't happen (degenerate spec).
> endfig->scantokens.extra_endfig;shipit;
>                                         endgroup
> l.24 endfig
>             ;
> I'm broken. Please show this to someone who can fix can fix
>
> So I hope, there is someone who can fix :)

Next time, try to make a small example (i lack the time to zoom in to 
the smallest problem).

Taco,

Can this be a bug in mplib?


\startMPpage

def drawdot =
     addto currentpicture contour makepath currentpen
enddef ;

linejoin := mitered;

drawdot withpen pensquare ;

\stopMPpage

It looks like mitered and pensquare pen building don't go along.

Hans

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

* Re: mptopdf problem: he is broken and asking for fix
  2013-03-26 22:13 ` Hans Hagen
@ 2013-03-27  8:17   ` Taco Hoekwater
  2013-03-27 11:18     ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2013-03-27  8:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen, Martin Bruchanov

On 03/26/2013 11:13 PM, Hans Hagen wrote:
> On 3/26/2013 10:07 PM, Martin Bruchanov wrote:
>> Hi,
>>
>> I'm using:
>>
>> MPtoPDF 1.4.1 : running 'mpost --mem=mpost  linejoin.mp'
>> This is MetaPost, version 1.800 (kpathsea version 6.1.1dev)
>>
>> Attached sources give following error:
>>
>> This is MetaPost, version 1.800 (kpathsea version 6.1.1dev)  26
>> MAR 2013 22:04
>> **linejoin.mp
>> (mpost.mp (/mnt/data/tex/texmf/metapost/base/plain.mp
>> Preloading the plain mem file, version 1.004) ) (./linejoin.mp
>> (./line_makro.mp) [1
>> ! This can't happen (degenerate spec).
>> endfig->scantokens.extra_endfig;shipit;
>>                                         endgroup
>> l.24 endfig
>>             ;
>> I'm broken. Please show this to someone who can fix can fix
>>
>> So I hope, there is someone who can fix :)
>
> Next time, try to make a small example (i lack the time to zoom in to
> the smallest problem).
>
> Taco,
>
> Can this be a bug in mplib?

Looks that way, yes. Investigating right now.

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

* Re: mptopdf problem: he is broken and asking for fix
  2013-03-27  8:17   ` Taco Hoekwater
@ 2013-03-27 11:18     ` Taco Hoekwater
  0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2013-03-27 11:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen, Martin Bruchanov

On 03/27/2013 09:17 AM, Taco Hoekwater wrote:
> On 03/26/2013 11:13 PM, Hans Hagen wrote:
>> On 3/26/2013 10:07 PM, Martin Bruchanov wrote:
>>> Hi,
>>>
>>> ! This can't happen (degenerate spec).
>>>
>>> So I hope, there is someone who can fix :)
>>
>>
>> Can this be a bug in mplib?
>
> Looks that way, yes. Investigating right now.

Found, should be fixed in the next release.

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

end of thread, other threads:[~2013-03-27 11:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26 21:07 mptopdf problem: he is broken and asking for fix Martin Bruchanov
2013-03-26 22:13 ` Hans Hagen
2013-03-27  8:17   ` Taco Hoekwater
2013-03-27 11:18     ` Taco Hoekwater

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