ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "John R. Culleton" <john@wexfordpress.com>
Subject: Re: Suppreesin section header
Date: Mon, 30 May 2005 19:57:56 +0000	[thread overview]
Message-ID: <200505301957.57196.john@wexfordpress.com> (raw)
In-Reply-To: <e5d3f26505053010202b9cee3c@mail.gmail.com>

On Monday 30 May 2005 05:20 pm, VnPenguin wrote:
> On 5/30/05, John R. Culleton <john@wexfordpress.com> wrote:
> > For a particular section I wish to substitute a graphic for the
> > section header, but have the TOC entry named as usual. Is there
> > a way to say e.g.,
> > \section{foo}
> > and have foo show up in the TOC but not as a section header?
>
> Have a look at "my" thread :
>
>   http://www.ntg.nl/pipermail/ntg-context/2005/010976.html

Which boils down to:
----------------------------------------------
\setuphead
    [chapter]
    [textcommand=\MyChapterTextCommand,
     numbercommand=\MyChapterNumberCommand]

\def\MyChapterNumberCommand#1{} % hide chapter number

\def\MyChapterTextCommand#1%
    {\externalfigure[(some graphic reference)]}

--------------------- 
The graphic reference was
chapter-\currentheadnumber

That almost does it. Thanks! But I want to be able to specify the graphic at
the point where the section/chapter/whatever is created. In plain pdftex there
is a facility for retrieving the last graphic added
(\pdflastximage). Does Context have an analogous command? 

Or I can just redefine  \MyChapterTextCommand at each instance. That is
more flexible than renaming graphics with chapter numbers.

I do a newsletter where the chapter called "Rainbow Bridge"
always has the same graphic, but that chapter doesn't always
occur in the same spot in the sequence.

John Culleton

      reply	other threads:[~2005-05-30 19:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-30 11:04 John R. Culleton
2005-05-30 17:20 ` VnPenguin
2005-05-30 19:57   ` John R. Culleton [this message]

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=200505301957.57196.john@wexfordpress.com \
    --to=john@wexfordpress.com \
    --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).