On 9/28/2017 11:47 PM, luigi scarso wrote:
On Thu, Sep 28, 2017 at 11:30 PM, mf
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
linecorrection is to be used only with boxed material (normally something framed)
\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
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------