I would suggest the approach of Wolfgang because the standard setting of \framed(texts)’ width is fit and the height setting can be changed to this too. Further I would suggest to use an overlay and a Metafun graphic for the cut-indicators. \defineoverlay[Cutpointstight][\useMPgraphic{Cutpointstight}] \startuniqueMPgraphic{Cutpointstight} path p; p := unitsquare xscaled OverlayWidth yscaled OverlayHeight; draw ulcorner p; draw urcorner p; draw llcorner p; draw lrcorner p; \stopuniqueMPgraphic \framedtext [height=fit, align={lohi,center}, background=Cutpointstight, foregroundcolor=black, frame=off, offset=3pt] {{\tfa HALITGARII EPISCOPI \blank[small] De vitiis et virtutibus \blank[small] Ordinum Poenitentium} \blank[small] Libri V.} I hope this solves your issue Willi
On 9 Oct 2022, at 20:49, Leah Neukirchen via ntg-context
wrote: Hans Hagen via ntg-context
writes: On 10/9/2022 3:52 PM, Leah Neukirchen via ntg-context wrote:
Wolfgang Schuster via ntg-context
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.
\definepapersize [label] [width=6cm, height=25mm]
But that requires knowing the size in advance. Think of the labels in a museum that depend how long the description is. ;)
-- Leah Neukirchen
https://leahneukirchen.org/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________