SV: lyx latex-import problem
Hi >Please file a bug report if the file is not secret (or if you can easily >create a non-secret one). For the time it is secret :), but in a couple of weeks it would not be so I'll have a look at it then. >Yes. You have two options: > >1) Add the line > >\sindex[]{translate} %splitidx.sty >to the file lib/syntax.default in your LyX installation, and import the file Zagain. This should produce correct ERT. I will try this when the next iteration of abstracts are ready. > >2) Get the current BRANCH_2_0_X from svn or wait for 2.0.4. This will create >real index insets for \sindex. or this if the first does not work :) Ingar
Re: lyx latex-import problem
Ingar Pareliussen wrote: > Hi > > I have a couple of hundred abstracts from a web form that > produces simple LaTeX files. I have cat'ed them into one big LaTeX file > and imported it to LyX. This works for the most part, but I have > problem with \sindex that needs a option i [index_name] which is not > recognized by LyX and therefor not put into ERT. > > I tried to get search replace it, but when LyX search within ERT it uses > all memory and even if it seems to do the right thing it has been working > on the file for a couple of hours... (file is only 300k and the box has 4G > of ram, so something seems to be amiss) Please file a bug report if the file is not secret (or if you can easily create a non-secret one). > Is there some advice on how to do this more efficient? I could do it > manually, but automated is better :) Yes. You have two options: 1) Add the line \sindex[]{translate} %splitidx.sty to the file lib/syntax.default in your LyX installation, and import the file again. This should produce correct ERT. 2) Get the current BRANCH_2_0_X from svn or wait for 2.0.4. This will create real index insets for \sindex. Georg
Re: lyx latex-import problem
On 2012-02-19, Ingar Pareliussen wrote: > Hi > I have a couple of hundred abstracts from a web form that produces > simple LaTeX files. I have cat'ed them into one big LaTeX file and > imported it to LyX. This works for the most part, but I have problem > with \sindex that needs a option i [index_name] which is not > recognized by LyX and therefor not put into ERT. > I tried to get search replace it, but when LyX search within ERT it > uses all memory and even if it seems to do the right thing it has been > working on the file for a couple of hours... (file is only 300k and the > box has 4G of ram, so something seems to be amiss) > Is there some advice on how to do this more efficient? I could do it > manually, but automated is better :) Edit the lyx source in a text editor? If the important part is inside ERT, this should be quite simple. Günter
lyx latex-import problem
Hi I have a couple of hundred abstracts from a web form that produces simple LaTeX files. I have cat'ed them into one big LaTeX file and imported it to LyX. This works for the most part, but I have problem with \sindex that needs a option i [index_name] which is not recognized by LyX and therefor not put into ERT. I tried to get search replace it, but when LyX search within ERT it uses all memory and even if it seems to do the right thing it has been working on the file for a couple of hours... (file is only 300k and the box has 4G of ram, so something seems to be amiss) Is there some advice on how to do this more efficient? I could do it manually, but automated is better :) Linux and LyX 2.0.2 Ingar
Re: latex import problem
Sanda Pavel wrote: >> Did you try tex2lyx? It may give you better results. >> See http://wiki.lyx.org/LaTeX/LatexToLyx for available > > that produces lyx, which cant be corectly displayed by the older > version then lyx 1.4 (which is not yet :) > compiling devel release is not easy for my configuration now, so > i will wait for 1.4 release. tex2lyx does not help in this case. The reason is the non-standard command \textoverset which is not supported by LyX. Form your file it seems that \textoverset takes two text arguments (the style files are not readable): \textoverset{${\mathchar"0362}$'}{$\sigma$}=\frac{1}{T} rewrite that as \overset{{\mathchar"0362}'}{\sigma}=\frac{1}{T} and everything should work. Georg
Re: latex import problem
Actually, that page contains links to "backports". from the page: ** "tex2lyx will be part of the upcoming 1.4 release of LyX. This page page describes its use with older LyXes (such as the current stable release, LyX 1.3.x) and provides some ready-to-use packages. " *** Namely, you can find a version suitable for your LyX setup. Of course, if you want to try :). I don't even know whether it will make a difference for you, but it worked for me after some search-replace. Regards, Nusret --- Sanda Pavel <[EMAIL PROTECTED]> wrote: > > Did you try tex2lyx? It may give you better > results. > > See http://wiki.lyx.org/LaTeX/LatexToLyx for > available > > that produces lyx, which cant be corectly displayed > by the older > version then lyx 1.4 (which is not yet :) > compiling devel release is not easy for my > configuration now, so > i will wait for 1.4 release. > > thanks for pointing out > pavel > __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
Re: latex import problem
On Sunday 20 November 2005 14:47, Sanda Pavel wrote: > > Did you try tex2lyx? It may give you better results. > > See http://wiki.lyx.org/LaTeX/LatexToLyx for available > > that produces lyx, which cant be corectly displayed by the older > version then lyx 1.4 (which is not yet :) > compiling devel release is not easy for my configuration now, so > i will wait for 1.4 release. You can get the 1.4 version of lyx2lyx to revert back to 1.3.x format, actually as soon as 1.4.0 is released 1.3.7 will be released this way, with the ability to read 1.4.x files. > thanks for pointing out > pavel I hope this helps, -- José Abílio
Re: latex import problem
> Did you try tex2lyx? It may give you better results. > See http://wiki.lyx.org/LaTeX/LatexToLyx for available that produces lyx, which cant be corectly displayed by the older version then lyx 1.4 (which is not yet :) compiling devel release is not easy for my configuration now, so i will wait for 1.4 release. thanks for pointing out pavel
Re: latex import problem
Sanda, Did you try tex2lyx? It may give you better results. See http://wiki.lyx.org/LaTeX/LatexToLyx for available versions. Just an idea... Regards, Nusret --- Sanda Pavel <[EMAIL PROTECTED]> wrote: > > the input file all that well. You must not rely > on assumptions that con- > > > version in both ways (namely LyX <-> LaTeX) is > non-lossy. If you collabo- > > > i expected that the conversion wont be identical. > what makes wondering is that > immediatelly after import, LyX in fact HAS correct > representation, i.e. is able > to export it properly to latex, pdf etc., but looses > this correctness via > save/close/open operation, which i wouldnt > expected... > > > have a nice day > pavel > __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Re: latex import problem
> the input file all that well. You must not rely on assumptions that con- > > version in both ways (namely LyX <-> LaTeX) is non-lossy. If you collabo- > i expected that the conversion wont be identical. what makes wondering is that immediatelly after import, LyX in fact HAS correct representation, i.e. is able to export it properly to latex, pdf etc., but looses this correctness via save/close/open operation, which i wouldnt expected... have a nice day pavel
Re: latex import problem
_/ On Fri 18 Nov 2005 19:38:34 GMT, [Sanda Pavel] wrote : \_ hi all, i'm trying to import some latex files into lyx, but lyx plays funny games with me. My personal experience has shown that import of LaTeX into LyX suffers from a few incompatibilities (or gaps), especially when mathematical equa- tions or tables are involved. Even though these equations may produce a fine outcome, they often rely as some hacks which are 'glue' that makes them (loosely) work. after import into lyx all the formulas look fine, export works etc, but when i save+close+reopen the lyx file, it is no longer exportable and also information about symbols in the formulas change from "Type:equation" to "Type:None". I have opened your LyX file. I then imported your LaTeX file, but the out- come was not at all identical. In fact, I believe that LyX did not devour the input file all that well. You must not rely on assumptions that con- version in both ways (namely LyX <-> LaTeX) is non-lossy. If you collabo- rate on a document with someone who does not use LyX, expect difficulties. You might also come across that constant need for manual correction of bits that are translated badly and layout that goes awry. is there any way, how to globally change all the symbols "Type" back into "equation" ? I suggest you try the search and replace function, which is available in most editors. If you handle a large number of files and make changes cohe- sively, I advise that you consider the command 'sed'. Having said that, I think you are after something altgother different. afaik the symbol in math mode is usually "simple" - how it differs ? i'm not sure whether the latex code is correct, because its just export from another editor from which i'm trying to port my files, so i saved one small example in 195.113.31.123/~sanda/lyx using lyx 1.3.5 on gentoo. thanks for any help pavel The output from that other editor might not be very elegant. I suggest you try pdflatex *.tex and see if any warnings are triggered or errors 'coughed out'. Ideally, all imports and exports would be non-lossy. Perhaps they are, but in prac- tice, there are too many non-compliant, non-standardised uses (misuses). TeX (or LyX or whatever) hacks will not prevent one from getting that fi- nal output. Since TeX is not overly restrictive and is often lenient, I always expect trouble when converting, changing version, or changing a platform. Hope it helps, Roy -- Roy S. Schestowitz http://Schestowitz.com |SuSE Linux | PGP-Key: 0x74572E8E 5:55am up 17 days 1:49, 5 users, load average: 0.17, 0.40, 0.52
latex import problem
hi all, i'm trying to import some latex files into lyx, but lyx plays funny games with me. after import into lyx all the formulas look fine, export works etc, but when i save+close+reopen the lyx file, it is no longer exportable and also information about symbols in the formulas change from "Type:equation" to "Type:None". is there any way, how to globally change all the symbols "Type" back into "equation" ? afaik the symbol in math mode is usually "simple" - how it differs ? i'm not sure whether the latex code is correct, because its just export from another editor from which i'm trying to port my files, so i saved one small example in 195.113.31.123/~sanda/lyx using lyx 1.3.5 on gentoo. thanks for any help pavel
Re: Latex import problem
<[EMAIL PROTECTED]> writes: > > On Thu, 19 May 2005, Luis Rivera wrote: > > > Anyway, I compiled lyx2lyx into a self-contained executable (a couple of > > libraries required, all of them placed together), but I don't know how > > to post it to the Wiki. This package may supersede Ruurd's distribution > > without having to install a full blooded Python. Any help? > > How big is it? If it's less than 2 MB, you can simply upload it yourself > by clicking on the 'upload' link at the top right corner of a wiki page. > This will point you to > The package is 606kb. I just uploaded it to the wiki page. You should find it in the LyXWinTips page, in the LaTeX import section. I hope you find it useful... Luis.
Re: Latex import problem
On Thu, 19 May 2005, Luis Rivera wrote: > > Yes , at first I tried the original version in Ruurd´s package > > essential modules are missing. > > Thomas Greiner > > > > On Thu, 19 May 2005 10:02:40 +0100, Angus Leeming wrote: > > > > It seems to be something like that... or I failed to redirect pythonpath > to the right place. > > Anyway, I compiled lyx2lyx into a self-contained executable (a couple of > libraries required, all of them placed together), but I don't know how > to post it to the Wiki. This package may supersede Ruurd's distribution > without having to install a full blooded Python. Any help? How big is it? If it's less than 2 MB, you can simply upload it yourself by clicking on the 'upload' link at the top right corner of a wiki page. This will point you to http://wiki.lyx.org/ipfm/login.php where you login with the useername 'lyx' and password 'LyXers'. If it's bigger than 2 MB, let me know where/how I can get a copy of it and I'll upload it for you. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Latex import problem
TGreiner <[EMAIL PROTECTED]> writes: > > Yes , at first I tried the original version in RuurdÂs package > essential modules are missing. > Thomas Greiner > > On Thu, 19 May 2005 10:02:40 +0100, Angus Leeming wrote: > It seems to be something like that... or I failed to redirect pythonpath to the right place. Anyway, I compiled lyx2lyx into a self-contained executable (a couple of libraries required, all of them placed together), but I don't know how to post it to the Wiki. This package may supersede Ruurd's distribution without having to install a full blooded Python. Any help? Luis
Re: Latex import problem
Yes , at first I tried the original version in Ruurd´s package essential modules are missing. Thomas Greiner On Thu, 19 May 2005 10:02:40 +0100, Angus Leeming wrote: >Jose' Matos wrote: >> On Thursday 19 May 2005 02:49, Luis Rivera wrote: >>> In fact, the newer lyx2lyx packed with tex2lyx (binary) is incompatible >>> with the python version packed by Ruurd: the newest version requires >>> python 2.3 at least, and Ruurd packed python 2.2. So Angus was right: >>> dump the python version packed by Ruurd, if you have no use for it... >> >> Do you have any evidence of your claim? >> >> I am puzzled because we have coded lyx2lyx to require only python 1.5.2 >> (this version was released in 1999). We have not used any feature from >> later versions. >> >> If you know any such example please report it and we will fix it ASAP. > >I think that Luis is finding that Ruurd's stripped down python package >doesn't include some of the modules that lyx2lyx makes use of. My advice >still holds. Ruurd's python package has outlived its usefulness. All >Windows users should ditch it and get an official distribution from >www.python.org. That way we're all on the same playing field. > >-- >Angus >
Re: Latex import problem
On Thursday 19 May 2005 10:02, Angus Leeming wrote: > I think that Luis is finding that Ruurd's stripped down python package > doesn't include some of the modules that lyx2lyx makes use of. That is fair. I was not sure if this was a problem with Ruurd's port or with lyx2lyx itself, if the later then that was bug worth to fix for 1.4 as well for 1.3.6. Just playing safe here. :-) -- José Abílio
Re: Latex import problem
Jose' Matos wrote: > On Thursday 19 May 2005 02:49, Luis Rivera wrote: >> In fact, the newer lyx2lyx packed with tex2lyx (binary) is incompatible >> with the python version packed by Ruurd: the newest version requires >> python 2.3 at least, and Ruurd packed python 2.2. So Angus was right: >> dump the python version packed by Ruurd, if you have no use for it... > > Do you have any evidence of your claim? > > I am puzzled because we have coded lyx2lyx to require only python 1.5.2 > (this version was released in 1999). We have not used any feature from > later versions. > > If you know any such example please report it and we will fix it ASAP. I think that Luis is finding that Ruurd's stripped down python package doesn't include some of the modules that lyx2lyx makes use of. My advice still holds. Ruurd's python package has outlived its usefulness. All Windows users should ditch it and get an official distribution from www.python.org. That way we're all on the same playing field. -- Angus
Re: Latex import problem
On Wednesday 18 May 2005 21:18, Luis Rivera wrote: > Angus, > I'm sorry I might have stepped on your toe. You didn't. However, the best way to prevent misunderstandings from developing in an email correspondence is by being clear and firm that a particular statment is not correct. Anyway, I'm glad that you are finding that reLyX is up to the task of handling your LaTeX files. Regards, Angus
Re: Latex import problem
On Thursday 19 May 2005 02:49, Luis Rivera wrote: > In fact, the newer lyx2lyx packed with tex2lyx (binary) is incompatible > with the python version packed by Ruurd: the newest version requires > python 2.3 at least, and Ruurd packed python 2.2. So Angus was right: > dump the python version packed by Ruurd, if you have no use for it... Do you have any evidence of your claim? I am puzzled because we have coded lyx2lyx to require only python 1.5.2 (this version was released in 1999). We have not used any feature from later versions. If you know any such example please report it and we will fix it ASAP. -- José Abílio
Re: Latex import problem
Luis Rivera <[EMAIL PROTECTED]> writes: > > Angus Leeming ...> writes: > > > > > Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go > > get a real python package from www.python.org. > > > > Angus > > > > > > You ain't to throw away nothing. Just add the right paths to libperl and > libpython environment variables, and everything runs fine. See Ruurd's > original reLyX.bat file and my home-brewed patch somewhere in this thread. > I'm ashamed I wrote this, so I recant publicly. In fact, the newer lyx2lyx packed with tex2lyx (binary) is incompatible with the python version packed by Ruurd: the newest version requires python 2.3 at least, and Ruurd packed python 2.2. So Angus was right: dump the python version packed by Ruurd, if you have no use for it... Having said that, I must add that it is possible to get away without installing a full blooded Python distribution: the newest pythons include a little program py2exe allowing the compilation of python scripts into windows executables. I just made the experiment and seems to be working. I thought about uploading it to the wikipage, but I have to figure out how to do that first. If somebody volunteers, I can send the exe right away to post it in the right place for downloading. (Please email me to my home address, not to the list, for I'm subscribed to the digest and I check it usually only once a day...) Cheers, Luis.
Re: Latex import problem
Angus Leeming <[EMAIL PROTECTED]> writes: > > TGreiner wrote: > > -t 221 doesnÂt work: 241: Format not supported > > or single -to doesnÂt work. I get the old error. > > Thomas > > ... and this error has been explained to you. The python that Ruurd > packaged with his port of LyX to Windows doesn't contain many of the > modules of standard python that the LyX 1.4 version of lyx2lyx requires. > > Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go > get a real python package from www.python.org. > > Angus > > You ain't to throw away nothing. Just add the right paths to libperl and libpython environment variables, and everything runs fine. See Ruurd's original reLyX.bat file and my home-brewed patch somewhere in this thread. BTW, you shouldn't be using reLyX: tex2lyx makes a more consistent LyX output, and has a better lyx2lyx program. Cheers, Luis.
Re: Latex import problem
>Angus Leeming >Tue, 17 May 2005 14:25:33 -0700 > >Luis Rivera wrote: Angus, I'm sorry I might have stepped on your toe. I apologize. Let me explain: >... reLyX generates a horrible mish-mash >of different file formats that must "somehow" be deciphered by lyx2lyx. > >tex2lyx generates a completely consistent lyx file, version 241, which >must >then be converted back to version 221 so that LyX 1.3.5 can understand >it. > I shall concede that. I have little knowledge of the arcana of the LyX format, so I am in no position do decide whether the output of tex2lyx is equal, better, or worse, than that of reLyX (which, I also concede, might be a relic ;) My only point is that reLyX makes some `mish-mash' intelligible to lyx2lyx, and then you still have to "upgrade" this mish-mash into LyX 221. In other words, a two step process is necessary anyway. >> I still use the `old' reLyX script, for tex2lyx, in its current >> incarnation, is too bloated to my taste, and I have to reconvert the >> output to LyX 221 anyway. > > tex2lyx is bloated? For what definition of bloated? Well: I downloaded the binary from the Wiki page, and it expands to up to 2.5 Mb, while the existing combo reLyX/lyx2lyx takes about 2Mb (including the required python/perl libraries and executables). >Two things that it >does do, which reLyX does not, is understand most 'reasonable' LaTeX and >generate a consistent .lyx file. > Having no clue about the consistency of LyX, I must concede the second point; as for the first, reLyX has had no trouble so far with my rather idiosyncratic LaTeX files... To convert my LaTeX files into LyX I made the following batch file (tex2lyx.bat): @echo off rem Wrapper script for Win32 rem written by Ruurd Reitsma rem shamelessly hacked by Jose-Luis Rivera set PERLLIB=%~p0\..\lib set PYTHONPATH=%~p0\lib;%~p0\dlls %~p0\perl.exe -S %~p0\reLyX -f %1 %2 %3 ren %~n1.lyx rlx %~p0\python.exe -S %~p0\..\share\lyx\lyx2lyx\lyx2lyx -t 221 -o %~n1.lyx rlx del rlx set PERLLIB= set PYTHONPATH= - then I changed the call in Edit/Preferences/Converters/tex -> LyX, to `tex2lyx $$i', and voilà! I named the batch file `tex2lyx' in the assumption that, someday, this shall be the name of the right utility to call. >If you have any substantive problems with tex2lyx, then PLEASE bring them >forward. I have no substantive problems with tex2lyx, save that it seems to me a little redundant for Ruurd's distribution. As I said, all I did was a little hacking of Ruurd's reLyX.bat file and I got my stuff. Before that, I downloaded and tested (succesfully) the experimental tex2lyx available at the wiki page, then realizing that I had to reformat the output with lyx2lyx anyway. So I patched a little batch to run lyx2lyx from console, and then it strucked me that with a little hacking to Ruurd's original kludge, I could get the two phases (reLyX/tex2lyx-lyx2lyx) done in one single shot. That's what I did. > We rely on your feedback to improve it. Now I take your suggestion: do you think it viable to have tex2lyx built into LyX itself, like the converter going the other way around?This way we could use `lyx --import latex filename.tex', the way we use `lyx --export latex filename.lyx'). Should I write the developers suggesting this integration? >However, please do not >suggest to people on this list that they use reLyX in preference to >tex2lyx. reLyX is a broken hack and unsupported nightmare. I won't do it anymore. Promise. Luis. Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html
Re: Latex import problem
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. Georg
Re: Latex import problem
Now I could convert: Newest Python Newest lyx2lyx (not from Lyx1.3.5 package) Thanks Thomas On Wed, 18 May 2005 12:50:39 +, Angus Leeming wrote: >TGreiner wrote: >> -t 221 doesn´t work: 241: Format not supported >> or single -to doesn´t work. I get the old error. >> Thomas > >... and this error has been explained to you. The python that Ruurd >packaged with his port of LyX to Windows doesn't contain many of the >modules of standard python that the LyX 1.4 version of lyx2lyx requires. > >Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go >get a real python package from www.python.org. > >Angus >
Re: Latex import problem
>>From: Angus Leeming <[EMAIL PROTECTED]> >>To: "TGreiner" <[EMAIL PROTECTED]> >>Subject: Re: Latex import problem >>Date: Wed, 18 May 2005 10:31:12 +0100 >>Cc: lyx-users@lists.lyx.org >> >>On Wednesday 18 May 2005 09:05, TGreiner wrote: >>> Dear Angus, >>> thank you for your hints. I could run tex2lyx in a command window. >>> The Latex file is imported (I see a lot of messages of the included >>> images - no errors), but no output file is created. What do I have >>> to do? T. Greiner >> >>You have to redirect the output to STDOUT to a file. Here's how I >>convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x >>version .lyx file and then convert this .lyx file to something that >>LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX >>1.3.5.) 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. An external script retrieving file dependencies would be welcome, unless it already exists, either in latex or in lyx. In fact, \listfiles does it, but it mixes things w.r.t what tex2lyx does. A good idea would be perhaps to add an output to tex2lyx enumerating the full or relative path of the converted files, but IMHO an external script would be more useful in the future (the current retroconversion will not be necessary when 1.4 is released). -- Jean-Pierre
Re: Latex import problem
TGreiner wrote: -t 221 doesn´t work: 241: Format not supported or single -to doesn´t work. I get the old error. Thomas ... and this error has been explained to you. The python that Ruurd packaged with his port of LyX to Windows doesn't contain many of the modules of standard python that the LyX 1.4 version of lyx2lyx requires. Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go get a real python package from www.python.org. Angus
Re: Latex import problem
-t 221 doesn´t work: 241: Format not supported or single -to doesn´t work. I get the old error. Thomas On Wed, 18 May 2005 13:48:52 +0200, Kornel Benko wrote: >On Wednesday 18 May 2005 13:26, Sven Schreiber wrote: >> TGreiner wrote: >> >> > a,I converted to ver 1.4. This Lyx file only contains commands for >> > images but no more the original text of the Latex-file >> > b,Then by converting to 1.3.5 I get the following error: >> > >> > python lyx2lyx -to 221 test.lyx > test13.lyx > >this should be either '-t' or '--to' > >e.g. > python lyx2lyx -t 221 test.lyx > test13.lyx > > > Regards > Kornel > >-- >Kornel Benko >[EMAIL PROTECTED] >+49 30 3377 6216 >
Re: Latex import problem
On Wednesday 18 May 2005 13:26, Sven Schreiber wrote: > TGreiner wrote: > > > a,I converted to ver 1.4. This Lyx file only contains commands for > > images but no more the original text of the Latex-file > > b,Then by converting to 1.3.5 I get the following error: > > > > python lyx2lyx -to 221 test.lyx > test13.lyx this should be either '-t' or '--to' e.g. python lyx2lyx -t 221 test.lyx > test13.lyx Regards Kornel -- Kornel Benko [EMAIL PROTECTED] +49 30 3377 6216 pgpFbEc2aO6Ob.pgp Description: PGP signature
Re: Latex import problem
TGreiner wrote: > a,I converted to ver 1.4. This Lyx file only contains commands for > images but no more the original text of the Latex-file > b,Then by converting to 1.3.5 I get the following error: > > python lyx2lyx -to 221 test.lyx > test13.lyx > 'import site' failed; use -v for traceback > o: Invalid LyX format I think I had the same problem once (on Windows); it seems the bundled python interpreter that comes with lyx1.3.5 on win is a little too stripped down (bear in mind windows is not really a target platform of 1.3.5). You could install the full python and/or make sure the "right" python variant is in your PATH. hth, sven
Re: Latex import problem
TGreiner wrote: > a,I converted to ver 1.4. This Lyx file only contains commands for > images but no more the original text of the Latex-file Could you post your original .tex file that you cannot convert to LyX 1.4 format using tex2lyx. If you don't want to post it to the list, then post it to leeming AT lyx DOT org. -- Angus
Re: Latex import problem
a,I converted to ver 1.4. This Lyx file only contains commands for images but no more the original text of the Latex-file b,Then by converting to 1.3.5 I get the following error: python lyx2lyx -to 221 test.lyx > test13.lyx 'import site' failed; use -v for traceback o: Invalid LyX format Thomas Greiner On Wednesday 18 May 2005 09:05, TGreiner wrote: > Dear Angus, > thank you for your hints. I could run tex2lyx in a command window. > The Latex file is imported (I see a lot of messages of the included > images - no errors), but no output file is created. What do I have > to do? T. Greiner You have to redirect the output to STDOUT to a file. Here's how I convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x version .lyx file and then convert this .lyx file to something that LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 1.3.5.) $ qlyx13x --export latex UserGuide.lyx $ ~/lyx/devel/build/src/tex2lyx/tex2lyx UserGuide.tex > UserGuide_14x.lyx $ python ~/lyx/devel/lib/lyx2lyx/lyx2lyx --to 221 UserGuide_14x.lyx > UserGuide_13x.lyx Going on to export this round-tripped version of the User Guide to latex and running latex twice over both UserGuide.tex and UserGuide_13x.tex $ qlyx13x --export latex UserGuide_13x.lyx $ latex UserGuide $ latex UserGuide $ latex UserGuide_13x $ latex UserGuide_13x produces two .dvi files, UserGuide.dvi, the compiled version of the original UserGuide.lyx and UserGuide_13x.dvi, the compiled version of the round-tripped file. $ ls -l UserGuide.dvi UserGuide_13x.dvi -rw-rw-r-- 1 angus angus 497972 May 18 10:22 UserGuide_13x.dvi -rw-rw-r-- 1 angus angus 497800 May 18 10:22 UserGuide.dvi Note that there is a small difference in size between the two, indicating that conversion lyx->tex->lyx was not perfect, but the difference is pretty small. So far, I've been unable to see any human-visible differences. Regards, Angus ps, please post to the lyx-users list. A. > On Tue, 17 May 2005 22:23:53 +0100, Angus Leeming wrote: > >Luis Rivera wrote: > >> AFAIK, LaTeX import occurs in two phases: first reLyX/tex2lyx > >> translates LaTeX to some version of LyX, and then lyx2lyx > >> converts it to the right version of LyX format you may be using: > >> 221, for LyX 1.3.5 > > > >That's essentially correct. However, reLyX generates a horrible > > mish-mash of different file formats that must "somehow" be > > deciphered by lyx2lyx. > > > >tex2lyx generates a completely consistent lyx file, version 241, > > which must then be converted back to version 221 so that LyX > > 1.3.5 can understand it. > > > >> I still use the `old' reLyX script, for tex2lyx, in its current > >> incarnation, is too bloated to my taste, and I have to reconvert > >> the output to LyX 221 anyway. > > > > tex2lyx is bloated? For what definition of bloated? Two > > things that it does do, which reLyX does not, is understand most > > 'reasonable' LaTeX and generate a consistent .lyx file. > > > >If you have any substantive problems with tex2lyx, then PLEASE > > bring them forward. We rely on your feedback to improve it. > > However, please do not suggest to people on this list that they > > use reLyX in preference to tex2lyx. reLyX is a broken hack and > > unsupported nightmare. > > > >-- > >Angus
Re: Latex import problem
On Wednesday 18 May 2005 09:05, TGreiner wrote: > Dear Angus, > thank you for your hints. I could run tex2lyx in a command window. > The Latex file is imported (I see a lot of messages of the included > images - no errors), but no output file is created. What do I have > to do? T. Greiner You have to redirect the output to STDOUT to a file. Here's how I convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x version .lyx file and then convert this .lyx file to something that LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 1.3.5.) $ qlyx13x --export latex UserGuide.lyx $ ~/lyx/devel/build/src/tex2lyx/tex2lyx UserGuide.tex > UserGuide_14x.lyx $ python ~/lyx/devel/lib/lyx2lyx/lyx2lyx --to 221 UserGuide_14x.lyx > UserGuide_13x.lyx Going on to export this round-tripped version of the User Guide to latex and running latex twice over both UserGuide.tex and UserGuide_13x.tex $ qlyx13x --export latex UserGuide_13x.lyx $ latex UserGuide $ latex UserGuide $ latex UserGuide_13x $ latex UserGuide_13x produces two .dvi files, UserGuide.dvi, the compiled version of the original UserGuide.lyx and UserGuide_13x.dvi, the compiled version of the round-tripped file. $ ls -l UserGuide.dvi UserGuide_13x.dvi -rw-rw-r-- 1 angus angus 497972 May 18 10:22 UserGuide_13x.dvi -rw-rw-r-- 1 angus angus 497800 May 18 10:22 UserGuide.dvi Note that there is a small difference in size between the two, indicating that conversion lyx->tex->lyx was not perfect, but the difference is pretty small. So far, I've been unable to see any human-visible differences. Regards, Angus ps, please post to the lyx-users list. A. > On Tue, 17 May 2005 22:23:53 +0100, Angus Leeming wrote: > >Luis Rivera wrote: > >> AFAIK, LaTeX import occurs in two phases: first reLyX/tex2lyx > >> translates LaTeX to some version of LyX, and then lyx2lyx > >> converts it to the right version of LyX format you may be using: > >> 221, for LyX 1.3.5 > > > >That's essentially correct. However, reLyX generates a horrible > > mish-mash of different file formats that must "somehow" be > > deciphered by lyx2lyx. > > > >tex2lyx generates a completely consistent lyx file, version 241, > > which must then be converted back to version 221 so that LyX > > 1.3.5 can understand it. > > > >> I still use the `old' reLyX script, for tex2lyx, in its current > >> incarnation, is too bloated to my taste, and I have to reconvert > >> the output to LyX 221 anyway. > > > > tex2lyx is bloated? For what definition of bloated? Two > > things that it does do, which reLyX does not, is understand most > > 'reasonable' LaTeX and generate a consistent .lyx file. > > > >If you have any substantive problems with tex2lyx, then PLEASE > > bring them forward. We rely on your feedback to improve it. > > However, please do not suggest to people on this list that they > > use reLyX in preference to tex2lyx. reLyX is a broken hack and > > unsupported nightmare. > > > >-- > >Angus
Re: Latex import problem
Luis Rivera wrote: > AFAIK, LaTeX import occurs in two phases: first reLyX/tex2lyx translates > LaTeX to some version of LyX, and then lyx2lyx converts it to the right > version of LyX format you may be using: 221, for LyX 1.3.5 That's essentially correct. However, reLyX generates a horrible mish-mash of different file formats that must "somehow" be deciphered by lyx2lyx. tex2lyx generates a completely consistent lyx file, version 241, which must then be converted back to version 221 so that LyX 1.3.5 can understand it. > I still use the `old' reLyX script, for tex2lyx, in its current > incarnation, is too bloated to my taste, and I have to reconvert the > output to LyX 221 anyway. tex2lyx is bloated? For what definition of bloated? Two things that it does do, which reLyX does not, is understand most 'reasonable' LaTeX and generate a consistent .lyx file. If you have any substantive problems with tex2lyx, then PLEASE bring them forward. We rely on your feedback to improve it. However, please do not suggest to people on this list that they use reLyX in preference to tex2lyx. reLyX is a broken hack and unsupported nightmare. -- Angus
Re: Latex import problem
TGreiner wrote: > Hello, > I tried the German Win32 version on Lyx 1.3.5. Buy importing a Latex > document, I got the following error: > "Der Befehl "...lyx1.3.5/lyx/share/lyx/lyx2lyx/lyx2lyx" ist entweder > falsch > geschrieben oder konnte nicht gefunden werden." > Please can you give me advice. > Thanks. > T. Greiner Please don't reply to mails when you wish to start an entirely new thread. I'm likely to miss your post as it appears in my reader as - [Fwd: Re: Metapost problems]marc |_ Latex import problem TGreiner Anyway, to reply to your question. There is a bug in LyX/Win 1.3.5 in that lyx2lyx is invoked as "lyx2lyx foo bar". Unfortunately, lyx2lyx is a python script and Windows isn't smart enough to work this out. LyX 1.3.6 will invoke the script as "python /lyx2lyx foo bar", but that isn't much help to you. I suggest that you add a lyx2lyx.bat file to the directory containing lyx2lyx and call the real lyx2lyx file from there. -- Angus
Re: Latex import problem
Uwe StÃhr <[EMAIL PROTECTED]> writes: > > TGreiner schrieb: > > > I tried the German Win32 version on Lyx 1.3.5. By importing a Latex > > document, I got the following error: > > "Der Befehl "...lyx1.3.5/lyx/share/lyx/lyx2lyx/lyx2lyx" ist entweder > > falsch > > geschrieben oder konnte nicht gefunden werden." > > LyXWin is still a bit buggy in including/converting documents. You can > have a look at > > http://wiki.lyx.org/LyX/WindowsSetup > > if someone published a solution. > > But lyx2lyx is a converter for different LyX file versions. If you want > to convert LaTeX to LyX, you should check out the new program tex2lyx: > > http://wiki.lyx.org/LaTeX/LatexToLyx > > regards Uwe > > AFAIK, LaTeX import occurs in two phases: first reLyX/tex2lyx translates LaTeX to some version of LyX, and then lyx2lyx converts it to the right version of LyX format you may be using: 221, for LyX 1.3.5 I still use the `old' reLyX script, for tex2lyx, in its current incarnation, is too bloated to my taste, and I have to reconvert the output to LyX 221 anyway. So simply use the lyx2lyx.cmd suggested in the wiki page, and you may be all set. If that fails, you may cook a tex2lyx.cmd file calling both reLyX and lyx2lyx, in fact faking the behavior of the new tex2lyx... Luis.
Re: Latex import problem
TGreiner schrieb: I tried the German Win32 version on Lyx 1.3.5. By importing a Latex document, I got the following error: "Der Befehl "...lyx1.3.5/lyx/share/lyx/lyx2lyx/lyx2lyx" ist entweder falsch geschrieben oder konnte nicht gefunden werden." LyXWin is still a bit buggy in including/converting documents. You can have a look at http://wiki.lyx.org/LyX/WindowsSetup if someone published a solution. But lyx2lyx is a converter for different LyX file versions. If you want to convert LaTeX to LyX, you should check out the new program tex2lyx: http://wiki.lyx.org/LaTeX/LatexToLyx regards Uwe
Latex import problem
Hello, I tried the German Win32 version on Lyx 1.3.5. Buy importing a Latex document, I got the following error: "Der Befehl "...lyx1.3.5/lyx/share/lyx/lyx2lyx/lyx2lyx" ist entweder falsch geschrieben oder konnte nicht gefunden werden." Please can you give me advice. Thanks. T. Greiner