ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: Hans Hagen via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: paper dimensions for TEXpage
Date: Tue, 17 Aug 2021 16:01:31 +0200	[thread overview]
Message-ID: <392ab382-746e-69b1-35aa-213912e2def0@gmx.es> (raw)
In-Reply-To: <8abcc457-df31-328d-d4e9-3cd21bad3b9b@xs4all.nl>

On 8/17/21 9:30 AM, Hans Hagen via ntg-context wrote:
> On 8/17/2021 5:56 AM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> I don’t get the layer in the TEXpage.
>>
>> How could I get it with the TEXpage dimensions?
> only by first boxing (using framed or so) and then taking those dimensions

Many thanks for your reply, Hans.

I’m afraid I don’t know how to make the commands work:

  \setupexternalfigures[location=default]
  \definelayer[hi]
   [x=.5\dimexpr\framedwidth\relax, y=.5\dimexpr\framedheight\relax]
  \setupbackgrounds[page][background={foreground, hi}]
  \starttext
  \startTEXpage
  \framed[frame=off, offset=none]
  {\setlayer[hi]{\color[red]{hi}}
  \externalfigure[cow-brown]\framedheight}
  \stopTEXpage
  \stoptext

In this case, \getfiguredimensions would work, but I don’t know how to
deal with a pure text box.

BTW, is there a way to have TEXpages numbered? "pagestate=start" seems
not to work here.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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:[~2021-08-17 14:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-17  3:56 Pablo Rodriguez via ntg-context
2021-08-17  7:30 ` Hans Hagen via ntg-context
2021-08-17 14:01   ` Pablo Rodriguez via ntg-context [this message]
2021-08-18 14:25     ` Hans Hagen via ntg-context
2021-08-19 17:52       ` Pablo Rodriguez via ntg-context

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=392ab382-746e-69b1-35aa-213912e2def0@gmx.es \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).