From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
mf <massifr@fastwebnet.it>
Subject: Re: lmtx update / teaser
Date: Tue, 2 Mar 2021 11:47:25 +0100 [thread overview]
Message-ID: <818fe7d2-687d-f4e9-b547-c00c19c27519@xs4all.nl> (raw)
In-Reply-To: <4d7d579e-8bc5-7de1-704f-cd1d1b41653f@fastwebnet.it>
On 3/2/2021 11:15 AM, mf wrote:
> Il 01/03/21 15:44, Hans Hagen ha scritto:
>>
>> \starttext
>>
>> \startuseMPgraphic{circle}
>> lmt_parshape [
>> path = fullcircle scaled 136mm,
>> offset = 2mm,
>> bottomskip = - 1.5LineHeight,
>> ] ;
>> \stopuseMPgraphic
>>
>> \start
>> \startshapedparagraph[list=circle,mp=circle,repeat=yes,method=cycle]%
>
> list=... refers to a previous \startparagraphshape definition, so mp=...
> tells ConTeXt that the definition is derived from MetaPost code instead.
You can go completely crazy with this:
\setupbodyfont[pagella,10pt]
\showframe
\setuplayout[width=middle,height=middle,footer=0pt]
\startuseMPgraphic{circle}
lmt_parshape [
% path = fullcircle scaled 136mm,
path = fullcircle scaled TextWidth randomized 2cm,
% offset = 2mm,
bottomskip = - 1.5LineHeight,
] ;
\stopuseMPgraphic
\starttext
\startshapedparagraph[mp=circle,repeat=yes,method=cycle]%
\setupalign[verytolerant,stretch,last]\dontcomplain
\dorecurse{100}{
{\darkred \samplefile{tufte}}
{\darkgreen \kerncharacters[.125]\samplefile{ward}}
{\darkblue \it \samplefile{thuan}}
{\darkcyan \bf \samplefile{zapf}}
{\darkmagenta \bi \samplefile{sapolsky}}
{\darkyellow \smallcaps \samplefile{davis}}
\par % \blank
}
\stopshapedparagraph
\stoptext
It might work for a children book or so,
Hans
-----------------------------------------------------------------
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
___________________________________________________________________________________
prev parent reply other threads:[~2021-03-02 10:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-01 14:44 Hans Hagen
2021-03-01 17:27 ` Otared Kavian
2021-03-01 18:13 ` Hans Hagen
2021-03-02 10:15 ` mf
2021-03-02 10:33 ` Hans Hagen
2021-03-02 10:47 ` 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=818fe7d2-687d-f4e9-b547-c00c19c27519@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=massifr@fastwebnet.it \
--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).