On Thu, 2017-09-28 at 23:30 +0200, 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}}$

\startformula
  \frac{1}{a + b}
\stopformula

Using \displaystyle in inline math will always produce rubbish.

> \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?
> 
> Best regards,
> Massi
> 
> Il giorno ven, 29/09/2017 alle 08.48 +1300, Henri ha scritto:
> > 
> > On Thu, 2017-09-28 at 16:21 +0200, MF wrote:
> > > 
> > > Hello list, 
> > > I would like ConTeXt to snap normal text to grid after a quotation.
> > > This example does not work:
> > > 
> > > --------------
> > > \setupquotation[before={\switchtobodyfont[9pt]}]
> > > 
> > > \starttext
> > > \showgrid
> > > 
> > > \input knuth
> > > 
> > > \startlinecorrection[halfline]
> > > \startquotation
> > >   \input sapolsky
> > > \stopquotation
> > > \stoplinecorrection
> > > 
> > > \input knuth
> > > 
> > > \stoptext
> > > --------------
> > > 
> > > If I prepend a \setuplayout[grid=yes], it works, but grid snapping
> > > introduces also other side effects I don't want (i.e. tall formulas
> > > inside text taking too much vertical space).
> > > 
> > > I would like the halfline spaces before and after the quotation to
> > > shrink or stretch a bit to the nearest multiple of the main text
> > > line
> > > height.
> > > 
> > > Is there an automatic way to get the normal text "return" on the
> > > grid
> > > after a quotation without turning on a global grid snapping?
> > \setuplayout[grid=both] to round down both height and width when
> > snapping.
> > 
> > > 
> > > 
> > > Thanks,
> > > Massi
> > > 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to