ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Two problems with my chapter quote setup
@ 2005-03-19 19:42 Gerben Wierda
  2005-03-19 20:09 ` Patrick Gundlach
  0 siblings, 1 reply; 12+ messages in thread
From: Gerben Wierda @ 2005-03-19 19:42 UTC (permalink / raw)


I've got this in my environment file:

\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\def\ChQuoteFormat#1{\starttext%
         \startalignment[left]%
         \startnarrower[4*left] \noindent{\hyphenpenalty 10000\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]

I've got two problems with this setup:

First, even with the \hyphenpenalty I get this line breaking:

For what can a man accomplish that has not been done
a million times before? What can he say that he will not
find in Lao-Tse or the Bhagavad-gita or the Prophet Isa-
iah?
John Steinbeck — Sweet Thursday

(Interestingly, when I copy/paste this from Apple's Preview.app I get

For what can a man accomplish that has not been done a million times 
before? What can he say that he will not find in Lao-Tse or the 
Bhagavad-gita or the Prophet Isaiah? John Steinbeck — Sweet Thursday)

no -, no line break, etc. Anyway: this line breaking is really ugly. I 
can fix this by hand, but I'd rather have this working automatically.

My second problem is that I get two empty numbered pages between 
chapters. As in
page 13: last text of chapter 1
page 14: empty page with page number
page 15: empty page with page number
page 16: page with quote and no page number
page 17: first page of chapter 2 no page number

I'd like to get rid of pages 14 and 15. I think I need to only do a 
page=left when I am on a right page at that time (page=even has the 
same result)

Thanks,

G

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-03-21  6:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-19 19:42 Two problems with my chapter quote setup Gerben Wierda
2005-03-19 20:09 ` Patrick Gundlach
2005-03-19 22:11   ` Gerben Wierda
2005-03-19 22:15     ` Patrick Gundlach
2005-03-19 22:29   ` Gerben Wierda
2005-03-19 22:51   ` Gerben Wierda
2005-03-19 23:19     ` Gerben Wierda
2005-03-20 17:05     ` Patrick Gundlach
2005-03-20 22:03       ` Gerben Wierda
2005-03-20 22:34         ` Peter Münster
2005-03-21  6:30           ` Gerben Wierda
2005-03-21  1:46         ` h h extern

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).