From: Giuseppe Bilotta <gip.bilotta@iol.it>
Subject: Re[4]: Backgrounds
Date: Tue, 25 Mar 2003 15:36:23 +0100 [thread overview]
Message-ID: <9619582618.20030325153623@iol.it> (raw)
In-Reply-To: <5.1.0.14.1.20030325131938.01d9af40@server-1>
Tuesday, March 25, 2003 Hans Hagen wrote:
>>The problem is still that I cannot separate the behaviour at the
>>end of the background from the behaviour at a split. What I'm
>>looking for is something like this:
HH> guess what, this time your demands for features are fulfilled on forehand!
HH> there is an array available
HH> multilocs[...]
HH> 1 = top
HH> 2 = mid
HH> 3 = bottom
HH> shape; this is how i could handle the example in details with different
HH> shades per kind of frame
Almost perfect! Only a few things need refining:
(1) "top" is also used when there is no split; it should be
possible to detect the "no-split" situation (multilocs=0?)
(2) I still need a to find a way to make only certain corners
rounded, but I guess that's just a matter of MetaPosting a little.
Up to now, I came up with the following:
\starttext
\setupcolors[state=start]
\definetextbackground[gb][state=start]
\startuseMPgraphic{mpos:par:columnset}
path p, q;
for i := 1 upto nofmultipars :
p := counterclockwise simplified multipars[i] leftenlarged 5pt rightenlarged 5pt ;
if multilocs[i] = 1 :
q := p topenlarged 5pt ;
fill q withcolor green ;
draw topboundary q withcolor red ;
draw leftboundary q withcolor red ;
draw rightboundary q withcolor red ;
elseif multilocs[i] = 2 :
q := p ;
fill q withcolor green ;
draw leftboundary q withcolor red ;
draw rightboundary q withcolor red ;
else:
q := p bottomenlarged 5pt;
fill q withcolor green ;
draw bottomboundary q withcolor red ;
draw leftboundary q withcolor red ;
draw rightboundary q withcolor red ;
fi
endfor ;
\stopuseMPgraphic
\starttextbackground[gb]
\input tufte
\stoptextbackground
\blank[2*big]
\starttextbackground[gb]
\dorecurse{10}{\input tufte \par}
\stoptextbackground
\blank \input tufte
\stoptext
As you can see, the first background doesn't split and behaves
like multilocs=1, while one would wish it to behave differently.
--
Giuseppe "Oblomov" Bilotta
next prev parent reply other threads:[~2003-03-25 14:36 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-25 8:46 Re[2]: Backgrounds Hans Hagen
2003-03-25 10:43 ` Re[3]: Backgrounds Giuseppe Bilotta
2003-03-25 12:25 ` Hans Hagen
2003-03-25 14:36 ` Giuseppe Bilotta [this message]
2003-03-25 15:18 ` Re[4]: Backgrounds Hans Hagen
2003-03-25 17:00 ` Re[5]: Backgrounds Giuseppe Bilotta
2003-04-09 14:52 ` Backgrounds Patrick Gundlach
2003-04-09 16:57 ` Re[2]: Backgrounds Giuseppe Bilotta
2003-04-10 9:50 ` Backgrounds Patrick Gundlach
2003-04-10 11:43 ` Re[2]: Backgrounds Giuseppe Bilotta
2003-04-18 14:33 ` Backgrounds Johannes Hüsing
2003-04-18 14:36 ` Re[2]: Backgrounds Giuseppe Bilotta
2003-04-19 13:35 ` Backgrounds Patrick Gundlach
2003-04-10 20:00 ` Re[2]: Backgrounds Hans Hagen
2003-04-11 13:35 ` Re[3]: Backgrounds Giuseppe Bilotta
2003-04-11 16:02 ` Hans Hagen
2003-04-11 16:21 ` Backgrounds Patrick Gundlach
2003-04-11 17:15 ` Re[4]: Backgrounds Giuseppe Bilotta
2003-04-11 17:40 ` Re[3]: Backgrounds John Culleton
2003-04-13 23:06 ` supp-emp.tex \EMlinewd Hartmut Henkel
2003-04-14 6:48 ` Hans Hagen
2003-04-18 14:41 ` Re[4]: Backgrounds Giuseppe Bilotta
2003-04-19 10:42 ` Hans Hagen
2003-04-19 12:10 ` Re[5]: Backgrounds Giuseppe Bilotta
2003-04-21 11:13 ` Hans Hagen
2003-04-21 18:33 ` Re[6]: Backgrounds Giuseppe Bilotta
2003-03-25 18:00 ` Error: /undefined in NP scarso luigi
2003-03-26 12:55 ` scarso luigi
2003-03-26 14:04 ` Jens-Uwe Morawski
2003-03-28 7:41 ` scarso luigi
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=9619582618.20030325153623@iol.it \
--to=gip.bilotta@iol.it \
--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).