
Eu tenho este arquivo:
\newdimen\cslhangindent
\cslhangindent=1.5em
\definestartstop [cslreferences] [
before={%
\setupnarrower[left=\cslhangindent]
\startnarrower[left]%
\setupindenting[-\leftskip,yes,first]%
\indentation%
},
after=\stopnarrower,
]
\starttext
\section{Some title}
\input ward
\section{References}
\startcslreferences
\dorecurse{10}{\dorecurse{10}{This is a Test. }\par}
\stopcslreferences
\stoptext
O salto depois do \section{References}
é maior que depois do \section{Some title}
. Por que é que? Se eu excluir a linha vazia depois \startcslreferences
, os saltos serão idênticos.
Existe uma maneira de cuidar disso \definestartstop
?
Responder1
O problema é a \indentation
instrução que força imediatamente a colocação da caixa de recuo, mas você só deseja o recuo quando o parágrafo for iniciado, então use \doindentation
.
\definemeasure[cslhangindent][1.5em]
\definestartstop
[cslreferences]
[before={%
\setupnarrower[left=\measure{cslhangindent}]
\startnarrower[left]%
\setupindenting[-\leftskip,yes,first]%
\doindentation%
},
after=\stopnarrower]
\starttext
\section{Some title}
\input ward
\section{References}
\startcslreferences
\dorecurse{10}{\dorecurse{10}{This is a Test. }\par}
\stopcslreferences
\stoptext