From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: textrules
Date: Sat, 21 Oct 2006 10:47:15 +0200 [thread overview]
Message-ID: <9E6BD512-7FBA-40D5-A68A-8F62807EDA9C@uni-bonn.de> (raw)
In-Reply-To: <Pine.WNT.4.63.0610191910560.2144@nqvgln>
On Oct 20, 2006, at 1:32 AM, Aditya Mahajan wrote:
> \textrule[top] does
>
> before
> ----------- (rule)
> inbetween
>
> \textrule[bottom] does
>
> inbetween
> ----------
> after
>
> \textrule with no argumet is equal to \textrule[bottom]
>
> There is a \domiddletextrule that does
>
> inbetween
> ------------
> inbetween
>
> but this is not interfaced with \textrule. It only becomes active
> inside a \starttextrule.
>
> \starttextrule{whatever}
> \input knuth
> \textrule
> \input knuth
> \stoptextrule
>
>
> To use this, you can define your own rule as
>
> \def\midtextrule{\dosinglegroupempty\domiddletextrule}
>
> \setuptextrules[inbetween={\blank[big]}]
>
> And midtextrule will use inbetween on both side.
>
> Hans, does it make sense to add this to core-rul?
>
> \def\complextextrule[#1]%
> {\processaction
> [#1]
> [ \v!top=>\let\next\dotoptextrule,
> \v!bottom=>\let\next\dobottomtextrule,
> middle=>\let\next\domiddletextrule, %<------- Added
> \s!default=>\let\next\dobottomtextrule,
> \s!unknown=>\let\next\dobottomtextrule]%
> \dosinglegroupempty\next}
>
>
> Aditya
Aditya,
thanks for this in-depth explanation! One mystery solved! I have now
tweaked my output so it looks the way it should.
Best
Thomas
prev parent reply other threads:[~2006-10-21 8:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-19 12:37 textrules Thomas A. Schmitz
2006-10-19 15:04 ` textrules Peter Rolf
2006-10-19 17:43 ` textrules Thomas A. Schmitz
2006-10-19 23:32 ` textrules Aditya Mahajan
2006-10-20 7:40 ` textrules Hans Hagen
2006-10-21 8:47 ` Thomas A. Schmitz [this message]
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=9E6BD512-7FBA-40D5-A68A-8F62807EDA9C@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.de \
--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).