[NTG-context] Bug with \quotation ?
Taco Hoekwater
taco at elvenkind.com
Sun Dec 3 15:03:07 CET 2006
Thomas A. Schmitz wrote:
> Hi all,
>
> there seems to be a bug with the \quotation command: ConTeXt doesn't
> break the line after the closing quotes it generates. Here's a small
> test file showing the problem (hope the utf-encoding makes it through
> the mail):
...
>
> I tried reading core-mis.tex, but wasn't able to find where this
> behavior comes from.
This is tricky: at the end of the quoted material, the sequence is
<rightquotationsymbol>
\penalty10000
\hskip\delimitedtextsignal
<a space>
<S>
And that sequence does not actually allow a line break (thanks to the
\penalty10000). A number of low-level hacks is possible, but I am not
sure which one is best.
Something like this redefinition works (the penalty is new):
\definedelimitedtext
[quotation]
[left={\symbol[leftquotation]},
right={\symbol[rightquotation]\penalty0 },
leftmargin=standard]
Best, Taco
More information about the ntg-context
mailing list