From: "John R. Culleton" <john@wexfordpress.com>
Subject: Back to sidebars.
Date: Mon, 5 Dec 2005 11:28:57 -0500 [thread overview]
Message-ID: <200512051128.58177.john@wexfordpress.com> (raw)
Some time back (maybe three years ago) Hans showed me a way to
create a sidebar, with optional background and hanging out half
way into the margin. Now I would like to encapsulate the commands
into a simple \start \stop sequence. But I don't know how to do
it.
Hans started off with some definitions:
\setupfloat
[intermezzo]
[leftmargindistance=-\outercombitotal,
rightmargindistance=-\outercombitotal,
default={outer,high}]
\setupcaption[intermezzo][location=none]
\defineframedtext
[myohmy]
[width=6cm,bodyfont=small,
frame=off,
backgroundcorner=round,
backgroundradius=16pt,background=screen,backgroundscreen=.7]
Then he called these two definitions with a sequence like:
(some text)
\placeintermezzo{}{\startmyohmy\input dawkins \relax\stopmyohmy}
(some text)
What I would like to do is boil down the last mentioned command
sequence into
\startsidebar
(some text)
\stopsidebar
But I am stumped by the task. If there were a \startintermezzo
and \stopintermezzo pairing then the task would be simpler.
John Culleton
next reply other threads:[~2005-12-05 16:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-05 16:28 John R. Culleton [this message]
2005-12-05 19:57 ` John R. Culleton
2005-12-06 9:24 ` Taco Hoekwater
2005-12-06 17:40 ` Willi Egger
2005-12-06 18:14 ` Taco Hoekwater
2005-12-06 20:55 ` Willi Egger
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=200512051128.58177.john@wexfordpress.com \
--to=john@wexfordpress.com \
--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).