Высота и сетка заголовков в ConTeXT

Высота и сетка заголовков в ConTeXT

Как увеличить высоту строки заголовков в ConTeXT при использовании сетки набора текста, не нарушая выравнивания последующих строк? (Несоответствие отмечено зеленым цветом).

введите описание изображения здесь

Мой код:

\definefontfeature[default][default][protrusion=quality,expansion=quality,liga=yes,onum=yes]
\setupalign[hanging,tolerant]
\setuppapersize[A5][A5]
\setupinterlinespace[line=16pt]
\setuplayout[
                grid=yes,
               width=fit,
              height=fit,
            location=middle,
            topspace=0.2in,
         bottomspace=0in,
              bottom=0.2in,
           backspace=0.75in,
            cutspace=0.5in,
          leftmargin=0.2in,
         rightmargin=0.75in,
  leftmargindistance=0.1in,
 rightmargindistance=0.1in,
              header=0.20in,
              footer=0.20in,
      headerdistance=0.2in,
      footerdistance=0.2in
]
\setuppagenumbering[
   alternative=doublesided,
      location={footer, right, margin},
         width=1in,
         right={\hfill},
          left={\hfill}
]
\setupheads[indentnext=no]
\setupindenting[yes, small]
\setupmargindata[inmargin][location=right, style=small]
\definepagebreak[mychapterpagebreak][yes,header,right]
\setuphead[chapter][
     page=mychapterpagebreak,
    style=\tfc,
textstyle={\kerncharacters[.5‌​]},
   % If I remove \setuplocalinterlinespace here, I get the alignment right.
   before={\ \blank[2*big]\setuplocalinterlinespace[line=3.2ex]},
    after={\blank[3*big]},
   number=no
]

%\showframe
\showgrid

\starttext
    \chapter[Incididunt reprehenderit cupidatat adipisicing elit qui sit et deserunt sunt amet irure consectetur labore minim commodo]{Incididunt reprehenderit cupidatat adipisicing elit qui sit et deserunt sunt amet irure consectetur labore minim commodo}
    \input khatt-en
\stoptext

решение1

Кажется \setuplocalinterlinespace[line=3.2ex], вытекает из определения главы. Просто используйте interlinespaceвместо этого опцию. Также вам нужно начать абзац перед \blank[2*big], иначе вы также нарушите вертикальный интервал.

\definefontfeature[default][default][protrusion=quality,expansion=quality,liga=yes,onum=yes]
\setupalign[hanging,tolerant]
\setuppapersize[A5][A5]
\setupinterlinespace[line=16pt]
\setuplayout[
                grid=yes,
               width=fit,
              height=fit,
            location=middle,
            topspace=0.2in,
         bottomspace=0in,
              bottom=0.2in,
           backspace=0.75in,
            cutspace=0.5in,
          leftmargin=0.2in,
         rightmargin=0.75in,
  leftmargindistance=0.1in,
 rightmargindistance=0.1in,
              header=0.20in,
              footer=0.20in,
      headerdistance=0.2in,
      footerdistance=0.2in
]
\setuppagenumbering[
   alternative=doublesided,
      location={footer, right, margin},
         width=1in,
         right={\hfill},
          left={\hfill}
]
\setupheads[indentnext=no]
\setupindenting[yes, small]
\setupmargindata[inmargin][location=right, style=small]
\definepagebreak[mychapterpagebreak][yes,header,right]

\setuphead[chapter][
     page=mychapterpagebreak,
    style=\tfc,
textstyle={\kerncharacters[.5‌​]},
   % If I remove \setuplocalinterlinespace here, I get the alignment right.
   before={\dontleavehmode\blank[2*big]},
   after={\blank[3*big]},
   interlinespace=3.2ex,
   number=no,
]

%\showframe
\showgrid

\starttext
\startchapter
  [title={Incididunt reprehenderit cupidatat adipisicing elit qui sit
      et deserunt sunt amet irure consectetur labore minim commodo}]
  \input khatt-en
\stopchapter
\stoptext

введите описание изображения здесь

Связанный контент