From: garulfo@azules.eu
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: [ page setup ]
Date: Sun, 26 Jan 2025 18:04:03 -0000 [thread overview]
Message-ID: <173791464343.3183021.15918461741586944360@cgl.ntg.nl> (raw)
In-Reply-To: <4f5d13a4-df7f-47d8-826e-1ab44647a3f4@klankschap.nl>
A proposal based on lmt_parshape, \startshapetext, and \getshapetext.
Be sure to use \endgraf to break the line ==> it probably work only if you stay in the same par.
% 8<---
\setuppapersize [A4]
\setupheader [state=empty, no]
\usetypescript[ibmplex]
\setupbodyfont[ibmplex, serif, 11pt]
% \setupinterlinespace[14pt] % LET DEFAULT
\setuplayout[%
backspace=10mm,
topspace=20mm,
header=0mm,
footer=0mm,
height=180mm,
]
\definelayout[one][width=98.8mm]
\definelayout[two][width=158.2mm]
\definelayout[1,2,5,6][one]
\definelayout[3,4,7,8][two]
%=================================================
\startuseMPgraphic{testA}
path p ;
p := fullsquare xscaled 98.8mm yscaled 180mm;
lmt_parshape [ path = p,] ;
\stopuseMPgraphic
\startuseMPgraphic{testB}
path p ;
p := fullsquare xscaled 158.2mm yscaled 180mm;
lmt_parshape [ path = p,] ;
\stopuseMPgraphic
\startshapetext
[testA,testB,testA,testB,testA,testB,
testA,testB,testA,testB,testA,testB,
testA]
\setupalign[verytolerant,stretch,normal]
{\bf\strut This is the beginning}.\endgraf % DON'T FORGET THE STRUT HERE
\dorecurse{30}
{\strut\color[middlemagenta]{\bf \recurselevel}\endgraf
\input knuth\endgraf}
{\bf This is the end}.
\stopshapetext
%=================================================
\showframe
\showgrid
\starttext
\dorecurse{13}{\getshapetext}
\stoptext
% --->8
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2025-01-26 18:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-19 18:07 [NTG-context] " vm via ntg-context
2025-01-19 19:38 ` [NTG-context] " Henning Hraban Ramm
2025-01-19 20:13 ` vm via ntg-context
2025-01-19 20:38 ` vm via ntg-context
2025-01-19 20:43 ` Mikael Sundqvist
2025-01-19 21:08 ` vm via ntg-context
2025-01-26 18:04 ` garulfo [this message]
2025-01-26 18:33 ` garulfo
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=173791464343.3183021.15918461741586944360@cgl.ntg.nl \
--to=garulfo@azules.eu \
--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).