0

I have this file:

\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

The skip after the \section{References} is bigger than after \section{Some title}. Why is that? If I delete the empty line after \startcslreferences, the skips are identical.

Is there a way to take care of this through \definestartstop?

5
  • 3
    @JohnKormylo: The tag context already specifies that. Those who don't wish to see ConTeXt questions can add it too the list of their ignored tags.
    – Aditya
    Nov 28, 2019 at 16:59
  • 2
    @Denis: Didn't you ask the same question on the context mailing list yesterday and receive a reply from Hans. At the very least, you should link to that question and explain why the solution by Hans doesn't work for your situation.
    – Aditya
    Nov 28, 2019 at 17:02
  • Yes and no. Asked on the mailing list but no answer from Hans. (Well it did not come through)
    – Denis
    Nov 28, 2019 at 18:28
  • Ok. Hans's answer is there obviously. Don't know why I didn't see that answer... sorry for the noise
    – Denis
    Nov 28, 2019 at 18:31
  • 1
    @Aditya - Thank you! It took me a while and some searching through meta Latex, but I finally discovered how to make context an ignored tag (you hover over the tag). Nov 28, 2019 at 21:16

1 Answer 1

2

The problem is the \indentation statement which immediately forces the indentation box to be placed, but you only want the indentation when the paragraph is started, so instead 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
4
  • Thanks. Very helpful indeed. But were would I have to look to find that kind of information?
    – Denis
    Nov 29, 2019 at 9:46
  • @Denis You have to use ConTeXt for long enough to know about such tricks. I always learn new things by reading the mailing list. Nov 30, 2019 at 2:33
  • Ok. But there is nothing like \donoindentation. Right? @Henri Menke
    – Denis
    Nov 30, 2019 at 8:30
  • @Denis I think that's just \noindentation. Dec 1, 2019 at 23:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .