From: Patrick Gundlach <pg@levana.de>
Subject: Re: Framed paragraph
Date: Wed, 09 Apr 2003 12:27:46 +0200 [thread overview]
Message-ID: <87brzgj78d.fsf@gundla.ch> (raw)
In-Reply-To: <uadf0591r.fsf@multiline.com.au> (Guy Worthington's message of "09 Apr 2003 17:12:16 +0800")
Guy Worthington <guyw@multiline.com.au> writes:
Hello Guy,
> I think I'm using the wrong tool. I want a description environment,
> slightly narrower than the main text, and separated from the main text
> by a hairlines.
I would use the textbackground feature:
\definedescription [Note]
[headstyle=\sc,
style=small,
width=fit,
distance=10pt,
hang=20,
before={\startnarrower\starttextbackground[NoteA]},
after={\stoptextbackground\stopnarrower}]
\definetextbackground[NoteA][frame=off,
topframe=on, % does not work...
location=paragraph]
[...]
How to get top and bottom frame only is left as an exercise to the
reader(*).
(*) Well, I gave up on this. Perhaps we should convince Hans to make
options for this like in \framed: frame=off,topframe=on as above...
I did not feel like hacking TeX *and* metapost.
Almost there:
\startuseMPgraphic{mpos:par:columnset}
path p;
for i := 1 upto nofmultipars :
p := multipars[i];
if multilocs[i] = 1 : % top
draw topboundary p;
elseif multilocs [i] = 3 : %bottom
draw bottomboundary p;
fi
endfor ;
\stopuseMPgraphic
(just copy this peace of code into your tex file and you'll see)
We desperately need the issplit boolean there! :)
Patrick
next prev parent reply other threads:[~2003-04-09 10:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-09 9:12 Guy Worthington
2003-04-09 10:27 ` Patrick Gundlach [this message]
2003-04-10 5:05 ` Guy Worthington
2003-04-10 10:09 ` Patrick Gundlach
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=87brzgj78d.fsf@gundla.ch \
--to=pg@levana.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).