>>Date: Thu, 06 Jun 2002 13:04:27 +0200
>>From: Herbert Voss <[EMAIL PROTECTED]>
>>To: "Jean-Pierre.Chretien" <[EMAIL PROTECTED]>
>>CC: [EMAIL PROTECTED]
>>Subject: Re: [tex2pdf-dev] Re: Graphic files name management
>>
>>Jean-Pierre.Chretien wrote:
>>
>>> The file rcognition mechanim of graphics, rather than latex ?
>>
>>
>>this has nothing to do with lyx, where all works
>>well. LyX scans the filename from the right, latex
>>from the left, so we gave difference for a filename
>>with dots.
OK, I understand how lyx manages the problem.
>>
>>>>>it should be possible, because there must be a
>>>>>
>>>>>\DeclareGraphicsRule{...}
>>>>>
>>>
>>> You mean adding a default rule like
>>> \DeclareGraphicsRule{*}{eps}{*}{}
>>> which will interpret a.nice.file (file being an unknown
>>> suffix) an eps file ?
>>
>>
>>yes
>>
>>
>>> This won't work (otherwise it would be implemented already)
>>> as a.nice.file does not exist. You may add a rule to move
>>> or copy a.nice.file.eps to a.nice.file...
>>
>>
>>it works, as I wrote only with dotless filenames:
>>
>>a -> a.eps
>>a.nice.file -> a.eps
a.nice.file -> a.nice.file.eps I suppose
So must these graphics rules, as I guess that we need also
\DeclareGraphicsRule{*}{png}{*}{}
\DeclareGraphicsRule{*}{jpg}{*}{}
\DeclareGraphicsRule{*}{jpeg}{*}{}
\DeclareGraphicsRule{*}{pdf}{*}{}
be set as a general default or on a per user basis ?
In addition, the precedence changes from dvips to pdftex ...
(but this one is easily solved by tex2pdf, which already
takes the original bitmap when available).
>>
>>the problem is latex. But tex2pdf can add the extension,
>>which is pdf by default or anotherone (jpeg, png) when
>>a DeclareGraphicsRule exists.
>>
>>means: if there is no extension like pdf,jpeg,jpg,png
>>
>>then look for a.nice.file.eps and convert this file
>>to pdf or look for a.nice.file.pdf and take this one.
Sure that a perl script can deal with any situation easily,
so that minimum editing must be required on the tex2pdf side.
Supposing that this is solved, and DeclareGraphicsRule added,
then the only remaining question is the time stamp check to avoid multiple
conversions of the same files (in Lyx, this is already the case in tex2pdf).
--
Jean-Pierre