Georg Baum <[EMAIL PROTECTED]> writes: > > Am Mittwoch, 25. Mai 2005 19:40 schrieb Jean-Pierre Chrétien: > > > Recompilation from cvs works fine now, but I still get > \include{intro.tex} > > I can't reproduce that, it works for me. I guess from your earlier posts > that you are using tex2lyx on solaris? You could run tex2lyx in the > debugger and/or add some debug messages, for example around line 1906 in > text.C and the various tex2lyx() functions in tex2lyx.C.
The problem comes from the fact that I use two calls to tex2lyx, the second one aimeing at finding what are the dependencies to use lyx2lyx on the .lyx files produced by tex2lyx. I set a marker in text.C: 1906 tex2lyx(abstexname, abslyxname)) { 1906bis cerr << "Test 1 " << name << '{' << lyxname << "}\n"; 1907 os << name << '{' << lyxname << "}\n"; 1908 } else { 1980bis cerr << "Test 2 " << name << '{' << filename << "}\n"; 1st call: ->/usr/local/LyX/bin/tex2lyx main.tex > t.lyx Ignoring options 'T1' of package fontenc. Test 1 \include{intro.lyx} Hit 2nd call: /usr/local/LyX/bin/tex2lyx main.tex > tt.lyx Ignoring options 'T1' of package fontenc. Not overwriting existing file /tmp/intro.lyx Test 2 \include{intro.tex} Miss 3rd call: >/usr/local/LyX/bin/tex2lyx -f main.tex > ttt.lyx Ignoring options 'T1' of package fontenc. Test 1 \include{intro.lyx} Hit again So it turns out that the suffix substitution does not happen if the included lyx file already exists. I don't know if this is the nominal behaviour, but in this case I can't use a second call to find out the dependencies (to use the "Not overwriting existing file" messages). Of course, I do not need the second call if tex2lyx prints the depencies with messages on stderr like "Creating file /tmp/intro.lyx" (initial translation) "Updating existing file /tmp/intro.lyx" (with -f option) HTH -- Jean-Pierre