RE: Lyx to Latex to Lyx
If you used Lyx to create the LaTeX file, then you already have the helper file to that would be needed to work with the LaTeX. It is just the filename.lyx file that created it in the first place. For my own work, I do this all the time. Create a document with Lyx, and send it to a journal as the .tex file with the figure files also attached. Going the other way just doesn't work. I can't imagine an automated routine that would look at an arbitrary .tex file and figure out what set of .layout, and template files that could be used to create it again. OTOH, maybe I just don't have sufficient imagination. From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of Hal Kierstead Sent: Thursday, August 13, 2015 3:54 PM To: Mike Reeks mike.re...@newcastle.ac.uk Cc: Lyx-users lyx-users@lists.lyx.org Subject: Re: Lyx to Latex to Lyx On Aug 13, 2015, at 12:02 PM, Mike Reeks mike.re...@newcastle.ac.uk mailto:mike.re...@newcastle.ac.uk wrote: Dear Lyx Users I have written a very large article in Lyx for publication in a scientific journal which will only accept the article as a latex file. Of course Lyx will generate a Latex file as well as a pdf file. I wanted to check that the Latex file is acceptable to Lyx. Unfortunately I get an error window Lyx insetP saying 'Unknown parameter name'. So what does that mean? Can anyone help. Most grateful. Does that mean I will encounter problems using the latex to produce pdf files direct. It would seem odd that Lyx wont read the latex file it produces! Regards Mike Reeks I have used LyX for a long time, and really like it, but I think this is its biggest weakness. I also think this is a major obstacle to its wider adoption. When I collaborate with somebody who does not use LyX I am forced to use LaTex, rather than to be able to show off how easy LyX is to use. I understand that it maybe very difficult convert an arbitrary LaTex file LyX, but it should be routine to convert a LaTex file constructed by LyX, perhaps by producing an extra helper file during the first conversion. Hal
RE: Lyx to Latex to Lyx
Hal, I think I did understand. You want your collaborator to be able to make arbitrary changes to the .tex file, then have tex2lyx figure out how to create a new .lyx file. But your collaborator could have done anything. That makes the “modified” file no different from any other completely arbitrary new input file. Steve Steve - I do not think you understood me. Suppose a create a LyX file and use it to generate a tex file. I send it to my coauthor who does not use LyX. He makes modifications to the LaTex file without changing the front material, and sends me his Tex file. I should be able to use tex2lyx to make a revised version of my LyX file. But this requires many corrections by hand. Hal
RE: Lyx to Latex to Lyx
If you used Lyx to create the LaTeX file, then you already have the "helper file" to that would be needed to work with the LaTeX. It is just the .lyx file that created it in the first place. For my own work, I do this all the time. Create a document with Lyx, and send it to a journal as the .tex file with the figure files also attached. Going the other way just doesn't work. I can't imagine an automated routine that would look at an arbitrary .tex file and figure out what set of .layout, and template files that could be used to create it again. OTOH, maybe I just don't have sufficient imagination. From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of Hal Kierstead Sent: Thursday, August 13, 2015 3:54 PM To: Mike ReeksCc: Lyx-users Subject: Re: Lyx to Latex to Lyx On Aug 13, 2015, at 12:02 PM, Mike Reeks > wrote: Dear Lyx Users I have written a very large article in Lyx for publication in a scientific journal which will only accept the article as a latex file. Of course Lyx will generate a Latex file as well as a pdf file. I wanted to check that the Latex file is acceptable to Lyx. Unfortunately I get an error window Lyx insetP saying 'Unknown parameter name'. So what does that mean? Can anyone help. Most grateful. Does that mean I will encounter problems using the latex to produce pdf files direct. It would seem odd that Lyx wont read the latex file it produces! Regards Mike Reeks I have used LyX for a long time, and really like it, but I think this is its biggest weakness. I also think this is a major obstacle to its wider adoption. When I collaborate with somebody who does not use LyX I am forced to use LaTex, rather than to be able to show off how easy LyX is to use. I understand that it maybe very difficult convert an arbitrary LaTex file LyX, but it should be routine to convert a LaTex file constructed by LyX, perhaps by producing an extra helper file during the first conversion. Hal
RE: Lyx to Latex to Lyx
Hal, I think I did understand. You want your collaborator to be able to make arbitrary changes to the .tex file, then have tex2lyx figure out how to create a new .lyx file. But your collaborator could have done anything. That makes the “modified” file no different from any other completely arbitrary new input file. Steve Steve - I do not think you understood me. Suppose a create a LyX file and use it to generate a tex file. I send it to my coauthor who does not use LyX. He makes modifications to the LaTex file without changing the front material, and sends me his Tex file. I should be able to use tex2lyx to make a revised version of my LyX file. But this requires many corrections by hand. Hal
RE: Cannot Export Lyx to latex on Mac
Thanks for the hint on running from a command window to see more useful error messages. As it turned out, my problem existed only with a nonstandard class/layout combination. The reported error was that tex2lyx could not find the .layout file. The reason was that the layout file and the class file had different names (jasatex.cls and jasa.layout). The layout file contains the class file name, but not vice versa, so tex2lyx didn't know where to find the layout. The problem was fixed by renaming the layout file to jasatex.layout; i.e. fixing the original operator error. Thanks again, Steve -Original Message- From: RIchard Heck [mailto:rgh...@comcast.net] Sent: Monday, May 24, 2010 9:11 PM To: Stephen Thompson Cc: lyx-users@lists.lyx.org Subject: Re: Cannot Export Lyx to latex on Mac On 05/24/2010 08:15 PM, Stephen Thompson wrote: I am also a new user -- and have the same issue. I have not been able to convert in either direction between LyX and LaTeX. How ever I am able to View-View Source. What appears seems to be pure LaTeX. So there is a problem with the copying of the file from the temporary directory, probably. Please run LyX from a terminal and report any error messages. If there aren't any, try running LyX as: lyx -dbg files and, if that doens't work: lyx -dbg any The latter will dump a lot of info. We're only interested in what happens at export time. Richard
RE: Cannot Export Lyx to latex on Mac
Thanks for the hint on running from a command window to see more useful error messages. As it turned out, my problem existed only with a nonstandard class/layout combination. The reported error was that tex2lyx could not find the .layout file. The reason was that the layout file and the class file had different names (jasatex.cls and jasa.layout). The layout file contains the class file name, but not vice versa, so tex2lyx didn't know where to find the layout. The problem was fixed by renaming the layout file to jasatex.layout; i.e. fixing the original operator error. Thanks again, Steve -Original Message- From: RIchard Heck [mailto:rgh...@comcast.net] Sent: Monday, May 24, 2010 9:11 PM To: Stephen Thompson Cc: lyx-users@lists.lyx.org Subject: Re: Cannot Export Lyx to latex on Mac On 05/24/2010 08:15 PM, Stephen Thompson wrote: I am also a new user -- and have the same issue. I have not been able to convert in either direction between LyX and LaTeX. How ever I am able to View-View Source. What appears seems to be pure LaTeX. So there is a problem with the copying of the file from the temporary directory, probably. Please run LyX from a terminal and report any error messages. If there aren't any, try running LyX as: lyx -dbg files and, if that doens't work: lyx -dbg any The latter will dump a lot of info. We're only interested in what happens at export time. Richard
RE: Cannot Export Lyx to latex on Mac
Thanks for the hint on running from a command window to see more useful error messages. As it turned out, my problem existed only with a nonstandard class/layout combination. The reported error was that tex2lyx could not find the .layout file. The reason was that the layout file and the class file had different names (jasatex.cls and jasa.layout). The layout file contains the class file name, but not vice versa, so tex2lyx didn't know where to find the layout. The problem was fixed by renaming the layout file to jasatex.layout; i.e. fixing the original operator error. Thanks again, Steve -Original Message- From: RIchard Heck [mailto:rgh...@comcast.net] Sent: Monday, May 24, 2010 9:11 PM To: Stephen Thompson Cc: lyx-users@lists.lyx.org Subject: Re: Cannot Export Lyx to latex on Mac On 05/24/2010 08:15 PM, Stephen Thompson wrote: > I am also a new user -- and have the same issue. I have not been able to convert in either direction between LyX and LaTeX. How ever I am able to View->View Source. What appears seems to be pure LaTeX. > > So there is a problem with the copying of the file from the temporary directory, probably. Please run LyX from a terminal and report any error messages. If there aren't any, try running LyX as: lyx -dbg files and, if that doens't work: lyx -dbg any The latter will dump a lot of info. We're only interested in what happens at export time. Richard