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 ___________________________________________________________________________________