ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Aditya Mahajan <adityam@umich.edu>
Subject: Re: Incorrect offset when textframe is used inside TEXpage
Date: Mon, 25 Mar 2019 10:35:18 +0100	[thread overview]
Message-ID: <96305733-21cf-6ed6-5a4e-6a966dbb5be3@xs4all.nl> (raw)
In-Reply-To: <nycvar.YAK.7.76.44.1903241244320.28545@nqv-guvaxcnq>

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
___________________________________________________________________________________

      reply	other threads:[~2019-03-25  9:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-24 16:46 Aditya Mahajan
2019-03-25  9:35 ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=96305733-21cf-6ed6-5a4e-6a966dbb5be3@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).