ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "luigi.scarso" <luigi.scarso@logosrl.it>
Subject: Re: Chapter numbers in the right margin
Date: Tue, 22 Mar 2005 07:21:29 +0100	[thread overview]
Message-ID: <423FB969.7050209@logosrl.it> (raw)
In-Reply-To: <ba4316d305032121148a21a0@mail.gmail.com>

Randall Skelton wrote:

>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
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>  
>
 From cont-eni.pdf, chapter Text elements:

\setuphead[...][..,..=..,..]
:
command    \command#1#2
numbercommand    \command#1
textcommand    \command#1
:

Use textcommand only for text, numbercommand only for number,
command for both;
you can see some examples in section    Variations in titles .

  reply	other threads:[~2005-03-22  6:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-22  5:14 Randall Skelton
2005-03-22  6:21 ` luigi.scarso [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=423FB969.7050209@logosrl.it \
    --to=luigi.scarso@logosrl.it \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).