ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* linear_shade and xetex
@ 2008-10-13 16:07 Aditya Mahajan
  2008-10-17 22:22 ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2008-10-13 16:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

linear shading in MP does not work with xetex. Consider

\setupcolors[state=start]

\starttext

\startMPcode
   path p ; p := unitsquare xyscaled (5cm,5cm) ;

   linear_shade(p,1,red, blue) ;
\stopMPcode

\stoptext

This runs fine with pdftex and luatex, but with xetex I get

! Undefined control sequence.
\@MPSK@@MPSK@30 ->\startMPshading
                                   {14}\setMPshadingcolors 
{4}{5}{6}{9}{10}{1...

\handleMPspecialcommand ... \MPspecial \endcsname
                                                   \fi \ifcase 
\inlineMPspeci...

\dohandleMPspecialcomment ...ndleMPspecialcommand
                                                   \donetrue 
\doresetMPstack ...
l.20 ...1 1 0 0 0 0 0 0 1 141.73225 141.73225 1 30


It is more than simply supp-mpe not being loaded. If I add
\input supp-mpe, then I get

[MP to PDF] (./test-mpgraph.1
! Undefined control sequence.
\MP special 30 ...6}{9}{10}{11}\immediate \pdfobj
                                                   {<</FunctionType 2 
/Domain...

\handleMPspecialcommand ... \MPspecial \endcsname
                                                   \fi \ifcase 
\inlineMPspeci...

\dohandleMPspecialcomment ...ndleMPspecialcommand
                                                   \donetrue 
\doresetMPstack ...
l.20 ...1 1 0 0 0 0 0 0 1 141.73225 141.73225 1 30

? x

Thanks,
Aditya
___________________________________________________________________________________
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] 4+ messages in thread

* Re: linear_shade and xetex
  2008-10-13 16:07 linear_shade and xetex Aditya Mahajan
@ 2008-10-17 22:22 ` Aditya Mahajan
  2008-10-20  7:58   ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2008-10-17 22:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 13 Oct 2008, Aditya Mahajan wrote:

> Hi,
>
> linear shading in MP does not work with xetex.

Since no one replied am I correct in assuming that this is currently not 
possible or  requires a lot of work?

Aditya

> Consider
>
> \setupcolors[state=start]
>
> \starttext
>
> \startMPcode
>   path p ; p := unitsquare xyscaled (5cm,5cm) ;
>
>   linear_shade(p,1,red, blue) ;
> \stopMPcode
>
> \stoptext
>
> This runs fine with pdftex and luatex, but with xetex I get
>
> ! Undefined control sequence.
> \@MPSK@@MPSK@30 ->\startMPshading
>                                   {14}\setMPshadingcolors
> {4}{5}{6}{9}{10}{1...
>
> \handleMPspecialcommand ... \MPspecial \endcsname
>                                                   \fi \ifcase
> \inlineMPspeci...
>
> \dohandleMPspecialcomment ...ndleMPspecialcommand
>                                                   \donetrue
> \doresetMPstack ...
> l.20 ...1 1 0 0 0 0 0 0 1 141.73225 141.73225 1 30
>
>
> It is more than simply supp-mpe not being loaded. If I add
> \input supp-mpe, then I get
>
> [MP to PDF] (./test-mpgraph.1
> ! Undefined control sequence.
> \MP special 30 ...6}{9}{10}{11}\immediate \pdfobj
>                                                   {<</FunctionType 2
> /Domain...
>
> \handleMPspecialcommand ... \MPspecial \endcsname
>                                                   \fi \ifcase
> \inlineMPspeci...
>
> \dohandleMPspecialcomment ...ndleMPspecialcommand
>                                                   \donetrue
> \doresetMPstack ...
> l.20 ...1 1 0 0 0 0 0 0 1 141.73225 141.73225 1 30
>
> ? x
>
> Thanks,
> Aditya
> ___________________________________________________________________________________
> 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] 4+ messages in thread

* Re: linear_shade and xetex
  2008-10-17 22:22 ` Aditya Mahajan
@ 2008-10-20  7:58   ` Taco Hoekwater
  2008-10-20  8:46     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2008-10-20  7:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Aditya Mahajan wrote:
> On Mon, 13 Oct 2008, Aditya Mahajan wrote:
> 
>> Hi,
>>
>> linear shading in MP does not work with xetex.
> 
> Since no one replied am I correct in assuming that this is currently not 
> possible or  requires a lot of work?

My guess is that there are communication problems with the pdf
backend (dvipdfmx). In XeTeX, that communication has to happen
via \specials. It could be impossible, or it could simply be
that Hans doesn't know what \special to output.

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


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

* Re: linear_shade and xetex
  2008-10-20  7:58   ` Taco Hoekwater
@ 2008-10-20  8:46     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2008-10-20  8:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Taco Hoekwater wrote:
> 
> Aditya Mahajan wrote:
>> On Mon, 13 Oct 2008, Aditya Mahajan wrote:
>>
>>> Hi,
>>>
>>> linear shading in MP does not work with xetex.
>> Since no one replied am I correct in assuming that this is currently not 
>> possible or  requires a lot of work?
> 
> My guess is that there are communication problems with the pdf
> backend (dvipdfmx). In XeTeX, that communication has to happen
> via \specials. It could be impossible, or it could simply be
> that Hans doesn't know what \special to output.

it's just that i didn't adapt some spec-dpx code when i went from 
supp-pdf+supp-mpe to meta-pdf


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

end of thread, other threads:[~2008-10-20  8:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-13 16:07 linear_shade and xetex Aditya Mahajan
2008-10-17 22:22 ` Aditya Mahajan
2008-10-20  7:58   ` Taco Hoekwater
2008-10-20  8:46     ` 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).