From: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Adam Lindsay <atl@comp.lancs.ac.uk>
Subject: Re: Sidebars and versals Oh my!
Date: Mon, 27 Dec 2004 20:29:18 +0100 [thread overview]
Message-ID: <41D0628E.2090504@wxs.nl> (raw)
In-Reply-To: <200412271242.09149.john@wexfordpress.com>
John Culleton wrote:
> On Monday 27 December 2004 06:33, Adam Lindsay wrote:
>
>
>>plus-rul is interesting, but I'm 98% certain that when John talks about
>>sidebars, he means what you call intermezzos. My interpretation, using
>>the things I do know (or figured out this morning):
>>
>>\setupfloat [intermezzo]
>> [leftmargindistance=-\outercombitotal,
>> rightmargindistance=-\outercombitotal,
>> default=outer]
>>\setupcaption[intermezzo][location=none]
>>\starttext
>>\showframe
>>\input ward
>>\placeintermezzo{}{\framedtext[width=7cm]{\tfx\input dawkins }}
>>\dorecurse{3}{\input knuth \par}
>>\stoptext
>>
>>What I don't know, however, is: 1) how to force a width on flowed text
>>within a float without resorting to the internal \framedtext, or 2) how
>>to use this with \splitfloat, which is what I suspect people who think
>>about sidebars (intermezzo texts) are going to be worried about in a
>>batch-based system.
>
>
> For my applications I don't need a lengthy sidebar that will overflow to
> another page.
>
> I ran Adam's code as is and noted with interest the results. Then I added the
> gray background, rounded corners etc. Some things are still problems.
>
> 1. Two words in the main text (both "influenced") actually intrude into the
> sidebar.
>
> 1a. One word in the sidebar ("influencing") overflows the dimensions of the
> background. (but see 3 below.)
>
> 2. If I specify a background screen and a frame with rounded corners the
> background remains rectangular and does not round to match the frame.
\starttext
\setupcolors[state=start]
\framed[corner=round,background=color,backgroundcolor=red]{HELLO}
\framed[corner=round,background=screen,backgroundscreen=.6]{HELLO}
\setupfloat
[intermezzo]
[leftmargindistance=-\outercombitotal,
rightmargindistance=-\outercombitotal,
default=outer]
\setupcaption[intermezzo][location=none]
\defineframedtext
[myohmy]
[width=7cm,bodyfont=small,corner=round,background=screen,backgroundscreen=.6]
\showframe
\input ward
\placeintermezzo{}{\startmyohmy \input dawkins \relax\stopmyohmy}
\dorecurse{3}{\input knuth \par}
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~2004-12-27 19:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-24 16:15 John Culleton
2004-12-26 20:33 ` h h extern
2004-12-27 11:33 ` Adam Lindsay
2004-12-27 15:10 ` John Culleton
2004-12-27 17:08 ` Adam Lindsay
2004-12-27 17:42 ` John Culleton
2004-12-27 19:15 ` if I only had a frame (was: Re: Sidebars and versals Oh my!) Adam Lindsay
2004-12-27 19:24 ` if I only had a frame Hans Hagen
2004-12-27 19:40 ` Adam Lindsay
2004-12-27 19:46 ` Hans Hagen
2004-12-27 19:25 ` Hans Hagen
2004-12-27 19:29 ` Hans Hagen [this message]
2004-12-27 20:29 ` Sidebars and versals Oh my! John Culleton
2004-12-27 20:56 ` Adam Lindsay
2004-12-27 21:19 ` Hans Hagen
2004-12-27 21:31 ` Adam Lindsay
2004-12-29 22:05 ` Tobias Hilbricht
2004-12-30 9:32 ` Hans Hagen
2005-01-03 9:22 ` Tobias Hilbricht
2005-01-03 10:06 ` Hans Hagen
2005-01-03 10:39 ` Tobias Hilbricht
2005-01-03 12:32 ` Hans Hagen
2005-01-03 13:54 ` Tobias Hilbricht
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=41D0628E.2090504@wxs.nl \
--to=pragma@wxs.nl \
--cc=atl@comp.lancs.ac.uk \
--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).