Re: [NTG-context] mathmatrix and grid: followup

2017-06-01 Thread Henri Menke
I just realised that this is fixed in beta.  Thanks!

On Thu, 2017-06-01 at 19:33 +1200, Henri Menke wrote:
> This seems to be quite unimportant to anyone but me.  Bump!
> 
> On Sun, 2017-04-02 at 09:12 +1200, Henri Menke wrote:
> > 
> > I haven’t bumped this in a long time...
> > 
> > On 01/24/2017 11:57 PM, Henri Menke wrote:
> > > 
> > > 
> > > Bump
> > > 
> > > On 01/06/2017 10:33 AM, Henri Menke wrote:
> > > > 
> > > > 
> > > > Bump and (belated) Happy New Year!
> > > > 
> > > > On 12/10/2016 10:37 AM, Henri Menke wrote:
> > > > > 
> > > > > 
> > > > > Bump
> > > > > 
> > > > > On 11/27/2016 07:45 PM, Henri Menke wrote:
> > > > > > 
> > > > > > 
> > > > > > Bump
> > > > > > 
> > > > > > On 11/22/2016 02:18 PM, Henri Menke wrote:
> > > > > > > 
> > > > > > > 
> > > > > > > Dear list,
> > > > > > > 
> > > > > > > some time ago I asked about the interplay of mathmatix with grid 
> > > > > > > typesetting: https://
> > > > > > > ma
> > > > > > > ilman.ntg.nl/pipermail/ntg-context/2016/087018.html
> > > > > > > 
> > > > > > > I noticed that when the grid is enabled, the height of a 
> > > > > > > mathmatrix is rounded down
> > > > > > > which leaves less space above than below.  In my opinion either 
> > > > > > > the height should be
> > > > > > > rounded up or the depth rounded down here.  In the original 
> > > > > > > thread Wolfgang proposed
> > > > > > > using \setupformula[grid=tolerant] and adding a blank line before 
> > > > > > > the formula
> > > > > > > (otherwise
> > > > > > > grid=tolerant is applied to the paragraph before).  This 
> > > > > > > workaround leads to the depth
> > > > > > > being rounded down in the example below which produces a more 
> > > > > > > balanced output.  Could
> > > > > > > this somehow be made the default behaviour or something?  
> > > > > > > Currently it requires the
> > > > > > > user
> > > > > > > to notice that vertical spacing is off and correct it manually, 
> > > > > > > including adding a
> > > > > > > blank
> > > > > > > line before the formula to prevent grid=tolerant being applied to 
> > > > > > > the paragraph.
> > > > > > > 
> > > > > > > Cheers, Henri
> > > > > > > 
> > > > > > > ---
> > > > > > > 
> > > > > > > \setuplayout[grid=yes]
> > > > > > > \showgrid
> > > > > > > 
> > > > > > > \starttext
> > > > > > > 
> > > > > > > \input knuth
> > > > > > > \startformula
> > > > > > >   \vrule % make lineheight and depth visible
> > > > > > >   \startmathmatrix
> > > > > > > \NC A \NR
> > > > > > > \NC B \NR
> > > > > > > \NC C \NR
> > > > > > >   \stopmathmatrix
> > > > > > > \stopformula
> > > > > > > \input tufte
> > > > > > > 
> > > > > > > \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] mathmatrix and grid: followup

2017-06-01 Thread Henri Menke
This seems to be quite unimportant to anyone but me.  Bump!

On Sun, 2017-04-02 at 09:12 +1200, Henri Menke wrote:
> I haven’t bumped this in a long time...
> 
> On 01/24/2017 11:57 PM, Henri Menke wrote:
> > 
> > Bump
> > 
> > On 01/06/2017 10:33 AM, Henri Menke wrote:
> > > 
> > > Bump and (belated) Happy New Year!
> > > 
> > > On 12/10/2016 10:37 AM, Henri Menke wrote:
> > > > 
> > > > Bump
> > > > 
> > > > On 11/27/2016 07:45 PM, Henri Menke wrote:
> > > > > 
> > > > > Bump
> > > > > 
> > > > > On 11/22/2016 02:18 PM, Henri Menke wrote:
> > > > > > 
> > > > > > Dear list,
> > > > > > 
> > > > > > some time ago I asked about the interplay of mathmatix with grid 
> > > > > > typesetting: https://ma
> > > > > > ilman.ntg.nl/pipermail/ntg-context/2016/087018.html
> > > > > > 
> > > > > > I noticed that when the grid is enabled, the height of a mathmatrix 
> > > > > > is rounded down
> > > > > > which leaves less space above than below.  In my opinion either the 
> > > > > > height should be
> > > > > > rounded up or the depth rounded down here.  In the original thread 
> > > > > > Wolfgang proposed
> > > > > > using \setupformula[grid=tolerant] and adding a blank line before 
> > > > > > the formula (otherwise
> > > > > > grid=tolerant is applied to the paragraph before).  This workaround 
> > > > > > leads to the depth
> > > > > > being rounded down in the example below which produces a more 
> > > > > > balanced output.  Could
> > > > > > this somehow be made the default behaviour or something?  Currently 
> > > > > > it requires the user
> > > > > > to notice that vertical spacing is off and correct it manually, 
> > > > > > including adding a blank
> > > > > > line before the formula to prevent grid=tolerant being applied to 
> > > > > > the paragraph.
> > > > > > 
> > > > > > Cheers, Henri
> > > > > > 
> > > > > > ---
> > > > > > 
> > > > > > \setuplayout[grid=yes]
> > > > > > \showgrid
> > > > > > 
> > > > > > \starttext
> > > > > > 
> > > > > > \input knuth
> > > > > > \startformula
> > > > > >   \vrule % make lineheight and depth visible
> > > > > >   \startmathmatrix
> > > > > > \NC A \NR
> > > > > > \NC B \NR
> > > > > > \NC C \NR
> > > > > >   \stopmathmatrix
> > > > > > \stopformula
> > > > > > \input tufte
> > > > > > 
> > > > > > \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] mathmatrix and grid: followup

2017-04-01 Thread Henri Menke
I haven’t bumped this in a long time...

On 01/24/2017 11:57 PM, Henri Menke wrote:
> Bump
> 
> On 01/06/2017 10:33 AM, Henri Menke wrote:
>> Bump and (belated) Happy New Year!
>>
>> On 12/10/2016 10:37 AM, Henri Menke wrote:
>>> Bump
>>>
>>> On 11/27/2016 07:45 PM, Henri Menke wrote:
 Bump

 On 11/22/2016 02:18 PM, Henri Menke wrote:
> Dear list,
>
> some time ago I asked about the interplay of mathmatix with grid 
> typesetting: https://mailman.ntg.nl/pipermail/ntg-context/2016/087018.html
>
> I noticed that when the grid is enabled, the height of a mathmatrix is 
> rounded down which leaves less space above than below.  In my opinion 
> either the height should be rounded up or the depth rounded down here.  
> In the original thread Wolfgang proposed using 
> \setupformula[grid=tolerant] and adding a blank line before the formula 
> (otherwise grid=tolerant is applied to the paragraph before).  This 
> workaround leads to the depth being rounded down in the example below 
> which produces a more balanced output.  Could this somehow be made the 
> default behaviour or something?  Currently it requires the user to notice 
> that vertical spacing is off and correct it manually, including adding a 
> blank line before the formula to prevent grid=tolerant being applied to 
> the paragraph.
>
> Cheers, Henri
>
> ---
>
> \setuplayout[grid=yes]
> \showgrid
>
> \starttext
>
> \input knuth
> \startformula
>   \vrule % make lineheight and depth visible
>   \startmathmatrix
> \NC A \NR
> \NC B \NR
> \NC C \NR
>   \stopmathmatrix
> \stopformula
> \input tufte
>
> \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] mathmatrix and grid: followup

2017-01-24 Thread Henri Menke
Bump

On 01/06/2017 10:33 AM, Henri Menke wrote:
> Bump and (belated) Happy New Year!
> 
> On 12/10/2016 10:37 AM, Henri Menke wrote:
>> Bump
>>
>> On 11/27/2016 07:45 PM, Henri Menke wrote:
>>> Bump
>>>
>>> On 11/22/2016 02:18 PM, Henri Menke wrote:
 Dear list,

 some time ago I asked about the interplay of mathmatix with grid 
 typesetting: https://mailman.ntg.nl/pipermail/ntg-context/2016/087018.html

 I noticed that when the grid is enabled, the height of a mathmatrix is 
 rounded down which leaves less space above than below.  In my opinion 
 either the height should be rounded up or the depth rounded down here.  In 
 the original thread Wolfgang proposed using \setupformula[grid=tolerant] 
 and adding a blank line before the formula (otherwise grid=tolerant is 
 applied to the paragraph before).  This workaround leads to the depth 
 being rounded down in the example below which produces a more balanced 
 output.  Could this somehow be made the default behaviour or something?  
 Currently it requires the user to notice that vertical spacing is off and 
 correct it manually, including adding a blank line before the formula to 
 prevent grid=tolerant being applied to the paragraph.

 Cheers, Henri

 ---

 \setuplayout[grid=yes]
 \showgrid

 \starttext

 \input knuth
 \startformula
   \vrule % make lineheight and depth visible
   \startmathmatrix
 \NC A \NR
 \NC B \NR
 \NC C \NR
   \stopmathmatrix
 \stopformula
 \input tufte

 \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] mathmatrix and grid: followup

2017-01-06 Thread Henri Menke
Bump and (belated) Happy New Year!

On 12/10/2016 10:37 AM, Henri Menke wrote:
> Bump
> 
> On 11/27/2016 07:45 PM, Henri Menke wrote:
>> Bump
>>
>> On 11/22/2016 02:18 PM, Henri Menke wrote:
>>> Dear list,
>>>
>>> some time ago I asked about the interplay of mathmatix with grid 
>>> typesetting: https://mailman.ntg.nl/pipermail/ntg-context/2016/087018.html
>>>
>>> I noticed that when the grid is enabled, the height of a mathmatrix is 
>>> rounded down which leaves less space above than below.  In my opinion 
>>> either the height should be rounded up or the depth rounded down here.  In 
>>> the original thread Wolfgang proposed using \setupformula[grid=tolerant] 
>>> and adding a blank line before the formula (otherwise grid=tolerant is 
>>> applied to the paragraph before).  This workaround leads to the depth being 
>>> rounded down in the example below which produces a more balanced output.  
>>> Could this somehow be made the default behaviour or something?  Currently 
>>> it requires the user to notice that vertical spacing is off and correct it 
>>> manually, including adding a blank line before the formula to prevent 
>>> grid=tolerant being applied to the paragraph.
>>>
>>> Cheers, Henri
>>>
>>> ---
>>>
>>> \setuplayout[grid=yes]
>>> \showgrid
>>>
>>> \starttext
>>>
>>> \input knuth
>>> \startformula
>>>   \vrule % make lineheight and depth visible
>>>   \startmathmatrix
>>> \NC A \NR
>>> \NC B \NR
>>> \NC C \NR
>>>   \stopmathmatrix
>>> \stopformula
>>> \input tufte
>>>
>>> \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] mathmatrix and grid: followup

2016-12-10 Thread Henri Menke
Bump

On 11/27/2016 07:45 PM, Henri Menke wrote:
> Bump
> 
> On 11/22/2016 02:18 PM, Henri Menke wrote:
>> Dear list,
>>
>> some time ago I asked about the interplay of mathmatix with grid 
>> typesetting: https://mailman.ntg.nl/pipermail/ntg-context/2016/087018.html
>>
>> I noticed that when the grid is enabled, the height of a mathmatrix is 
>> rounded down which leaves less space above than below.  In my opinion either 
>> the height should be rounded up or the depth rounded down here.  In the 
>> original thread Wolfgang proposed using \setupformula[grid=tolerant] and 
>> adding a blank line before the formula (otherwise grid=tolerant is applied 
>> to the paragraph before).  This workaround leads to the depth being rounded 
>> down in the example below which produces a more balanced output.  Could this 
>> somehow be made the default behaviour or something?  Currently it requires 
>> the user to notice that vertical spacing is off and correct it manually, 
>> including adding a blank line before the formula to prevent grid=tolerant 
>> being applied to the paragraph.
>>
>> Cheers, Henri
>>
>> ---
>>
>> \setuplayout[grid=yes]
>> \showgrid
>>
>> \starttext
>>
>> \input knuth
>> \startformula
>>   \vrule % make lineheight and depth visible
>>   \startmathmatrix
>> \NC A \NR
>> \NC B \NR
>> \NC C \NR
>>   \stopmathmatrix
>> \stopformula
>> \input tufte
>>
>> \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] mathmatrix and grid: followup

2016-11-27 Thread Henri Menke
Bump

On 11/22/2016 02:18 PM, Henri Menke wrote:
> Dear list,
> 
> some time ago I asked about the interplay of mathmatix with grid typesetting: 
> https://mailman.ntg.nl/pipermail/ntg-context/2016/087018.html
> 
> I noticed that when the grid is enabled, the height of a mathmatrix is 
> rounded down which leaves less space above than below.  In my opinion either 
> the height should be rounded up or the depth rounded down here.  In the 
> original thread Wolfgang proposed using \setupformula[grid=tolerant] and 
> adding a blank line before the formula (otherwise grid=tolerant is applied to 
> the paragraph before).  This workaround leads to the depth being rounded down 
> in the example below which produces a more balanced output.  Could this 
> somehow be made the default behaviour or something?  Currently it requires 
> the user to notice that vertical spacing is off and correct it manually, 
> including adding a blank line before the formula to prevent grid=tolerant 
> being applied to the paragraph.
> 
> Cheers, Henri
> 
> ---
> 
> \setuplayout[grid=yes]
> \showgrid
> 
> \starttext
> 
> \input knuth
> \startformula
>   \vrule % make lineheight and depth visible
>   \startmathmatrix
> \NC A \NR
> \NC B \NR
> \NC C \NR
>   \stopmathmatrix
> \stopformula
> \input tufte
> 
> \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
___

[NTG-context] mathmatrix and grid: followup

2016-11-22 Thread Henri Menke
Dear list,

some time ago I asked about the interplay of mathmatix with grid typesetting: 
https://mailman.ntg.nl/pipermail/ntg-context/2016/087018.html

I noticed that when the grid is enabled, the height of a mathmatrix is rounded 
down which leaves less space above than below.  In my opinion either the height 
should be rounded up or the depth rounded down here.  In the original thread 
Wolfgang proposed using \setupformula[grid=tolerant] and adding a blank line 
before the formula (otherwise grid=tolerant is applied to the paragraph 
before).  This workaround leads to the depth being rounded down in the example 
below which produces a more balanced output.  Could this somehow be made the 
default behaviour or something?  Currently it requires the user to notice that 
vertical spacing is off and correct it manually, including adding a blank line 
before the formula to prevent grid=tolerant being applied to the paragraph.

Cheers, Henri

---

\setuplayout[grid=yes]
\showgrid

\starttext

\input knuth
\startformula
  \vrule % make lineheight and depth visible
  \startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
  \stopmathmatrix
\stopformula
\input tufte

\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] mathmatrix and grid

2016-10-10 Thread Henri Menke
On 10/10/2016 12:30 PM, Wolfgang Schuster wrote:
>> Henri Menke 
>> 10. Oktober 2016 um 11:44
>> On 10/10/2016 11:24 AM, Wolfgang Schuster wrote:
 Henri Menke 
 30. September 2016 um 23:01
 Dear list,

 I noticed that when using grid=both then the height of a mathmatrix is 
 rounded down for no apparent reason whereas the depth is rounded up 
 correctly. Visually it appears to me that the height should be rounded up 
 here. In the MWE I added a \vrule to show that the determined height of 
 the line definitely does not coincide with what one would expect.

 How can I fix that? MWE is below.

 Cheers, Henri

 ---

 \setuplayout[grid=both]
 \showgrid

 \starttext

 \input knuth
 \startformula
 \vrule % make lineheight and depth visible
 \startmathmatrix
 \NC A \NR
 \NC B \NR
 \NC C \NR
 \stopmathmatrix
 \stopformula
 \input tufte

 \stoptext
>>> The default spacing modell (3) before and after formulas breaks grid 
>>> alignment
>>> because when you use another alternative (1 or 2) the alignment is correct.
>>
>> Dear Wolfgang,
>>
>> I appreciate your efforts but this does not change anything in my original 
>> example.  For reference, I include my updated example
>>
> You can add a grid setting for the formula itself, e.g.
> 
> \setupformula[grid=tolerant]
> 
> but you should add a blank line before \startformula, otherwise the setting 
> for formula is applied to the last paragraph before it.

Dear Wolfgang,

thanks again, this solution works nicely for me.  However, it only represents a 
workaround.  Do you think it is possible to patch it somehow in the core?  
Perhaps the definition of the mathmatrix has to be adjusted somehow (in 
context/base/mkiv/math-ali.mkiv).

Cheers, Henri

> 
> 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] mathmatrix and grid

2016-10-10 Thread Wolfgang Schuster

Henri Menke 
10. Oktober 2016 um 11:44
On 10/10/2016 11:24 AM, Wolfgang Schuster wrote:

Henri Menke
30. September 2016 um 23:01
Dear list,

I noticed that when using grid=both then the height of a mathmatrix is rounded 
down for no apparent reason whereas the depth is rounded up correctly. Visually 
it appears to me that the height should be rounded up here. In the MWE I added 
a \vrule to show that the determined height of the line definitely does not 
coincide with what one would expect.

How can I fix that? MWE is below.

Cheers, Henri

---

\setuplayout[grid=both]
\showgrid

\starttext

\input knuth
\startformula
\vrule % make lineheight and depth visible
\startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
\stopmathmatrix
\stopformula
\input tufte

\stoptext

The default spacing modell (3) before and after formulas breaks grid alignment
because when you use another alternative (1 or 2) the alignment is correct.


Dear Wolfgang,

I appreciate your efforts but this does not change anything in my original 
example.  For reference, I include my updated example


You can add a grid setting for the formula itself, e.g.

\setupformula[grid=tolerant]

but you should add a blank line before \startformula, otherwise the 
setting for formula is applied to the last paragraph before it.


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
___

Re: [NTG-context] mathmatrix and grid

2016-10-10 Thread Henri Menke
On 10/10/2016 11:24 AM, Wolfgang Schuster wrote:
>> Henri Menke 
>> 30. September 2016 um 23:01
>> Dear list,
>>
>> I noticed that when using grid=both then the height of a mathmatrix is 
>> rounded down for no apparent reason whereas the depth is rounded up 
>> correctly. Visually it appears to me that the height should be rounded up 
>> here. In the MWE I added a \vrule to show that the determined height of the 
>> line definitely does not coincide with what one would expect.
>>
>> How can I fix that? MWE is below.
>>
>> Cheers, Henri
>>
>> ---
>>
>> \setuplayout[grid=both]
>> \showgrid
>>
>> \starttext
>>
>> \input knuth
>> \startformula
>> \vrule % make lineheight and depth visible
>> \startmathmatrix
>> \NC A \NR
>> \NC B \NR
>> \NC C \NR
>> \stopmathmatrix
>> \stopformula
>> \input tufte
>>
>> \stoptext
> The default spacing modell (3) before and after formulas breaks grid alignment
> because when you use another alternative (1 or 2) the alignment is correct.

Dear Wolfgang,

I appreciate your efforts but this does not change anything in my original 
example.  For reference, I include my updated example

%\setconstantvalue{c_strc_formulas_space_model}{1}
\setconstantvalue{c_strc_formulas_space_model}{2}
%\setconstantvalue{c_strc_formulas_space_model}{3}% default value

\setuplayout[grid=both]

\showgrid

\starttext

\input knuth
\startformula
\vrule % make lineheight and depth visible
\startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
\stopmathmatrix
\stopformula
\input tufte

\stoptext

Cheers, Henri

> 
> 
> %\setconstantvalue{c_strc_formulas_space_model}{1}
> \setconstantvalue{c_strc_formulas_space_model}{2}
> %\setconstantvalue{c_strc_formulas_space_model}{3}% default value
> 
> \setuplayout[grid=yes]
> 
> \showgrid
> 
> \starttext
> 
> \input knuth
> \startformula
> x
> \stopformula
> \input tufte
> 
> \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://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] mathmatrix and grid

2016-10-10 Thread Wolfgang Schuster

Henri Menke 
30. September 2016 um 23:01
Dear list,

I noticed that when using grid=both then the height of a mathmatrix is 
rounded down for no apparent reason whereas the depth is rounded up 
correctly. Visually it appears to me that the height should be rounded 
up here. In the MWE I added a \vrule to show that the determined 
height of the line definitely does not coincide with what one would 
expect.


How can I fix that? MWE is below.

Cheers, Henri

---

\setuplayout[grid=both]
\showgrid

\starttext

\input knuth
\startformula
\vrule % make lineheight and depth visible
\startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
\stopmathmatrix
\stopformula
\input tufte

\stoptext
The default spacing modell (3) before and after formulas breaks grid 
alignment

because when you use another alternative (1 or 2) the alignment is correct.


%\setconstantvalue{c_strc_formulas_space_model}{1}
\setconstantvalue{c_strc_formulas_space_model}{2}
%\setconstantvalue{c_strc_formulas_space_model}{3}% default value

\setuplayout[grid=yes]

\showgrid

\starttext

\input knuth
\startformula
x
\stopformula
\input tufte

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

Re: [NTG-context] mathmatrix and grid

2016-10-08 Thread Henri Menke
Bump

On 09/30/2016 11:01 PM, Henri Menke wrote:
> Dear list,
> 
> I noticed that when using grid=both then the height of a mathmatrix is 
> rounded down for no apparent reason whereas the depth is rounded up 
> correctly.  Visually it appears to me that the height should be rounded up 
> here.  In the MWE I added a \vrule to show that the determined height of the 
> line definitely does not coincide with what one would expect.
> 
> How can I fix that?  MWE is below.
> 
> Cheers, Henri
> 
> ---
> 
> \setuplayout[grid=both]
> \showgrid
> 
> \starttext
> 
> \input knuth
> \startformula
>   \vrule % make lineheight and depth visible
>   \startmathmatrix
> \NC A \NR
> \NC B \NR
> \NC C \NR
>   \stopmathmatrix
> \stopformula
> \input tufte
> 
> \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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] mathmatrix and grid

2016-09-30 Thread Henri Menke
Dear list,

I noticed that when using grid=both then the height of a mathmatrix is rounded 
down for no apparent reason whereas the depth is rounded up correctly.  
Visually it appears to me that the height should be rounded up here.  In the 
MWE I added a \vrule to show that the determined height of the line definitely 
does not coincide with what one would expect.

How can I fix that?  MWE is below.

Cheers, Henri

---

\setuplayout[grid=both]
\showgrid

\starttext

\input knuth
\startformula
  \vrule % make lineheight and depth visible
  \startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
  \stopmathmatrix
\stopformula
\input tufte

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