ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TeX-MP interaction in mkii and mkiv
@ 2008-10-02  4:53 Aditya Mahajan
  2008-10-02 14:43 ` Aditya Mahajan
  2008-10-10 16:54 ` Aditya Mahajan
  0 siblings, 2 replies; 10+ messages in thread
From: Aditya Mahajan @ 2008-10-02  4:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 338 bytes --]

Hi,

I cannot understand why mkii and mkiv give different output in the 
attached example modified from Thomas's presentation module. The output 
of MKII is correct. In MKIV, the first picture (Left) is not correct, and 
I cannot understand why is this the case.

I am using the latest minimals and the latest svn luatex.

Thanks,
Aditya

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: TEXT/x-tex; name=test.tex, Size: 1577 bytes --]

\setupcolors[state=start]

\beginOLDTEX
\loadmapfile[qhv-ec.map]

\definefontsynonym  [BigNumberFont] [ec-qhvb] 
\endOLDTEX

\beginLUATEX
\definefontsynonym  [BigNumberFont] [name:texgyreherosbold]
\endLUATEX

\definefont         [NumberFont]    [BigNumberFont at 30pt]

\definetextext[taspresent:sometxt:left] {\TaspresentSometxtLeft}
\definetextext[taspresent:sometxt:right]{\TaspresentSometxtRight}

\unexpanded\def\TaspresentSometxtLeft#1%
  {\getvalue{taspresent:framed:small}
                       {\color[orange]
                       {\NumberFont #1}}}

\unexpanded\def\TaspresentSometxtRight#1%
  {\getvalue{taspresent:framed:small}
                       {\color[blue]
                       {\NumberFont #1}}}

\startuseMPgraphic{test}
StartPage ;
picture Left, Right ;

Left  := \sometxt[taspresent:sometxt:left] {\folio} ysized 6cm; 
Right := \sometxt[taspresent:sometxt:right]{\folio} ysized 6cm; 

clip Left  to boundingbox Left  xyscaled(0,3cm) ;

if PageNumber < 10:
	clip Right to boundingbox Right xyscaled(0,3cm) shifted (bbwidth(Right)/2,0) ;
	draw Left  shifted (14.26cm,-.5cm) ;
	draw Right shifted (14.26cm,-.5cm) ;
else :
	clip Right to boundingbox Right xyscaled(0,3cm) shifted (bbwidth(Right)/1.5,0) ;
	draw Left  shifted (12.59cm,-.5cm) ; 
	draw Right shifted (12.59cm,-.5cm) ;
fi;
StopPage ;
\stopuseMPgraphic

\defineoverlay[test][\useMPgraphic{test}]

\setupbackgrounds[page]
                 [background=test]

\starttext

\dorecurse{10}{
\chapter{test}
\input knuth}

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

end of thread, other threads:[~2008-10-13 13:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-02  4:53 TeX-MP interaction in mkii and mkiv Aditya Mahajan
2008-10-02 14:43 ` Aditya Mahajan
2008-10-02 15:03   ` Taco Hoekwater
2008-10-02 15:07     ` Taco Hoekwater
2008-10-02 15:37       ` Aditya Mahajan
2008-10-10 16:54 ` Aditya Mahajan
2008-10-10 17:05   ` Hans Hagen
2008-10-10 17:24     ` Aditya Mahajan
2008-10-13  8:29       ` Mojca Miklavec
2008-10-13 13:45         ` Aditya Mahajan

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