>>To: Matej Cepl <[EMAIL PROTECTED]>
>>cc: [EMAIL PROTECTED]
>>Subject: Re: Search Path for dvips
>>Date: Mon, 13 May 2002 14:10:03 -0700
>>From: Dave Tweten <[EMAIL PROTECTED]>
>>
>>Initially quoting me, [EMAIL PROTECTED] said:
>>>>What can I do to make dvips find the .eps files on some LyX search
>>>>path that contains ~/.lyx/clipart/?
>>
>>>man kpsepath
>>
>>I tried that. It produced
>>
>> No manual entry for kpsepath
>>
>>I then used locate to find the two kpse* man pages that do exist, for kpsestat
>>and for kpsewhich. I read kpsewhich's help output and its man page. Together
>>they lead me to believe that maybe
>>
>> kpsewhich --format graphic/figure NAS.eps
>>
>>might return the full path name of NAS.eps to standard output. Or maybe I'd
>>have to use one dash, or maybe just "graphic", or maybe just "figure", or
>>maybe forget the "--format" option entirely and just give kpsewhich the file
>>name.
>>
>>Anyway, no combination produced anything to standard output at all, which was
>>one episode in a weekend of frustration lead me to ask my question in the
>>first place.
>>
>>Anybody have a candidate answer that might work?
A side remark before: I don't know \leftheader and \rightheader,
but your commands seem to reinsert eps code at each slide.
If you think of publishing the layout, a better code would be
(e.g for leftheader):
\newsavebox{\logoleftheader}
\savebox{\logoleftheader}{\resizebox{!}{\headheight}{\includegraphics{CodeI}}}
\leftheader{\usebox{\logoleftheader}}
Thus the eps file is loaded only once, and the suffix is removed in case of
use of pdftex option of graphics package (which implies that you
create a ppg, png or pdf version of the logo besides the original eps,
unless one of these bitmaps is the real original image).
As for the path definition, you can clearly
not use an absolute name in the layout definition, so the best seems
to leave the logo file name as a parameter defined by a \providecommand
in the preamble of the document instance of the layout.
So you may change the above command like this:
\savebox{\logoleftheader}{\resizebox{!}{\headheight}{\includegraphics{\leftheade
rlogofilename}}}
Then in the preamble of template of the document:
\providecommand{\leftheaderlogofilename}{CodeI}
To avoid errors when the \providecommand is missing, you may add in the
layout a default \leftheaderlogofilename pointing to an empty image.
As for finding a figure/graphics file, have a look at pages 26-27 of the
"Using EPS graphics in LaTeX2e" document which comes with teTeX: the best
way is to use:
setenv TEXINPUTS /home/.lyx/clipart:
(for a single user implementation), don't miss the :
or to add the path in the TEXINPUT variable of texmf.cnf if you
run the install for a set of users (you should run texhash in that case,
if not run by crontab already).
Didn't check these commands which may require some tuning,
hope that helps.
--
Jean-Pierre