Am 31.05.2015 um 19:06 schrieb Uwe Stöhr:

This might be a tex2lyx bug as well, depending how the reference was
created. This is not in 1) since I can reproduce the results in 1) with
current tex2lyx but not this one. Uwe, how did you create the reference
which does not contain the external inset? Did you copy the .tex file
somehwere else, or was it in the git tree?

Hi Georg,

I now find out how I managed to change this:
I executed this command:

tex2lyx -f -roundtrip test-insets.tex

This leads to a lyx.lyx file with the new inset. Attached is the diff I get.

regards Uwe
diff --git 
"a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\tesC832.tmp\\test-insets.lyx-945a348-left.lyx"
 "b/D:\\LyXGit\\Master\\src\\tex2lyx\\test\\test-insets.lyx.lyx"
index 23a82b7..d312958 100644
--- 
"a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\tesC832.tmp\\test-insets.lyx-945a348-left.lyx"
+++ "b/D:\\LyXGit\\Master\\src\\tex2lyx\\test\\test-insets.lyx.lyx"
@@ -759,7 +759,7 @@ We can input files too, like this
 \begin_inset CommandInset include
 LatexCommand input
 preview false
-filename "DummyDocument.lyx.lyx"
+filename "DummyDocument"
 
 \end_inset
 
@@ -783,7 +783,7 @@ filename "Dummy Document.tex"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy~Document.lyx.lyx"
+filename "Dummy~Document"
 
 \end_inset
 
@@ -791,7 +791,7 @@ filename "Dummy~Document.lyx.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy~Document.lyx.lyx"
+filename "Dummy~Document.tex"
 
 \end_inset
 
@@ -842,9 +842,10 @@ XFig drawings:
 
 \begin_layout Standard
 
-\begin_inset External
-       template XFig
-       filename xfigtest.fig
+\begin_inset CommandInset include
+LatexCommand input
+preview false
+filename "xfigtest.pstex_t"
 
 \end_inset
 
@@ -3100,12 +3101,12 @@ status collapsed
 \begin_layout Plain Layout
 
 \backslash
-raggedleft
+raggedleft 
 \end_layout
 
 \end_inset
 
- This last column is a 
+This last column is a 
 \begin_inset Quotes eld
 \end_inset
 
@@ -4493,7 +4494,7 @@ status collapsed
 \begin_layout Plain Layout
 
 \backslash
-centering
+centering 
 \end_layout
 
 \end_inset

Reply via email to