[NTG-context] mathmatrix and grid
henrimenke at gmail.com
Mon Oct 10 13:54:37 CEST 2016
On 10/10/2016 12:30 PM, Wolfgang Schuster wrote:
>> Henri Menke <mailto:henrimenke at gmail.com>
>> 10. Oktober 2016 um 11:44
>> On 10/10/2016 11:24 AM, Wolfgang Schuster wrote:
>>>> Henri Menke <mailto:henrimenke at gmail.com>
>>>> 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
>>>> \input knuth
>>>> \vrule % make lineheight and depth visible
>>>> \NC A \NR
>>>> \NC B \NR
>>>> \NC C \NR
>>>> \input tufte
>>> 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.
> but you should add a blank line before \startformula, otherwise the setting for formula is applied to the last paragraph before it.
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).
> If your question is of interest to others as well, please add an entry to the Wiki!
> maillist : ntg-context at 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
More information about the ntg-context