Hello developers,
while testing tex2lyx and lyx2lyx together with LyX 1.3.6 I encountered
the following problem:
When the user imports a .tex-file, the lyx-file produced by tex2lyx is
immediately stored in the same directory where the .tex-file is. LyX
converts this file via lyx2lyx to a format readable by LyX 1.3.x and
opens it. When the user sees that a lyx-file is created he might close
LyX without saving the lyx-file opened by LyX. In this case the stored
LyX file is in a different format than the one of the installed LyX-version.
To put it in a nutshell we currently have this situation:
1) convert test.tex -> test.lyx (format xxx) (tex2lyx)
2) convert tmp_dir/xxxx_test.lyx (format xxx) ->
tmp_dir/xxxx_test_new.lyx (format yyy) (lyx2lyx)
3) load tmp_dir/xxxx_test_new.lyx (format yyy) in LyX,
when the user sves this file it is copied to the directory of
test.tex
In this scheme the user gets a lyx-file in format xxx when he don't
press the save-button in LyX.
I discussed this topic with José and we came to the conclusion that this
sheme should avoid this problem:
1) convert test.tex -> tmp_dir/xxxx_test.lyx (format xxx) (tex2lyx)
2) convert tmp_dir/xxxx_test.lyx (format xxx) ->
tmp_dir/xxxx_test_new.lyx (format yyy) (lyx2lyx)
3) load tmp_dir/xxxx_test_new.lyx (format yyy) in LyX,
when the user sves this file it is copied to the directory of
test.tex
So simply the first step need to be changed. Is this scheme OK or is
there a reason why tex2lyx's output is immediately stored in the working
directory?
regards Uwe