ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Incorrect offset when textframe is used inside TEXpage
@ 2019-03-24 16:46 Aditya Mahajan
  2019-03-25  9:35 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan @ 2019-03-24 16:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

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.

Thanks,
Aditya

[-- Attachment #2: Type: application/pdf, Size: 10208 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Incorrect offset when textframe is used inside TEXpage
  2019-03-24 16:46 Incorrect offset when textframe is used inside TEXpage Aditya Mahajan
@ 2019-03-25  9:35 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2019-03-25  9:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Aditya Mahajan

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
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2019-03-25  9:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-24 16:46 Incorrect offset when textframe is used inside TEXpage Aditya Mahajan
2019-03-25  9:35 ` 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).