Re: [NTG-context] Question about defining a path with Metapost

2018-12-20 Thread Alan Braslau
On Fri, 21 Dec 2018 00:17:25 +0100
Fabrice Couvreur  wrote:

> Why does the definition of the r path that Hans proposed give the
> same result as what I propose ?

Look at the definition of bottomboundary in mp-tool.mpiv
Use whatever you prefer.

You might also be interested in the modification that I added to
label:

label.llft("B", p) ;
label.lrt ("C", p) ;

etc.

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
___

[NTG-context] Question about defining a path with Metapost

2018-12-20 Thread Fabrice Couvreur
Hi,
I need to make a figure with shaded areas and I found this code proposed by
Hans. Why does the definition of the r path that Hans proposed give the
same result as what I propose ?
Thank you.
Fabrice

\starttext
\startMPpage[offset=2pt]
 path p, q, r ; pair z ;
 p := unitsquare scaled 4cm ;
 z := point 3.6 of p ;
 q := z--urcorner p ;
 r := z--urcorner p--lrcorner p--llcorner p--cycle ;
  %r := q -- reverse bottomboundary p -- cycle ; definition of Hans
 draw p ;
 draw r numberstriped (.25,10,5) withcolor magenta ;
 draw thetextext.llft("B", llcorner p) ;
 draw thetextext.lrt ("C", lrcorner p) ;
 draw thetextext.ulft("A", ulcorner p) ;
 draw thetextext.urt ("D", urcorner p) ;
 draw thetextext.lft ("M", z) ;
\stopMPpage
\stoptext
___
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] book

2018-12-20 Thread Thomas A. Schmitz

On 12/16/18 2:45 PM, Andrea Valle wrote:

sorry
https://www.logos-verlag.de/cgi-bin/engbuchmid?isbn=4466  



This looks very interesting, from a typographical point of view. How did 
you create the music notation examples? Would it be possible to showcase 
a few pages that are particularly complex, on the wiki, for example?


Thomas
___
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] issue with initial

2018-12-20 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\definefallbackfamily
[mainface]
[rm]
[GFS Didot]
[preset=range:greek, force=yes]

\definefontfamily
[mainface]
[rm]
[TeX Gyre Pagella]

\setupbodyfont[mainface]

\starttext
\setinitial
Πρῶτον

\blank[5*big]\setinitial
Ὄνομα
\stoptext

I’m afraid I cannot get an initial with a fallback font and a glyph in
the Unicode block for extended Greek.

I think it might be a bug. Sorry for insisting.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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] \startnarrower

2018-12-20 Thread Wolfgang Schuster



Hans van der Meer schrieb am 20.12.18 um 14:15:

Wolfgang,

Your solution works, but repeats after every \par. The purpose was to 
have the very first line only as the one without the indent. I tried 
several parameters from \definedelimitedtext and from \setupindenting, 
but could not achieve that result.
Below an example that exhibits the behaviour I am looking for, but at 
the expense of a \setupindentig roughly after the first \par.

Is there a better solution?

\definedelimitedtext
   [narrowtext]
   [leftmargin=2em,
    indenting={yes,-2em},
    ]

\showframe [text] [text]

\starttext

\startdelimitedtext [narrowtext]
This is a text meant to make a long paragraph such that it stretches 
over more than one line when typeset for example on an A4 page in order 
to demonstrate the behaviour of definedelimitedtext.

%\setupindenting[no] works here too
\par
\setupindenting[no]
This is a text meant to make a long paragraph such that it stretches 
over more than one line when typeset for example on an A4 page in order 
to demonstrate the behaviour of definedelimitedtext.

\par
\stopdelimitedtext

\stoptext


\definehspace [outdent] [-2em]

\definedelimitedtext
  [narrowtext]
  [leftmargin=2em,
   rightmargin=0pt,
   location=paragraph,
   left={\dontleavehmode\hspace[outdent]}]

\showframe [text] [text]

\starttext

\startdelimitedtext [narrowtext]
This is a text meant to make a long paragraph such that it stretches 
over more than one line when typeset for example on an A4 page in order 
to demonstrate the behaviour of definedelimitedtext.


This is a text meant to make a long paragraph such that it stretches 
over more than one line when typeset for example on an A4 page in order 
to demonstrate the behaviour of definedelimitedtext.

\stopdelimitedtext

\stoptext

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
___