ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Chapter numbers in the right margin
@ 2005-03-22  5:14 Randall Skelton
  2005-03-22  6:21 ` luigi.scarso
  0 siblings, 1 reply; 8+ messages in thread
From: Randall Skelton @ 2005-03-22  5:14 UTC (permalink / raw)


Hi all,

Does anyone have a setuphead snipit and definition to place a large
chapter number in the right margin of the page on the first page of
each chapter?  I believe this should be similar (but simplier) than
what is done in 'ConTeXt an Excursion' but I wasn't able to find a
definition for that.  I'd be quite willing to put this up on the wiki
when I figure it out...

What I have so far doesn't really lead to much flexibility in terms of
positioning.  I'd like to be able to set both the horizontal and
vertical position of the chapter number.  I'd also like to have the
number shift vertically downwards for each new chapter.

\def\MyChapterText#1{#1 
  \inright{ \switchtobodyfont[MyTitling, 72pt] \rm \headnumber[chapter] }
}

\setuphead
   [Topic, chapter]
   [textcommand=\MyChapterText,
    style={\switchtobodyfont[MyTitling, 16pt]\sc},
    color=black,
    number=no,
    page=right,
    continue=no,
    header=empty,
    before=\vbox to 4cm\bgroup,
    after=\vss\egroup]

Many thanks,
Randall

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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-22  5:14 Chapter numbers in the right margin Randall Skelton
2005-03-22  6:21 ` luigi.scarso
2005-03-22 15:50   ` Randall Skelton
2005-03-22 16:25     ` Vit Zyka
2005-03-22 16:58     ` luigi.scarso
2005-03-23 18:56     ` Hans Hagen
2005-03-23 19:15       ` luigi.scarso
2005-03-24  2:47         ` Randall Skelton

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