From: John Culleton <john@wexfordpress.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Hans Hagen <pragma@wxs.nl>
Subject: Re: Sidebars and versals Oh my!
Date: Mon, 27 Dec 2004 12:42:09 -0500 [thread overview]
Message-ID: <200412271242.09149.john@wexfordpress.com> (raw)
In-Reply-To: <20041227113358.13693@news.comp.lancs.ac.uk>
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.
3. If I specify frame=overlay then the text of the sidebar no longer overflows
the background but the sidebar text goes out to the very edge of the
background. Better to just add a hyphen to the single word. I may play
with "offset=" or with the TeX \tolerance parameter.
4. The sidebar in the original test example goes out almost to the very edge
of the paper. Printers don't like this :-) I will play with page layout
dimensions a bit to see if I can fix this.
Here is my current version:
----------------------------
\setupfloat [intermezzo]
[leftmargindistance=-\outercombitotal,
rightmargindistance=-\outercombitotal,
default=outer]
\setupcaption[intermezzo][location=none]
\setupcolors[state=start]
\starttext
\showframe
\input ward
\placeintermezzo{}
{\framedtext[width=7cm,frame=on,framecorner=round,frameradius=6pt,
%framecolor=gray,
background=screen,backgroundscreen=.7]{\tfx\input dawkins }}
\dorecurse{3}{\input knuth \par}
\stoptext
--------------------------
--
John Culleton
Short list of publishing/marketing books:
http://wexfordpress.com/tex/shortlist.pdf
next prev parent reply other threads:[~2004-12-27 17:42 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 [this message]
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 ` Sidebars and versals Oh my! Hans Hagen
2004-12-27 20:29 ` 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=200412271242.09149.john@wexfordpress.com \
--to=john@wexfordpress.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).