Re: [NTG-context] Temporarily turning off hyphenation?
Gerben Wierda wrote:
\def\ClearChapterQuote{\def\ChapterQuote{}} \ClearChapterQuote \def\ChQuoteFormat#1{\starttext% \startalignment[left]% \startnarrower[4*left] \noindent{\nohyphens\em #1}% \stopnarrower\stopalignment\stoptext\blank} \setuphead[chapter] [page=left, before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines% \page[right]\blank[2*big]}, after={\ClearChapterQuote\blank[3*big]}% \noheaderandfooterlines]
You should definitely not have the \starttext / \stoptext pair in there. There should only be one of those in an entire run - they come at the start of your content and the end. The following, tested on Live, produces something which looks like it might be what you're after: -- \def\ClearChapterQuote{\def\ChapterQuote{}} \ClearChapterQuote \def\ChQuoteFormat#1{% \startalignment[{left,nothyphenated}]% \startnarrower[4*left]\em #1% \stopnarrower\stopalignment\blank} \setuphead[chapter] [page=left, before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines% \page[right]\blank[2*big]}, after={\ClearChapterQuote\blank[3*big]}% \noheaderandfooterlines] \starttext \def\ChapterQuote{Something quite long so that we can tell whether or not hyphenation has occurred, hopefully this will do.} \chapter{test} Some text \stoptext -- Duncan
Duncan Hothersall wrote:
You should definitely not have the \starttext / \stoptext pair in there. There should only be one of those in an entire run - they come at the start of your content and the end.
indeed; at the document level it does not hurt \starttext .... \starttext .... \stoptext .... \stoptext since nesting is handled (this permits to include docs that have their own start stop pair); but at the macro level or inside another structured element iit should be avoided Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (2)
-
Duncan Hothersall
-
Hans Hagen