Re: [NTG-context] Access stylistic sets in lucidaot

2016-07-14 Thread Hans Hagen

On 7/14/2016 1:30 PM, Henri Menke wrote:

Dear list,

I have been using the Lucida fonts for long time with LaTeX, either the
Type 1 version through the `lucimatx` package or the OpenType variants
with `unicode-math`.  In `unicode-math` there is a straightforward way
to select stylistic sets, e.g. alternative calligraphic glyphs.

By default the `lucidaot` typescript switches off the alternative math
italics, but I found a way to reenable them (basically just undoing what
the typescript does).


\setupbodyfont[lucidaot]
% get alternative math italics
\setupmathrendering[lucidaot][it=]
\starttext
$\mathcal{C} = f(x)$
\stoptext


I only found this by chance; \setupmathrendering is not documented.  Is
there a more intuitive way to select the alternative math italics?
Also, is there an easy way to access all the other features defined in
`lucida-opentype-math.lfg`?  This is the list:


alternates = {
italic   = { feature = 'ss01', value = 1, comment = "Mathematical 
Alternative Lowercase Italic" },
arrow= { feature = 'ss02', value = 1, comment = "Mathematical 
Alternative Smaller Arrows" },
operator = { feature = 'ss03', value = 1, comment = "Mathematical 
Alternative Smaller Operators" },
calligraphic = { feature = 'ss04', value = 1, comment = "Mathematical 
Alternative Calligraphic Characters" },
zero = { feature = 'ss05', value = 1, comment = "Mathematical 
Alternative Zero" },
partial  = { feature = 'ss20', value = 1, comment = "Mathematical 
Alternative Upright Partial Differential" },
},


I extended the mechanism a bit so in the next beta you can do 
combinations and a global setup:


\setupbodyfont[lucidaot]

\starttext

$x
   ^{i \leftarrow 0 = ∅}
   _{\setmathfontalternate{arrow}
 \setmathfontalternate{dotless}
 \setmathfontalternate{zero}
 i \leftarrow 0 = ∅}
$

$x
   ^{i \leftarrow 0 = ∅}
   _{\setmathfontalternate{arrow,dotless,zero}
 i \leftarrow 0 = ∅}
$

\setupmathematics[stylealternative={arrow,dotless,zero}]

$x
   ^{i \leftarrow 0 = ∅}
   _{i \leftarrow 0 = ∅}
$

\stoptext


-
  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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Access stylistic sets in lucidaot

2016-07-14 Thread Henri Menke
Dear list,

I have been using the Lucida fonts for long time with LaTeX, either the
Type 1 version through the `lucimatx` package or the OpenType variants
with `unicode-math`.  In `unicode-math` there is a straightforward way
to select stylistic sets, e.g. alternative calligraphic glyphs.

By default the `lucidaot` typescript switches off the alternative math
italics, but I found a way to reenable them (basically just undoing what
the typescript does).

> \setupbodyfont[lucidaot]
> % get alternative math italics
> \setupmathrendering[lucidaot][it=]
> \starttext
> $\mathcal{C} = f(x)$
> \stoptext

I only found this by chance; \setupmathrendering is not documented.  Is
there a more intuitive way to select the alternative math italics?
Also, is there an easy way to access all the other features defined in
`lucida-opentype-math.lfg`?  This is the list:

> alternates = {
> italic   = { feature = 'ss01', value = 1, comment = "Mathematical 
> Alternative Lowercase Italic" },
> arrow= { feature = 'ss02', value = 1, comment = "Mathematical 
> Alternative Smaller Arrows" },
> operator = { feature = 'ss03', value = 1, comment = "Mathematical 
> Alternative Smaller Operators" },
> calligraphic = { feature = 'ss04', value = 1, comment = "Mathematical 
> Alternative Calligraphic Characters" },
> zero = { feature = 'ss05', value = 1, comment = "Mathematical 
> Alternative Zero" },
> partial  = { feature = 'ss20', value = 1, comment = "Mathematical 
> Alternative Upright Partial Differential" },
> },

Cheers,
Henri
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Setting \textrules

2016-07-14 Thread Fabrice Couvreur
Hi Wolfgang,
it's perfect !
thanks,
Fabrice

2016-07-14 6:41 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 13. Juli 2016 um 01:02
> Hello,
> I would like the text of the property is in italic without using the
> environment {\it}.
>
> Use the enumeration environment.
>
> Is this the best way when I use \setuptextrules[width=-1ex] ?
>
> You can set the width and distance values to 0pt and put a space after the
> counter.
>
>  begin example
> \setupbodyfont[pagella,11pt]
>
> \define[1]\ProprieteHeadcommand
>   {\textrule[top]{#1}}
>
> \defineenumeration
>   [propriete]
>   [text=Propriété ,
>style=italic,
>headcommand=\ProprieteHeadcommand,
>numbercommand=\groupedcommand{}{\nbsp},
>after=\textrule]
>
> \setuptextrules[width=0pt,distance=0pt]
>
> \starttext
>
> \startpropriete
> Soit \math{q} un réel \math{\neq 1}, alors pour tout entier naturel
> \math{n\geqslant 1} on a :
> \startformula
> S=1+q+q^2+\dots+q^n=\frac{1-q^{n+1}}{1-q}.
> \stopformula
> \stoppropriete
>
> \stoptext
>  end example
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Adjust rule between columns

2016-07-14 Thread Henri Menke
On 07/13/2016 06:14 PM, Wolfgang Schuster wrote:
>> Henri Menke 
>> 13. Juli 2016 um 15:38
>> Dear list,
>>
>> Is there a way to adjust the vertical rule which is set between columns?
>> I tried the obvious keys, but they do nothing.
>>
>> \starttext
>> \startcolumns
>> [
>> n=2,
>> rule=on,
>> rulecolor=red,% does nothing
>> rulethickness=5pt,% does nothing
>> ]
>> \input knuth
>> \stopcolumns
>> \stoptext
> You can use mixedcolumns.

Thanks!

> 
> \starttext
> \startmixedcolumns[separator=rule,rulecolor=red,rulethickness=5pt,balance=yes]
>   \input knuth
> \stopmixedcolumns
> \stoptext
> 

I have two follow-up questions.  First, is there a similar thing for
paragraphs (à la mixedparagraphs)?  Second, why are there two distinct
mechanisms for columns?

>> Furthermore, is there a possibility to control the appearance of the
>> rule per column as in the following (fictitious) commands?
>>
>> \setupcolumns[1][rulecolor=red,rulethickness=5pt]
>> \setupcolumns[2][rulecolor=green,rulethickness=1pt]
> AFAIK this is not possible.
> 
> Wolfgang

Cheers, Henri

> 
> 
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
> 

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___