At 03:14 PM 10/11/2001 +1300, Adam Warner wrote:

>Try out this source for the quotation of an external text that has
>bullet points:

[how about \startnarrower \switchtobodyfont[small] .... \stopnarrower]

>\starttext
>
>\startquotation
>\startitemize
>\item Line 1
>\item Line 2
>\stopitemize
>\stopquotation
>
>\stoptext
>
>
>The output is bad and looks like this:
>
>    "
>
>    o  Line 1
>
>    o  Line 2
>"

this is because start-stop quotation adds blanks


>I suggest it should look like this:
>
>    "o Line 1
>
>     o Line 2"
>
>
>There would be two ways I could overcome this:
>
>(1) Stop using quotation marks in all quotations. Is there a
>\startquotation[?] switch to turn them off? Or is there a separate
>command that right and left indents without quotation marks? [if not I'm
>sure I could define one]
>
>(2) Stop itemize starting and finishing with new lines. There are a lot
>of switches. I've tried [packed,joinedup] without success.

\starttext

% this is the dangerous way, since grouping may be screwed up

\setupquote[before=,after=]

\startitemize
\item \startquotation Line 1
\item Line 2\stopquotation
\stopitemize

% for this you need the patch below

\startitemize
\item \leftquotation Line 1
\item Line 2\rightquotation
\stopitemize

\startitemize
\item \leftquotationmark Line 1
\item Line 2\rightquotationmark
\stopitemize

\stoptext



================ patch => cont-new.tex after \unprotect ===================

\def\leftquotation {\getvalue{\??la\currentlanguage\c!leftquotation }}
\def\rightquotation{\getvalue{\??la\currentlanguage\c!rightquotation}}

\def\leftquote     {\getvalue{\??la\currentlanguage\c!leftquote }}
\def\rightquote    {\getvalue{\??la\currentlanguage\c!rightquote}}

\def\leftquotationmark%
   {\setbox\scratchbox=\hbox{\leftquotation}%
    \doif{\@@ciplaats}{\v!marge}{\hskip-\wd\scratchbox}%
    \box\scratchbox}

\def\rightquotationmark%
   {\hsmash{\rightquotation}}

\stelciterenin
   [\c!plaats=\v!marge,
    \c!letter=\v!normaal,
    \c!kleur=,
    \c!voor=\startsmaller,
    \c!na=\stopsmaller]



-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------

Reply via email to