ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Framed + Textrule
@ 2001-02-13 15:19 Giuseppe Bilotta
  2001-02-14  1:23 ` Uwe Koloska
  0 siblings, 1 reply; 4+ messages in thread
From: Giuseppe Bilotta @ 2001-02-13 15:19 UTC (permalink / raw)


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  |
+--------------------------------+

Giuseppe Bilotta

Using Microsoft products is like 
having sex without condoms---but
much less pleasurable


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Framed + Textrule
  2001-02-13 15:19 Framed + Textrule Giuseppe Bilotta
@ 2001-02-14  1:23 ` Uwe Koloska
  2001-02-14 14:41   ` Giuseppe Bilotta
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Koloska @ 2001-02-14  1:23 UTC (permalink / raw)


You wrote on Dienstag, 13. Februar 2001 16:19:
>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  |
>
>+--------------------------------+

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 ...

Uwe

-- 
mailto:koloska@rcs.urz.tu-dresden.de
http://rcswww.urz.tu-dresden.de/~koloska/
--                                    --
right now the web page is in german only
but this will change as time goes by ;-)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Framed + Textrule
  2001-02-14  1:23 ` Uwe Koloska
@ 2001-02-14 14:41   ` Giuseppe Bilotta
  2001-02-15  8:37     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Giuseppe Bilotta @ 2001-02-14 14:41 UTC (permalink / raw)


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
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).

Giuseppe Bilotta

Using Microsoft products is like 
having sex without condoms---but
much less pleasurable


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Framed + Textrule
  2001-02-14 14:41   ` Giuseppe Bilotta
@ 2001-02-15  8:37     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2001-02-15  8:37 UTC (permalink / raw)
  Cc: ConTeXt

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
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-02-15  8:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-13 15:19 Framed + Textrule Giuseppe Bilotta
2001-02-14  1:23 ` Uwe Koloska
2001-02-14 14:41   ` Giuseppe Bilotta
2001-02-15  8:37     ` Hans Hagen

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).