[NTG-context] lmtx update / teaser

Hans Hagen j.hagen at xs4all.nl
Tue Mar 2 11:47:25 CET 2021


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
-----------------------------------------------------------------


More information about the ntg-context mailing list