[NTG-context] setupthinrules

Thangalin thangalin at gmail.com
Thu Apr 16 04:21:02 CEST 2015


Hi,

>From http://wiki.contextgarden.net/Command/setupthinrules :

\define\BeforeCommand{Before}
\define\AfterCommand{After}
\define\BetweenCommand{Between}

\setupthinrules[
  before=\BeforeCommand,
  after=\AfterCommand,
  inbetween=\BetweenCommand,
  color=gray,
  height=1em,
]

\starttext
  \input knuth

  \thinrule

  \input knuth
\stoptext

This does not produce the expected output; it appears as though the
before/after/inbetween commands, as documented on the wiki, have no
behaviour.

Pandoc uses "thinrule" (probably because it spans the page by default)
when generating ConTeXt documents.

Using only thinrule, how would you go about making a "totally sweet"
(ornamental) horizontal rule, such as those shown at:
http://tex.stackexchange.com/a/76555/2148

Thank you!


More information about the ntg-context mailing list