[NTG-context] keep on grid

Emil Stein est at flipsight.net
Wed Nov 26 23:35:51 CET 2014


Hi,

The following example doesn't get the text after tufte citation back on grid.
Using linecorrection helps ... but doesn't break across pages.

What is the right way to stay on grid, even when using insertion (citation)?

Kind Regards,
Emil

====

\setuplayout[grid=yes]

\showgrid

%\definestartstop[citaat]
%[before={\startlinecorrection\vskip3pt\setupnarrower[left=5mm,right=0pt]\startnarrower[left,right]\switchtobodyfont[8pt]\setupinterlinespace[line=10pt]},
%after={\stopnarrower\vskip3pt\stoplinecorrection}]

\definestartstop[citaat]
[before={\vskip3pt\setupnarrower[left=5mm,right=0pt]\startnarrower[left,right]\switchtobodyfont[8pt]\setupinterlinespace[line=10pt]},
after={\stopnarrower\vskip3pt}]


\starttext

\dorecurse{3}
 {\input tufte\par}


\input knuth\par

\startcitaat
\dorecurse{3}
 {\input tufte\par}
\stopcitaat

text% <- how to snap to grid again??

\stoptext


More information about the ntg-context mailing list