From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Quotations
Date: Fri, 31 Mar 2006 18:38:25 +0200 [thread overview]
Message-ID: <442D5B01.2080608@wxs.nl> (raw)
In-Reply-To: <6D574246-B864-418B-9325-A7CC78FE8A5C@rna.nl>
Gerben Wierda wrote:
> I use \startquotation and \stopquotation a lot. I would like to
> visually strengthen the quotations because some are pretty lengthy
> and a reader might forget that it is not me that is writing here. I
> have been thinking about applying a light grey background or a border
> of sorts (which should then be open at the top of bottom if the
> quotation flows over a page boundary. Can someone tell me how to do
> this?
>
the following example (maybe one of the happy gwtex users can wikify it for you) shows the principles
- cross page backgrounds
- dedicated background graphics that adapt
- a bit of tuning of margins
\starttext
\setupcolors[state=start]
\defineblank[myquotation][3*medium]
\definetextbackground
[myquotation]
[state=start,
location=paragraph,
% before={\blank[myquotation]\startnarrower},
% after={\stopnarrower\blank[myquotation]},
before={\blank[myquotation]},
after={\blank[myquotation]},
mp=mpos:par:poem]
\startuseMPgraphic{mpos:par:poem}
for i = 1 upto nofmultipars :
multipars[i] := multipars[i]
enlarged .5ExHeight
rightenlarged -.5ExHeight;
drawoptions (
dashed evenly
withpen pencircle scaled 1.5pt
) ;
fill multipars[i] withcolor .8white ;
if multilocs[i] = 1 :
draw
llcorner multipars[i] --
ulcorner multipars[i] --
urcorner multipars[i] --
lrcorner multipars[i]
withcolor .5red ;
elseif multilocs[i] = 3 :
draw
ulcorner multipars[i] --
llcorner multipars[i] --
lrcorner multipars[i] --
urcorner multipars[i]
withcolor .5red ;
else :
draw leftboundary multipars[i] withcolor .5red ;
draw rightboundary multipars[i] withcolor .5red ;
fi ;
endfor ;
\stopuseMPgraphic
\setupdelimitedtext
[quotation]
[leftmargin=.5em,
rightmargin=.5em,
before={\starttextbackground[myquotation]},
after=\stoptextbackground]
\starttext
\input tufte
\startquotation
\dorecurse{10}{\input zapf }
\stopquotation
\input davis
\stoptext
\unprotect
\def\geneq
{\begingroup
\setbox\scratchbox\hbox{$=$}%
\hbox to \wd\scratchbox
{\copy\scratchbox
\hskip-\wd\scratchbox
\hss\incolortrue\localcolortrue\color[white]{\vrule height .6\ht\scratchbox depth 0pt width .1ex}\hss}%
\endgroup}
\geneq
\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:[~2006-03-31 16:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-31 14:06 Quotations Gerben Wierda
2006-03-31 16:38 ` Hans Hagen [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-11-15 13:41 Quotations Willi Egger
2002-12-01 0:08 quotations Hans Hagen
2002-12-01 0:42 ` quotations Bruce D'Arcus
2002-12-02 11:44 ` quotations Hans Hagen
2002-12-02 14:04 ` quotations Bruce D'Arcus
2002-12-02 14:45 ` quotations Hans Hagen
2002-12-02 0:03 ` quotations Bruce D'Arcus
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=442D5B01.2080608@wxs.nl \
--to=pragma@wxs.nl \
--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).