* problem with mp clip
@ 2007-07-22 15:22 Peter Rolf
2007-07-22 20:19 ` Patrick Gundlach
2007-07-22 20:25 ` Hans Hagen
0 siblings, 2 replies; 5+ messages in thread
From: Peter Rolf @ 2007-07-22 15:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
Hi,
it seems, that clipping with a MetaPost path is broken (at least on my
machine). I couldn't test it on Contextgarden, as the standard example
pictures are not installed (or the !!path is not searched).
Anyhow, if someone can test this please.
I work with the latest minimal distribution (XP), ConTeXt beta from
03.07.2007, pdftex 1.40.4 and mpost 1.0.
Thanks in advance, Peter
@Patrick:
Is there a way to add the test pictures (cont-img.zip) to 'live context'?
[-- Attachment #2: mpclip.tex --]
[-- Type: text/plain, Size: 232 bytes --]
\setupcolors[state=start]
\setuppagenumber[state=stop]
\startMPclip{ClipTest}
clip currentpicture to
unitcircle scaled 3cm;
\stopMPclip
\starttext
\clip[width=3cm,height=3cm,mp=ClipTest]{\externalfigure[mill.png]}
\stoptext
[-- Attachment #3: 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] 5+ messages in thread
* Re: problem with mp clip
2007-07-22 15:22 problem with mp clip Peter Rolf
@ 2007-07-22 20:19 ` Patrick Gundlach
2007-07-23 9:29 ` Peter Rolf
2007-07-22 20:25 ` Hans Hagen
1 sibling, 1 reply; 5+ messages in thread
From: Patrick Gundlach @ 2007-07-22 20:19 UTC (permalink / raw)
To: ntg-context
> Is there a way to add the test pictures (cont-img.zip) to 'live context'?
They are already installed, but not in a local path. I have changed
'live context' so now the sample figures are in the search path.
Patrick
___________________________________________________________________________________
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] 5+ messages in thread
* Re: problem with mp clip
2007-07-22 15:22 problem with mp clip Peter Rolf
2007-07-22 20:19 ` Patrick Gundlach
@ 2007-07-22 20:25 ` Hans Hagen
2007-07-23 9:30 ` Peter Rolf
1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2007-07-22 20:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
Peter Rolf wrote:
> Hi,
>
> it seems, that clipping with a MetaPost path is broken (at least on my
> machine). I couldn't test it on Contextgarden, as the standard example
> pictures are not installed (or the !!path is not searched).
>
> Anyhow, if someone can test this please.
>
has to do with the changed mp output ... in supp-mps.tex change this ...
\bgroup
\catcode`\%=\@@active
\catcode`\/=\@@comment
\gdef\dograbMPclippath/
{\setbox\scratchbox=\hbox\bgroup/
\catcode`\%=\@@active
\obeylines\let\obeyedline\space
\def\do##1q n##2p W##3\od/
{\xdef\MPclippath{##2}\endinput}/
\def%##1%%EOF/
{\do##1q np W\od\endinput}/
\readfile{\MPgraphicfile.\the\currentMPgraphic}{}{}/
\ifx\MPclippath\empty
\def\do##1newpath##2closepath##3\od/
{\xdef\MPclippath{##2}\endinput}/
\def%##1%%EOF/
{\do##1newpathclosepath\od\endinput}/
\readfile{\MPgraphicfile.\the\currentMPgraphic}{}{}/
\fi
\deallocateMPslot\currentMPgraphic / new
\egroup}
\egroup
keep in mind that it's still a dirty trick
> I work with the latest minimal distribution (XP), ConTeXt beta from
> 03.07.2007, pdftex 1.40.4 and mpost 1.0.
>
> Thanks in advance, Peter
>
>
> @Patrick:
> Is there a way to add the test pictures (cont-img.zip) to 'live context'?
>
>
>
> ------------------------------------------------------------------------
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
--
-----------------------------------------------------------------
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] 5+ messages in thread
* Re: problem with mp clip
2007-07-22 20:25 ` Hans Hagen
@ 2007-07-23 9:30 ` Peter Rolf
0 siblings, 0 replies; 5+ messages in thread
From: Peter Rolf @ 2007-07-23 9:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hans Hagen schrieb:
> Peter Rolf wrote:
>> Hi,
>>
>> it seems, that clipping with a MetaPost path is broken (at least on my
>> machine). I couldn't test it on Contextgarden, as the standard example
>> pictures are not installed (or the !!path is not searched).
>>
>> Anyhow, if someone can test this please.
>>
>
>
> has to do with the changed mp output ... in supp-mps.tex change this ...
>
> \bgroup
> \catcode`\%=\@@active
> \catcode`\/=\@@comment
> \gdef\dograbMPclippath/
> {\setbox\scratchbox=\hbox\bgroup/
> \catcode`\%=\@@active
> \obeylines\let\obeyedline\space
> \def\do##1q n##2p W##3\od/
> {\xdef\MPclippath{##2}\endinput}/
> \def%##1%%EOF/
> {\do##1q np W\od\endinput}/
> \readfile{\MPgraphicfile.\the\currentMPgraphic}{}{}/
> \ifx\MPclippath\empty
> \def\do##1newpath##2closepath##3\od/
> {\xdef\MPclippath{##2}\endinput}/
> \def%##1%%EOF/
> {\do##1newpathclosepath\od\endinput}/
> \readfile{\MPgraphicfile.\the\currentMPgraphic}{}{}/
> \fi
> \deallocateMPslot\currentMPgraphic / new
> \egroup}
> \egroup
>
> keep in mind that it's still a dirty trick
>
Many thanks Hans. Works like a charm (dirty trick, but clean cut).
Peter
>
>> I work with the latest minimal distribution (XP), ConTeXt beta from
>> 03.07.2007, pdftex 1.40.4 and mpost 1.0.
>>
>> Thanks in advance, Peter
>>
>>
>> @Patrick:
>> Is there a way to add the test pictures (cont-img.zip) to 'live context'?
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________
>
>
___________________________________________________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2007-07-23 9:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-22 15:22 problem with mp clip Peter Rolf
2007-07-22 20:19 ` Patrick Gundlach
2007-07-23 9:29 ` Peter Rolf
2007-07-22 20:25 ` Hans Hagen
2007-07-23 9:30 ` Peter Rolf
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).