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