🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #11781

fncychap, renewcommand, DOCH

#11781
From: Nosnos
Date: Fri, 05 Dec 2003 22:42
30 lines
2417 bytes
hi,

I want to use fncychap and personnalized my chapter a little.

I want to put an image in the chapter header, instead of the string "Chapter N" ....

So i began by redefined \doch and put my \includegraphix{toto.eps} ....

But the probleme is that I don't want to put the images pathFiles directly in the renewcommand, but give a way to get it by parameter .... But I don't know how to communicate the pathFiles from the \chapter... to \doch ...

Here is my code :

  \renewcommand{\DOCH}%
    \settoheight{\myhi}{\CTV\FmTi{Test}}
    \setlength{\py}{\baselineskip}
    \addtolength{\py}{\RW}
    \addtolength{\py}{\myhi}
    \setlength{\pyy}{\py}
    \addtolength{\pyy}{-1\RW}
     
    \raggedright
    \begin{tabular}[m]{c} \includegraphics{toto.eps} \\ \end{tabular} % <--- \includegraphics{toto.eps}
    \hskip 3pt\mghrulefill{\RW}\rule[-1\pyy]{2\RW}{\py}\par\nobreak}


So it will include toto.eps everywhere in all the chapter for each \chapter{...} commands ... but I would like that each chapter could have his own images .... (so transmitted by parameter ...)


Have you an idea ?
thx
Technical Details
Message-ID: <20031205224238.4d597be2.nosnos94@-hateSPAM-wanadoo.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!newsfeed2.easynews.com!easynews.com!easynews!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!nntpserver.swip.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9e16,f1c67f5b91f40fdc,start
X-Google-Attributes: gidf9e16,public
X-Google-Thread: 10ee61,f1c67f5b91f40fdc,start
X-Google-Attributes: gid10ee61,public
X-Google-ArrivalTime: 2003-12-05 13:42:52 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!newsfeed2.easynews.com!easynews.com!easynews!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!nntpserver.swip.net!not-for-mail
From: Nosnos <nosnos94@-hateSPAM-wanadoo.fr>
Newsgroups: comp.text.tex,fr.comp.text.tex
Subject: fncychap, renewcommand, DOCH
Message-ID: <20031205224238.4d597be2.nosnos94@-hateSPAM-wanadoo.fr>
X-Newsreader: Sylpheed version 0.9.4 (GTK+ 1.2.10; i486-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Lines: 30
Date: Fri, 5 Dec 2003 22:42:38 +0000
NNTP-Posting-Host: 213.103.197.114
X-Complaints-To: news-abuse@swip.net
X-Trace: nntpserver.swip.net 1070660562 213.103.197.114 (Fri, 05 Dec 2003 22:42:42 MET DST)
NNTP-Posting-Date: Fri, 05 Dec 2003 22:42:42 MET DST
Organization: A Customer of Tele2