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 {<
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 {<
\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 ___________________________________________________________________________________
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
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 -----------------------------------------------------------------
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Taco Hoekwater