在 ConTeXt 中使用 \setupinterlinespace 来设置小字体

在 ConTeXt 中使用 \setupinterlinespace 来设置小字体

在 ConTeXt 中正确使用 \setupinterlinespace 的方法是什么?如您所见,该命令不适用于小字体。提前致谢。

\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

答案1

这个问题实际上并不是 ConTeXt 特有的。TeX 本身在应用诸如 之类的东西时会对整个段落进行操作\baselineskip。您必须在花括号内结束段落。您可以通过将 移到\blank括号内(并\blank在最后一个括号中添加 )来实现。

\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

相关内容