
후속 줄의 정렬을 방해하지 않고 그리드 조판을 사용하는 동안 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