grid+formulas: bug or expected behavior?
Dear all, I'm typesetting a document with grid layout and some formulas, like in the minimal example below: %%%%%%%%%%%%%%%%%%%%%%%%%%%% \setuplayout[grid=yes] \showgrid \starttext \input knuth %\blank \startformula a = b + c \stopformula \input knuth \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%% I don't have any specific need for the alignment of the formula with respect to the grid, but I expect the text below the formula to be on the grid. However, I've not been able to achieve that with any of the layout options described in the latest "details.pdf" manual: in all cases I've tried the text below the formula doesn't "sit" on the grid. While I do not understand this behavior, I've thought that it could be the intended one, because this is what happens in chapter 4 of the "details" manual. Then, I noticed that in older versions of the same manual (for example the one included in texlive 2017) the behavior shown in chapter 4 is the one I expect: the text after formulas is aligned to the grid. So I'm a bit puzzled: should the text after formulas be aligned to the grid or not? Is this a (known?) bug or intended behavior? If this is the expected behavior, I can live with that because by trial and error I found a workaround. If I employ a \blank command before the formula (as in the commented line in the above example), the text after the formula is "correctly" aligned. Thank you in advance. LD
Zitat von Luca Donetti
I don't have any specific need for the alignment of the formula with respect to the grid, but I expect the text below the formula to be on the grid. However, I've not been able to achieve that with any of the layout options described in the latest "details.pdf" manual: in all cases I've tried the text below the formula doesn't "sit" on the grid.
Looking through my unread ML mails, I saw nobody answered to you. Did you try enclosing your formulae in \startlinecorrection ... \stoplinecorrection ? AFAIK that should do the job. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
Luca Donetti schrieb am 31.05.2019 um 20:46:
Dear all, I'm typesetting a document with grid layout and some formulas, like in the minimal example below:
%%%%%%%%%%%%%%%%%%%%%%%%%%%% \setuplayout[grid=yes] \setupformulas[option=depth] \showgrid
\starttext \input knuth %\blank \startformula a = b + c \stopformula \input knuth \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%% Wolfgang
Thank you Wolfgang. LD On Fri, Jul 26, 2019 at 1:08 PM Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote:
Luca Donetti schrieb am 31.05.2019 um 20:46:
Dear all, I'm typesetting a document with grid layout and some formulas, like in the minimal example below:
%%%%%%%%%%%%%%%%%%%%%%%%%%%% \setuplayout[grid=yes] \setupformulas[option=depth] \showgrid
\starttext \input knuth %\blank \startformula a = b + c \stopformula \input knuth \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%% Wolfgang
participants (3)
-
Henning Hraban Ramm
-
Luca Donetti
-
Wolfgang Schuster