Re: [NTG-context] Shaded large letters in LMTX

2021-03-02 Thread Garulfo

yep, was wikified here :
https://wiki.contextgarden.net/Cover_Pages#Empty_or_Transparent_letters
___
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
___


Re: [NTG-context] Shaded large letters in LMTX

2021-03-02 Thread Keith McKay

Wow! Just what I envisaged. Thank you so much!

Best Wishes

Keith

On 02/03/2021 17:47, Hans Hagen wrote:

On 3/2/2021 5:51 PM, Keith McKay wrote:

Hi All,

Is it possible to get the fill colour in lmt_outline[] to be shaded 
between two colours like in the lmt_shade[] command? It would be a 
nice effect for large letters or words.

Sometimes the impossible is possible (see effects-001 in test suite)

% see discussion on this list with/by Garulfo

\startMPpage
    picture tt ; tt := lmt_outline [
    kind = "fillup",
    text = "\definedfont[name:texgyrepagellabold*default]foo f o o",
    ] xsized 12cm ;

    path bb ; bb := boundingbox tt ;

    path pp ; pp := bb enlarged 2cm ;

    fill pp
   withshademethod "linear"
   withshadedirection down
   withshadecolors (red, blue) ;

    for i within tt :
    nofill pathpart i;
    endfor ;

    eofill bb withcolor "darkgreen" ; % you need to specify your 
background

    clip currentpicture to bb ;
\stopMPpage

I think I should add that to the metafun manual.

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
___


Re: [NTG-context] Shaded large letters in LMTX

2021-03-02 Thread Hans Hagen

On 3/2/2021 5:51 PM, Keith McKay wrote:

Hi All,

Is it possible to get the fill colour in lmt_outline[] to be shaded 
between two colours like in the lmt_shade[] command? It would be a nice 
effect for large letters or words.

Sometimes the impossible is possible (see effects-001 in test suite)

% see discussion on this list with/by Garulfo

\startMPpage
picture tt ; tt := lmt_outline [
kind = "fillup",
text = "\definedfont[name:texgyrepagellabold*default]foo f o o",
] xsized 12cm ;

path bb ; bb := boundingbox tt ;

path pp ; pp := bb enlarged 2cm ;

fill pp
   withshademethod "linear"
   withshadedirection down
   withshadecolors (red, blue) ;

for i within tt :
nofill pathpart i;
endfor ;

eofill bb withcolor "darkgreen" ; % you need to specify your 
background

clip currentpicture to bb ;
\stopMPpage

I think I should add that to the metafun manual.

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
___


Re: [NTG-context] Setuptolerance vs setupalign

2021-03-02 Thread Wolfgang Schuster

denis.ma...@ub.unibe.ch schrieb am 02.03.2021 um 11:50:

Ok, so this combination will disable tolerant and stretch again?
\setuptolerance[tolerant,stretch]
\setupalign[hz,hanging]

Or will it be preserved?


The tolerance settings remain.

Wolfgang

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


[NTG-context] Shaded large letters in LMTX

2021-03-02 Thread Keith McKay

Hi All,

Is it possible to get the fill colour in lmt_outline[] to be shaded 
between two colours like in the lmt_shade[] command? It would be a nice 
effect for large letters or words.


Best Wishes

Keith McKay

Hamilton, Scotland

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


[NTG-context] outputting components in their own PDFs

2021-03-02 Thread Alan Bowen
Denis—

Many thanks for your explanation. It works very well in my separating
components (chapters) and is going to save me a lot of time.

Thanks too to Hans.

And my apologies for missing the earlier discussion: my internet access and
email has been very flakey of late and I know that I have lost messages. In
fact, I found Denis’s reply and the earlier exchange by going to the list
Archive.

All best, Alan
___
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
___


Re: [NTG-context] Setuptolerance vs setupalign

2021-03-02 Thread denis.maier
Ok, so this combination will disable tolerant and stretch again?
\setuptolerance[tolerant,stretch]
\setupalign[hz,hanging]

Or will it be preserved?

Denis

> -Ursprüngliche Nachricht-
> Von: Hans Hagen 
> Gesendet: Dienstag, 2. März 2021 11:49
> An: mailing list for ConTeXt users ; Maier, Denis
> Christian (UB) 
> Betreff: Re: [NTG-context] Setuptolerance vs setupalign
> 
> On 3/2/2021 11:40 AM, denis.ma...@ub.unibe.ch wrote:
> > Hi,
> >
> > I've just noticed that it's possible to do
> >
> > \setupalign [tolerant,stretch]
> >
> > and
> >
> > \setuptolerance [tolerant,stretch]
> >
> > Are these equivalent?
> >
> > Will this here have the desired effect?
> >
> > \setuptolerance[tolerant,stretch]
> >
> > \setupalign[hz,hanging]
> >
> > Or will \setupalign overwrite the tolerance settings?
> both overwrite ... same underlying code ... at some point it made sense to
> support the tolerance keys in align (which is often an option in environments
> and commands)
> 
> 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
___


Re: [NTG-context] Setuptolerance vs setupalign

2021-03-02 Thread Hans Hagen

On 3/2/2021 11:40 AM, denis.ma...@ub.unibe.ch wrote:

Hi,

I’ve just noticed that it’s possible to do

\setupalign [tolerant,stretch]

and

\setuptolerance [tolerant,stretch]

Are these equivalent?

Will this here have the desired effect?

\setuptolerance[tolerant,stretch]

\setupalign[hz,hanging]

Or will \setupalign overwrite the tolerance settings?
both overwrite ... same underlying code ... at some point it made sense 
to support the tolerance keys in align (which is often an option in 
environments and commands)


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
___


Re: [NTG-context] lmtx update / teaser

2021-03-02 Thread Hans Hagen

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
___


[NTG-context] Setuptolerance vs setupalign

2021-03-02 Thread denis.maier
Hi,

I've just noticed that it's possible to do
\setupalign [tolerant,stretch]
and
\setuptolerance [tolerant,stretch]

Are these equivalent?
Will this here have the desired effect?

\setuptolerance[tolerant,stretch]

\setupalign[hz,hanging]

Or will \setupalign overwrite the tolerance settings?

Best,
Denis
___
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
___


Re: [NTG-context] lmtx update / teaser

2021-03-02 Thread Hans Hagen

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're right, the list= can be removed (you can do that and see that it 
still works)


Just mp=... could be enough, but maybe "list=xyz,mp=xyz" makes it clear 
that mp is used to get a parshape from MetaPost instead of a 
\startparagraphshape definition.



 \setupalign[verytolerant,stretch,last]\dontcomplain


What's the meaning of \dontcomplain? Why is it needed there?


I don't want to see messages about underful boxes cluttering my log (and 
such shapes tend to produce them).


BTW, \startparagraphshape, \stopparagraphshape, \startshapedparagraph, 
\stopshapedparagraph should be added to the .xml documentation files.


WOlfgang normally picks up these new thinsg and adds them but we update 
the xml files only periodically.


The "right", "left", "both", "copy", "repeat" syntax in 
\startparagraphshape is really handy.
I might actually add "metapost {name}" too and "delete n" to wipe out 
some previous ones. Rather trivial but we need to be able to say that we 
'added a new feature' occasionally. I couldn't yet think of more than 
'cycle' and 'repeat' but who knows what users want ... (like some 
autofit loop).


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
___


Re: [NTG-context] lmtx update / teaser

2021-03-02 Thread mf

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.


Just mp=... could be enough, but maybe "list=xyz,mp=xyz" makes it clear 
that mp is used to get a parshape from MetaPost instead of a 
\startparagraphshape definition.



     \setupalign[verytolerant,stretch,last]\dontcomplain


What's the meaning of \dontcomplain? Why is it needed there?

BTW, \startparagraphshape, \stopparagraphshape, \startshapedparagraph, 
\stopshapedparagraph should be added to the .xml documentation files.


The "right", "left", "both", "copy", "repeat" syntax in 
\startparagraphshape is really handy.


Thanks,
Massi
___
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
___