1

What is the correct way to use \setupinterlinespace in ConTeXt?. As you can see, the command doesn't works for small fonts. Thanks in advance.

\starttext
{%
\tf
\setupinterlinespace
This is the long long title of my book\crlf
baselineskip=\the\baselineskip\crlf
}
\blank
{%
\tfa
\setupinterlinespace
This is the long long title of my book\crlf
baselineskip=\the\baselineskip\crlf
}
\blank
{%
\tfb
\setupinterlinespace
This is the long long title of my book\crlf
baselineskip=\the\baselineskip\crlf
}
\blank
{%
\tfc
\setupinterlinespace
This is the long long title of my book\crlf
baselineskip=\the\baselineskip\crlf
}
\blank
{%
\tfd
\setupinterlinespace
This is the long long title of my book\crlf
baselineskip=\the\baselineskip\crlf
}
\blank
{%
\tfxx
\setupinterlinespace
This is the long long title of my book\crlf
baselineskip=\the\baselineskip
}
\stoptext
3
  • Just a guess: Use \par instead of \crlf. I don't know the underlying principles, but \crlf might force a line break by inserting a large negative penalty, whereas TeX needs a whole paragraph (delimited by \par or empty line) to apply things like \baselineskip. Commented Jul 27, 2016 at 22:53
  • You need to end a paragraph (either by two empty lines or by adding \par or \endgraf) for line space correction to kick in.
    – Aditya
    Commented Jul 28, 2016 at 4:00
  • What can I see? This looks completely fine to me? Please elaborate on your issue.
    – xeruf
    Commented Feb 4, 2022 at 8:44

1 Answer 1

2

This problem is not really ConTeXt-specific. TeX itself operates on whole paragraphs when applying things like \baselineskip. You have to end the paragraph within the curly braces. You can do so by moving the \blank inside the braces (and add a \blank in the last one).

\starttext
{%
  \tf
  \setupinterlinespace
  This is the long long title of my book\crlf
  baselineskip=\the\baselineskip\crlf
  \blank
}
{%
  \tfa
  \setupinterlinespace
  This is the long long title of my book\crlf
  baselineskip=\the\baselineskip\crlf
  \blank
}
{%
  \tfb
  \setupinterlinespace
  This is the long long title of my book\crlf
  baselineskip=\the\baselineskip\crlf
  \blank
}
{%
  \tfc
  \setupinterlinespace
  This is the long long title of my book\crlf
  baselineskip=\the\baselineskip\crlf
  \blank
}
{%
  \tfd
  \setupinterlinespace
  This is the long long title of my book\crlf
  baselineskip=\the\baselineskip\crlf
  \blank
}
{%
  \tfxx
  \setupinterlinespace
  This is the long long title of my book\crlf
  baselineskip=\the\baselineskip
  \blank
}
\stoptext

You must log in to answer this question.

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