ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: \quotation
Date: Fri, 2 Nov 2007 11:09:23 +0100	[thread overview]
Message-ID: <115224fb0711020309v3dfed724w3f5f34caa76b29e3@mail.gmail.com> (raw)
In-Reply-To: <115224fb0711020301o1b0f9876p574fe1e17c021af8@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2524 bytes --]

2007/11/2, Wolfgang Schuster <schuster.wolfgang@googlemail.com>:
>
>
>
> 2007/11/1, Idris Samawi Hamid <ishamid@colostate.edu>:
> >
> > Dear gang,
> >
> > This has bugged me for years but I never said anything since the
> > workaround is so easy. OTOH I am working on something I'd like to share
> > with others and an official solution would be better:
> >
> > \starttext
> > \input knuth
> > \startquotation
> > \input knuth
> > \stopquotation
> > \input knuth
> > \stoptext
> >
> > I. \start-\stopquotation surrounds the block quote in double-quotes
> > marks.
> > I don't know about other European languages but in English this is
> > redundant; I've hardly ever seen block quotes use dbl-quote marks.
> >
> > We at least need a setup option to turn this off.
> >
> > II. There should be some default whitespace between the block quote and
> > the surrounding text, just as \start-stopitemize has. Or at least this
> > should be configurable in the setups.
> >
> > If these two are already there (not in the manual) then please let us
> > know
> > how to set this up. Otherwise could you add configuration options for
> > this?
> >
> > FYI: Here is what I use
> >
> > ===========
> > \definestartstop
> >    [quote]
> >    [before={\startnarrower[2*left,2*right]\blank[big]\noindenting},
> >      after={\stopnarrower\blank[big]}]
> > ===========
> >
> > Best wishes
> > Idris
>
>
> Hi Idris,
>
> there is no perfect solution in ConTeXt because the \quotation and the
> \start/stopquotation commands are defined with the same definition and it
> is
> not possible to disable the quote marks for the one and enable it for the
> other,
> but you can use ConTeXt's mechanism for nested quotations and redefine the
> other one.
>
> \setupdelimitedtext
>   [quotation]
>   [1]
>   [left={\symbol[leftquotation]},
>    right={\symbol[rightquotation]}]
>
> \setupdelimitedtext
>   [quotation]
>   [2]
>   [left={\symbol[leftquote]},
>    right={\symbol[rightquote]}]
>
> \setupdelimitedtext
>   [quote]
>   [location=margin, % paragraph
>    left=,
>    right=,
>    before={\blank[big]},
>    after={\blank[big]}]
>

This can also be written as

\setupdelimitedtext
  [quote]
  [location=margin, % paragraph
   left=,
   right=,
   spacebefore=big,
   %spaceafter=big, % spaceafter is spacebefore by default
  ]

\starttext
>
> \input knuth
>
> \quotation{I'm a quoteted text \quotation{within another quoteted text}
> and back.}
>
> \startquote
> \input knuth
> \stopquote
>
> \input knuth
>
> \stoptext
>
> Wolfgang
>
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 3600 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2007-11-02 10:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01 14:18 \quotation Idris Samawi Hamid
2007-11-02 10:01 ` \quotation Wolfgang Schuster
2007-11-02 10:09   ` Wolfgang Schuster [this message]
2007-11-03 16:25   ` \quotation Idris Samawi Hamid
2007-11-03 17:00     ` on block quotes Idris Samawi Hamid
2007-11-05 12:24       ` Wolfgang Schuster
2007-11-09  5:01         ` Idris Samawi Hamid
2007-11-13 21:48         ` Hans Hagen
2007-11-14  2:45           ` Idris Samawi Hamid
2007-11-14 19:02           ` Jesse Alama
2007-11-14 21:39             ` Idris Samawi Hamid
2007-11-14 22:36             ` Hans Hagen

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=115224fb0711020309v3dfed724w3f5f34caa76b29e3@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.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).