On Thu, Sep 28, 2017 at 11:30 PM, mf <mass...@fastwebnet.it> wrote: > Thank you Henri. > > Now consider this: > ------------------------------- > \setuplayout[grid=both] > \setupquotation[before={\switchtobodyfont[9pt]}] > > \starttext > \showgrid > > \input knuth > > \startlinecorrection[halfline] > \startquotation > \input sapolsky > \stopquotation > \stoplinecorrection > > \input knuth > $\displaystyle{\frac{1}{a + b}}$ > \input knuth > > \stoptext > ------------------------------- > > Now the text snaps to the grid after the quotation, but the tall > formula inside the text overlaps with the text lines. > > The solution would be a grid configuration that gives the line > containing the formula two lines of height, putting that only line in > the middle and then snapping the following lines again to the grid > (still solving the alignment of quotations as in the grid=both case). > Is it possible?
I suppose that this is not what you want, but perhaps it can give you some some idea \setuplayout[grid=both] \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation \input sapolsky \stopquotation \stoplinecorrection \input knuth \setbox0=\hbox{$\displaystyle{\frac{1}{a + b}}$}% \ruledvbox to 1\lineheight{\hsize=\wd0\vrule width0pt height0pt depth1\lineheight \vss\box0\vss} \input knuth \stoptext -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________