ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: Leah Neukirchen <leah@vuxu.org>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
	ntg-context@ntg.nl
Subject: Re: startTEXpage on A4
Date: Sun, 9 Oct 2022 16:02:14 +0200	[thread overview]
Message-ID: <b41145ab-e8c2-8f38-b141-cc8152f9c76b@gmail.com> (raw)
In-Reply-To: <87fsfxdryn.fsf@vuxu.org>

Leah Neukirchen schrieb am 09.10.2022 um 15:52:
> Wolfgang Schuster via ntg-context <ntg-context@ntg.nl> writes:
>
>> Leah Neukirchen via ntg-context schrieb am 09.10.2022 um 15:19:
>>> Hi,
>>>
>>> is there a way to have something like
>>>
>>> \setuppapersize[A5][A4]
>>>
>>> but have the "inner paper size" be a computed fit like in
>>> \startTEXpage?
>>>
>>> Or, alternatively, is there is a way to print crop marks around
>>> an environment like \startTEXpage?
>> Can you be more concrete what your goal is, there are a few ways to solve
>> your problem but with a few more information we can give you a good
>> solution.
> Say I want to print some stickers or paper strips of non-fixed size,
> and get crop marks around them to know where to cut.
>
> With \setuppapersize and \setuparranging I can do this nicely if I
> know the size in advance, but in some cases I don't.

You can use \framed to create a box which takes the size of its content. 
The borders
of the framed box can be used to cut the stickers and with the 
frameoffset key
(or offset if your prefer) you can increase the distance between the borders
and the content.

\setuplayout[page]

\starttext

\centerbox
    {\startframed[width=10cm,align=normal,frameoffset=1cm]
         \input ward
     \stopframed}

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2022-10-09 14:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-09 13:19 Leah Neukirchen via ntg-context
2022-10-09 13:48 ` Wolfgang Schuster via ntg-context
2022-10-09 13:52   ` Leah Neukirchen via ntg-context
2022-10-09 14:02     ` Wolfgang Schuster via ntg-context [this message]
2022-10-09 16:39     ` Hans Hagen via ntg-context
2022-10-09 18:49       ` Leah Neukirchen via ntg-context
2022-10-09 19:11         ` Henning Hraban Ramm via ntg-context
2022-10-10 12:39         ` Willi Egger 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=b41145ab-e8c2-8f38-b141-cc8152f9c76b@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=leah@vuxu.org \
    --cc=wolfgang.schuster.lists@gmail.com \
    /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).