ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Quote before chapter?
@ 2005-03-10 15:34 Gerben Wierda
  2005-03-10 17:34 ` Janko Hauser
  0 siblings, 1 reply; 4+ messages in thread
From: Gerben Wierda @ 2005-03-10 15:34 UTC (permalink / raw)


I would like to have a right-aligned quote before the chapter header. I
use the following snippet in my environment file:

==================================
\newcommand{\chquote}[1]{\startalignment%
        \startnarrower[4*left] {#1} \stopnarrower\stopalignment}
==================================

But if I use that *before* the \chapter command it is *followed* and not
*preceded* by a page break.

So my question is: how do I program this in ConTeXt?

Thanks,

G

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

* Re: Quote before chapter?
  2005-03-10 15:34 Quote before chapter? Gerben Wierda
@ 2005-03-10 17:34 ` Janko Hauser
  2005-03-11  9:30   ` Gerben Wierda
  0 siblings, 1 reply; 4+ messages in thread
From: Janko Hauser @ 2005-03-10 17:34 UTC (permalink / raw)


Gerben Wierda schrieb:
> I would like to have a right-aligned quote before the chapter header. I
> use the following snippet in my environment file:
> 
> ==================================
> \newcommand{\chquote}[1]{\startalignment%
>         \startnarrower[4*left] {#1} \stopnarrower\stopalignment}
> ==================================
> 
> But if I use that *before* the \chapter command it is *followed* and not
> *preceded* by a page break.
> 
> So my question is: how do I program this in ConTeXt?
> 
Not a ConTeXt expert myself I can only give a hint how I would try it.
You can define your own chapter, in the definition there are parameters
for before and after. Perhaps it is possible to give the chapter an
additional argument.
Or you can define, that chapters do not do a pagebreak and handle the
pagebreak in your function.

HTH,
__Janko

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

* Re: Quote before chapter?
  2005-03-10 17:34 ` Janko Hauser
@ 2005-03-11  9:30   ` Gerben Wierda
  2005-03-11 17:18     ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Gerben Wierda @ 2005-03-11  9:30 UTC (permalink / raw)


On 10 Mar 2005, at 18:34, Janko Hauser wrote:

> Gerben Wierda schrieb:
>> I would like to have a right-aligned quote before the chapter header. 
>> I
>> use the following snippet in my environment file:
>>
>> ==================================
>> \newcommand{\chquote}[1]{\startalignment%
>>         \startnarrower[4*left] {#1} \stopnarrower\stopalignment}
>> ==================================
>>
>> But if I use that *before* the \chapter command it is *followed* and 
>> not
>> *preceded* by a page break.
>>
>> So my question is: how do I program this in ConTeXt?
>>
> Not a ConTeXt expert myself I can only give a hint how I would try it.
> You can define your own chapter, in the definition there are parameters
> for before and after. Perhaps it is possible to give the chapter an
> additional argument.
> Or you can define, that chapters do not do a pagebreak and handle the
> pagebreak in your function.

Those are of course all fine generic strategies which had come to my 
mind. My question is more of a technical nature. After reading the docs 
on these commands I do not how.

I can make it more difficult even. I would like a chapter to start on 
an odd (right side) page but when there is a quote that comes with the 
chapter I want to have that appear on the opposing side.

G

>
> HTH,
> __Janko
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

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

* Re: Quote before chapter?
  2005-03-11  9:30   ` Gerben Wierda
@ 2005-03-11 17:18     ` Henning Hraban Ramm
  0 siblings, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2005-03-11 17:18 UTC (permalink / raw)


Am 11.03.2005 um 10:30 schrieb Gerben Wierda:
> Those are of course all fine generic strategies which had come to my 
> mind. My question is more of a technical nature. After reading the 
> docs on these commands I do not how.
>
> I can make it more difficult even. I would like a chapter to start on 
> an odd (right side) page but when there is a quote that comes with the 
> chapter I want to have that appear on the opposing side.

Perhaps my two book styles in the wiki are a help:
http://contextgarden.net/Ubuch_style
http://contextgarden.net/Uno_style

The first is rather old(fashioned), but it shows how to use an own 
command for a chapter (i.e. a part in this case).


Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net

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

end of thread, other threads:[~2005-03-11 17:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-10 15:34 Quote before chapter? Gerben Wierda
2005-03-10 17:34 ` Janko Hauser
2005-03-11  9:30   ` Gerben Wierda
2005-03-11 17:18     ` Henning Hraban Ramm

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