如何在 ConTeXt \setuphead 中添加下划线

如何在 ConTeXt \setuphead 中添加下划线

我目前正在使用:

\setuphead[section]      [style=\tfb\bf, color=titlegrey, align=right]

如何修改它以包含下划线(或下划线)?

答案1

也许是这样的?

\setuphead
  [section]
  [style=\tfb\bf,
   deeptextcommand=\underbar,
   color=titlegrey,
   align=right]

\definehead
  [mysection]
  [section]
  [deeptextcommand=\underbars]


\starttext
\section[title={This is supposed to be underlined, and it is. Or is it?}]

\samplefile{ward}

\mysection[title={This is supposed to be underlined, and it is. Or is it?}]

\samplefile{ward}

\stoptext

带下划线的图形

相关内容