Juergen Spitzmueller wrote:

> Herbert Voss wrote:
> 
>>>But can't we anymore have \includegraphics[...]{my}?
>>>Didn't we say this is good if we want pdf and ps output?
>>>
>>It's not an important question for me, so I can't really
>>say what's the right way. but writing it in the above
>>way is only a one-line-patch.
>>
> 
> If it's easy, please do!
> I have lots of pictures inserted without extension to have the ability of 
> pdflatex and latex runs. I have to change all these otherwise.


attached,

Herbert



-- 
http://www.lyx.org/help/
Index: src/insets/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/ChangeLog,v
retrieving revision 1.398
diff -u -r1.398 ChangeLog
--- src/insets/ChangeLog        19 Apr 2002 13:23:39 -0000      1.398
+++ src/insets/ChangeLog        19 Apr 2002 14:00:16 -0000
@@ -1,3 +1,8 @@
+2002-04-19  Herbert Voss  <[EMAIL PROTECTED]>
+
+       * insetgraphic.C (latex): graphic-file is written into .tex without
+       extension
+
 2002-04-19  Juergen Vigna  <[EMAIL PROTECTED]>
 
        * insettabular.C (insetUnlock): 
Index: src/insets/insetgraphics.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetgraphics.C,v
retrieving revision 1.104
diff -u -r1.104 insetgraphics.C
--- src/insets/insetgraphics.C  12 Apr 2002 13:50:04 -0000      1.104
+++ src/insets/insetgraphics.C  19 Apr 2002 14:00:17 -0000
@@ -690,7 +690,7 @@
        // and remove the extension so the LaTeX will use whatever is
        // appropriate (when there are several versions in different formats)
        string const latex_str = message.empty() ?
-               (before + '{' + prepareFile(buf) + '}' + after) :
+               (before + '{' + RemoveExtension(prepareFile(buf)) + '}' + after) :
                (before + '{' + params().filename + " not found!}" + after);
        os << latex_str;
 

Reply via email to