From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4082 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Framed + Textrule Date: Thu, 15 Feb 2001 09:37:52 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010215093752.0163db10@server-1> References: <002801c0960f$f51a6f00$a3ccfea9@nuovo> <01021402231309.00556@bilbo> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394772 22718 80.91.224.250 (23 Oct 2002 17:39:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:39:32 +0000 (UTC) Cc: "ConTeXt" Original-To: "Giuseppe Bilotta" In-Reply-To: <009f01c096d2$0c1d01a0$a3ccfea9@nuovo> Xref: main.gmane.org gmane.comp.tex.context:4082 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4082 At 03:41 PM 2/14/01 +0100, Giuseppe Bilotta wrote: >I wrote: > >> >Hello, is there a way to combine framing and textrule? >> > >> >The effect I would like to obtain is something of the sort: >> >[fixed width chars to see it properly] >> > >> >+---- A title text --------------+ >> > >> >| Text text text text text text | >> >| text text text text text text | >> >| text text text text text text | >> >| text text text text text text | >> > >> >+--------------------------------+ > >Uwe Koloska wrote: >> >> Just have a look at the metafun manual p. 196 (screen). You only have to >> delete the frame around "A title text" (or "Zapf (1)" in the manual) >> >> Maybe it's possible without context by tricking with overlay ... >> > >Well, that's surely a workaround, and it would also allow funnier >frames (ovals, etc) with text. But I was hoping for a ConTeXt-only You can do this with just frames, that is: \def\LessBeautiful% {\startoverlay {\framed [corner=round, width=\overlaywidth, height=\overlayheight] {}} {\vbox to \overlayheight {\vskip-\ht\strutbox \hbox to \overlaywidth {\hskip3em \framed [corner=round, background=color, backgroundcolor=white] {\LessBeautifulString} \hss} \vfill}} \stopoverlay} \setupcolors[state=start] \defineoverlay[LessBeautiful][\LessBeautiful] \def\LessBeautifulString{Whow} \startframedtext[background=LessBeautiful,frame=off] \input tufte \stopframedtext But mp graphics are of course better. >solution, without pulling in metafun (it slows down compilation >a lot, you know, and if it's not strictly necessary I would >prefer to go without). The slow down depends on what you do, if you reuse graphics, the trade off is not that high. For this kind of docs, you can also run texexec with --nomprun and process the graphics afterwards. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------