1

How can I place the \hrule beneath the title in grid mode the same as in grid mode off? Why is the \hrule more greyish in grid mode?

Grid off:

\setuplayout[grid=off]
\setuphead[title][after=\hrule, page=no]

\starttext
\starttitle[title={Title}]
Lorem ipsum
\stoptitle
\stoptext

enter image description here

Grid on:

enter image description here

2
  • 1
    So you effectively want an out-of-grid element after the section title?
    – TeXnician
    Mar 5, 2018 at 15:54
  • The greyish rule is very likely a rendering issue. Does it persist when you print the page? Mar 5, 2018 at 20:43

1 Answer 1

2

I'm not sure what you are asking. Is this what you are looking for?

\setuplayout[grid=on]

\define[1]\RuledTitle{#1\hrule}

\setuphead
  [title]
  [textcommand=\RuledTitle,
   page=no]

\showgrid
\starttext

\starttitle[title={Title}]
  Lorem ipsum
\stoptitle

\stoptext

enter image description here

You must log in to answer this question.

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