Re: [NTG-context] Suppreesin section header

2005-05-30 Thread VnPenguin
On 5/30/05, John R. Culleton [EMAIL PROTECTED] 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

-- 
http://vnoss.org
Vietnamese Open Source Software Community
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Suppreesin section header

2005-05-30 Thread John R. Culleton
On Monday 30 May 2005 05:20 pm, VnPenguin wrote:
 On 5/30/05, John R. Culleton [EMAIL PROTECTED] 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



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context