# 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}
[page=left,
\page[right]\blank[2*big]},
after={\ClearChapterQuote\blank[3*big]}%


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}
[page=left,
\page[right]\blank[2*big]},
after={\ClearChapterQuote\blank[3*big]}%
\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

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

• Re: [NTG-context] Temporarily turning off hyphenation? Duncan Hothersall