ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Simple problem with quotation paragraph
Date: Thu, 4 May 2006 13:34:07 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0605041328370.1240@nqvgln> (raw)
In-Reply-To: <21245.159.46.248.233.1146737316.squirrel@mail.rna.nl>

On Thu, 4 May 2006, Gerben Wierda wrote:

> I am having a simple problem I can't solve by reading the manuals.
>
> I want to quote a fragment of a book which contains amongst others a
> discussion (Plato's Protagoras to be precise). Normally, my book has no
> whitespace between paragraphs and small indentation, but here I want a
> small amount of whitespace between paragraphs and also narrower. I'd like
> to setup some form of quotation paragraph style to use. I started out with
> \startquotation but I do not want quotes, so now I use startnarrower, but
> what I need is a paragraph style. Maybe another font (1pt smaller) is nice
> too. And noindenting while the rest of the book uses indenting.
>
> What I would like to do is something like
>
> \startBookQuote
> \stopBookQuote
>
> and on the inside I get a small whitespace between paragraphs, no
> indentation, a smaller font and a narrower textwidth.
>
> My last try was:
>
> \defineparagraphs[BookQuote][n=1,before={\indenting[never]\whitespace\startnarrower},after={\indenting[yes]\nowhitespace\stopnarrower}]

\startstop narrower form a group, so \indenting[yes] and \nowhitespace 
have no effect. You should change the order of those with stopnarrow.

> in my environment file, but that gave me page breaks as soon as
> \startBookQuote was given and the quotes themselves do not receive page
> breaks, hence a quote more than one page (I have a few) ends up being a
> column of one page but just running from the page.
>
> So, it seems \defineparagraphs is out, because I do not get page breaks
> inside the quote. But what should I do?

Does this work?

\definestartstop
   [BookQuote]
   [before={\startnarrower\whitespace\setupindenting[no]\tfx},
    after={\stopnarrower}]

I am using \tfx for a smaller font, but you can define your own for 
getting something 1pt smaller.


Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008

  parent reply	other threads:[~2006-05-04 17:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-04 10:08 Gerben Wierda
2006-05-04 11:27 ` ConTeXt frustrations (was: simple problem) Gerben Wierda
2006-05-04 17:34 ` Aditya Mahajan [this message]
2006-05-04 18:04 ` Simple problem with quotation paragraph Peter Rolf

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=Pine.WNT.4.63.0605041328370.1240@nqvgln \
    --to=adityam@umich.edu \
    --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).