Re: Latex import problem
Angus Leeming wrote: > Angus Leeming wrote: >> That way, we don't tie a particular lyx to a particular lyx2lyx > > I see that José was ahead of the game. LyX 1.3.x already does this. Sorry > about the noise. I saw that too, and it is also in 1.4. Now I wonder why I had to do the change when I replaced the lyx2lyx that comes with 1.3. Georg
Re: Latex import problem
Angus Leeming wrote: >>> I take the opportunity of this thread about tex2lyx to complete what >>> Angus said. The current version of tex2lyx deals correctly with >>> multipart documents However, lyx2lyx does not know about dependencies, >>> so that retroconversion to 221 must be made on each \input'ted, >>> \include'd or \verbatiminput'ted file. >>> >>> The workaround I proposed in the wiki (script tex2lyx.sh, which >>> converts all lyx files in the current dir to 221) is a poor one, but I >>> can't imagine better unless lyx2lyx knows about dependencies. >> >> Another workaround is to replace the 1.3 version of lyx2lyx with a >> slightly hacked 1.4 version (including the various .py files). You need >> to set >> >> end_format = '221' >> >> in parse_options() in lyx2lyx to change the default output format. LyX >> 1.3 should be able to read 1.4 files after that, so you don't need to >> convert included files explicitly. Feel free to add this to the wiki >> (with a bit more explanation) if it works for you, I don't have the time >> at the moment. > > Taking this over to the lyx-devel list. > > Actually, why don't we invoke lyx2lyx from within lyx as > lyx2lyx --to lyx_format() ... > > That way, we don't tie a particular lyx to a particular lyx2lyx I see that José was ahead of the game. LyX 1.3.x already does this. Sorry about the noise. -- Angus
Re: Latex import problem
Georg Baum wrote: > Jean-Pierre Chretien wrote: > >> I take the opportunity of this thread about tex2lyx to complete what >> Angus said. The current version of tex2lyx deals correctly with >> multipart documents However, lyx2lyx does not know about dependencies, >> so that retroconversion to 221 must be made on each \input'ted, >> \include'd or \verbatiminput'ted file. >> >> The workaround I proposed in the wiki (script tex2lyx.sh, which converts >> all lyx files in the current dir to 221) is a poor one, but I can't >> imagine better unless lyx2lyx knows about dependencies. > > Another workaround is to replace the 1.3 version of lyx2lyx with a > slightly hacked 1.4 version (including the various .py files). You need > to set > > end_format = '221' > > in parse_options() in lyx2lyx to change the default output format. LyX > 1.3 should be able to read 1.4 files after that, so you don't need to > convert included files explicitly. Feel free to add this to the wiki > (with a bit more explanation) if it works for you, I don't have the time > at the moment. Taking this over to the lyx-devel list. Actually, why don't we invoke lyx2lyx from within lyx as lyx2lyx --to lyx_format() ... That way, we don't tie a particular lyx to a particular lyx2lyx -- Angus