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

  • 1
    So you effectively want an out-of-grid element after the section title? – TeXnician Mar 5 '18 at 15:54
  • The greyish rule is very likely a rendering issue. Does it persist when you print the page? – Henri Menke Mar 5 '18 at 20:43
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.