Re: tex2lyx and included files

2005-06-01 Thread Georg Baum
Jean-Pierre Chrétien wrote: > If you think that > Not overwriting existing file /tmp/tex2lyx_depend/chapters/intro.lyx > is enough, remove what I added, but as I was misleaded by the message > (I thought that an user might want to keep a previous > satisfactory conversion result), others may be al

Re: tex2lyx and included files

2005-06-01 Thread Angus Leeming
Jean-Pierre Chrétien wrote: I see that in the new Wiki page http://wiki.lyx.org/LaTeX/Tex2LyxInvokedFromLyx there is no provision to deal with multipart (La)TeX docs. When is 1.3.6 planned ? If it's coming very soon, it's not worth doing scripting for backconversion. I'd say that it was coming

Re: tex2lyx and included files

2005-06-01 Thread Jean-Pierre Chrétien
Georg Baum <[EMAIL PROTECTED]> writes: > This will hopefully not be necessary anymore with 1.3.6, because we plan to > make it read newer files with automatic conversion. I see that in the new Wiki page http://wiki.lyx.org/LaTeX/Tex2LyxInvokedFromLyx there is no provision to deal with multipart

Re: tex2lyx and included files

2005-06-01 Thread Jean-Pierre Chrétien
Georg Baum <[EMAIL PROTECTED]> writes: > > Jean-Pierre Chrétien wrote: > > > I'd uploaded a sunos version on the wiki including these changes, > > without waiting for Georg to commit them if he founds appropriate, > > Thanks. I simplified the logic a bit and committed the attached patch. BTW, >

Re: tex2lyx and included files

2005-06-01 Thread Georg Baum
Jean-Pierre Chrétien wrote: > I'd uploaded a sunos version on the wiki including these changes, > without waiting for Georg to commit them if he founds appropriate, Thanks. I simplified the logic a bit and committed the attached patch. BTW, please use unified diffs (diff -u) the next time, it is

Re: tex2lyx and included files

2005-05-31 Thread Jean-Pierre Chrétien
Jean-Pierre Chrétien <[EMAIL PROTECTED]> writes: > Here is my suggestion: > - enumerate absolute path of \included ou \inputted files converted to lyx > (with indication of creation or overwrite). > - warn about inset of original .tex file if existing lyx file (this may be > very misleading). I

Re: tex2lyx and included files

2005-05-30 Thread Jean-Pierre Chrétien
Georg Baum <[EMAIL PROTECTED]> writes: > > Jean-Pierre Chrétien wrote: > > This is intended behaviour. After all, we don't know if an already > existing .lyx file has anything to do with the .tex file. LaTeX would use > the .tex file, so tex2lyx uses it, too. I see. > In general, some informa

Re: tex2lyx and included files

2005-05-30 Thread Georg Baum
Jean-Pierre Chrétien wrote: > So it turns out that the suffix substitution does not happen > if the included lyx file already exists. The suffix substituion does happen (but intro -> intro.tex, not intro -> intro.lyx) > I don't know if this is the nominal behaviour, but in this case > I can't us

Re: tex2lyx and included files

2005-05-30 Thread Jean-Pierre Chrétien
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

Re: tex2lyx and included files

2005-05-29 Thread Georg Baum
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/o

Re: tex2lyx and included files

2005-05-25 Thread Jean-Pierre Chrétien
Georg Baum <[EMAIL PROTECTED]> writes: > > Jean-Pierre Chrétien wrote: > > > > Probably because I mixed up the return values of main(). > > I applied the patch with a corrected return value of main(). Does it work > now? Recompilation from cvs works fine now, but I still get \include{intro.te

Re: tex2lyx and included files

2005-05-25 Thread Georg Baum
Jean-Pierre Chrétien wrote: > I get this: > Converting main.tex and dependant files to lyx format 241... > Ignoring options 'T1' of package fontenc. > Exiting... > > and there is no mail.lyx file created. Probably because I mixed up the return values of main(). I applied the patch with a correc

Re: tex2lyx and included files

2005-05-25 Thread Jean-Pierre Chrétien
Georg Baum <[EMAIL PROTECTED]> writes: > > Jean-Pierre Chrétien wrote: > > It is fixed by the attached patch. Can you try that please? I could not > reproduce any other problem than the relative path. If there are still > problems after applying the patch, could you describe them again? I get

Re: tex2lyx and included files

2005-05-25 Thread Georg Baum
Jean-Pierre Chrétien wrote: > This is not enough, tex2lyx still keeps \include{subdir/file.tex} > instead of \include{subdir/file.lyx} in the master document. I could not reproduce that with your examples. > code.lyx in turn sets a \verbatiminput{../tex2lyx.sh} > tex2lyx.sh is located in the sam

Re: tex2lyx and included files

2005-05-24 Thread Jean-Pierre Chrétien
Georg Baum <[EMAIL PROTECTED]> writes: > > Jean-Pierre Chrétien wrote: > > > I discovered that tex2lyx kept \include{foo.tex} in the lyx file > > instead of \include{foo.lyx} > > (the original command in the latex file must be \include{foo}, and > > the export to LaTeX correctly removes the suff

Re: tex2lyx and included files

2005-05-20 Thread Georg Baum
Jean-Pierre Chrétien wrote: > I discovered that tex2lyx kept \include{foo.tex} in the lyx file > instead of \include{foo.lyx} > (the original command in the latex file must be \include{foo}, and > the export to LaTeX correctly removes the suffix). This is fixed now. The problem was that tex2lyx d

tex2lyx and included files

2005-05-20 Thread Jean-Pierre Chrétien
Hello, While testing an improvement of the tex wrapper tex2lyx.sh uploaded in the latex2lyx wiki page http://wiki.lyx.org/LaTeX/LatexToLyx I discovered that tex2lyx kept \include{foo.tex} in the lyx file instead of \include{foo.lyx} (the original command in the latex file must be \include{foo}, an