[NTG-context] Incorrect offset when textframe is used inside TEXpage

Hans Hagen j.hagen at xs4all.nl
Mon Mar 25 10:35:18 CET 2019


On 3/24/2019 5:46 PM, Aditya Mahajan wrote:
> Hi,
> 
> With the latest beta, the following example:
> 
> \definetextbackground
>    [test]
>    [
>      location=paragraph,
>    ]
> 
> \starttext
> \startTEXpage[offset=5cm]
>    \starttest
>    \input knuth
>    \stoptest
> \stopTEXpage
> \stoptext
> 
> gives the attached output.
> 
> Note that in the output the left and right offsets are zero. Any ideas 
> why this is happening and how to fix that.
such backgrounda are normally operating in a (vertical) text flow while 
a texpage is basically a framed

\definetextbackground
   [test]
   [topoffset=1cm,
    bottomoffset=1cm,
    leftoffset=1cm,
    rightoffset=3cm,
    location=paragraph]

\starttext
\startTEXpage[offset=overlay]
   \vskip-\strutdepth
   \starttest
     \input knuth
   \stoptest
\stopTEXpage
\stoptext



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list