[NTG-context] replace chapter text by an image, possible ?

VnPenguin vnpenguin at gmail.com
Tue May 24 20:06:36 CEST 2005


On 5/24/05, Mojca Miklavec <mojca.miklavec.lists at gmail.com> wrote:
> 
> I don't know the mechanisms behind the scenes, but I suppose that you
> override placing the chapter in TOC if you make your own
> "command=\MyChapterCommand".
> 
> (Line 2034 in core-sec.tex is \c!command=\@@placehead. Is this one
> perhaps responsible for the strange behavior?)
> 
> However this solves the problem:
> 
> 
> \setuphead
>     [chapter]
>     [textcommand=\MyChapterTextCommand,
>      numbercommand=\MyChapterNumberCommand]
> 
> \def\MyChapterNumberCommand#1{} % hide chapter number
> 
> \def\MyChapterTextCommand#1%
>     {\externalfigure[chapter-\currentheadnumber][height=5cm]}

Wow, it works :-)
Thank you a lot,
Regards

-- 
http://vnoss.org - Vietnamese Open Source Software Community


More information about the ntg-context mailing list