ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thangalin <thangalin@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: setupthinrules
Date: Wed, 15 Apr 2015 19:21:02 -0700	[thread overview]
Message-ID: <CAANrE7pc4BPhAPdqp+gz0swkhHDm0OnHWffWWFS4+5gyS-zpyw@mail.gmail.com> (raw)

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!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2015-04-16  2:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-16  2:21 Thangalin [this message]
2015-04-16 15:04 ` setupthinrules Aditya Mahajan
2015-04-16 19:37   ` setupthinrules Thangalin
2015-04-16 20:10     ` setupthinrules Thangalin
2015-04-16 22:14     ` setupthinrules Aditya Mahajan
  -- strict thread matches above, loose matches on Subject: below --
2006-01-22 21:43 setupthinrules Hans van der Meer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAANrE7pc4BPhAPdqp+gz0swkhHDm0OnHWffWWFS4+5gyS-zpyw@mail.gmail.com \
    --to=thangalin@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).