ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Repost: Two problems with my chapter quote setup (Modified by Gerben Wierda)
@ 2005-03-19 19:42 Gerben Wierda
  2005-03-19 22:22 ` Henning Hraban Ramm
  2005-03-21  2:13 ` h h extern
  0 siblings, 2 replies; 4+ messages in thread
From: Gerben Wierda @ 2005-03-19 19:42 UTC (permalink / raw)


I forgot one part at the end. Here it is again.

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)

I even tried:

\setuphead[chapter]
         [page=disable,
          
before={\page[even]\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
                 \page[right]\blank[2*big]},
         after={\ClearChapterQuote\blank[3*big]}%
                 \noheaderandfooterlines]

Thanks,

G

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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-19 19:42 Repost: Two problems with my chapter quote setup (Modified by Gerben Wierda) Gerben Wierda
2005-03-19 22:22 ` Henning Hraban Ramm
2005-03-19 23:27   ` Gerben Wierda
2005-03-21  2:13 ` 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).