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