On 2016-01-31, Uwe Stöhr wrote: > Am 31.01.2016 um 12:12 schrieb Georg Baum:
> And here is what I still did not understand: > I can run lyx2lyx via a fileformat to change the document class to the > new agutex version. I understood it differently: * there is a documentclass with 2 incompatible versions, say foo.cls v1 and foo.cls v2 * LyX supported v1 with a layout called foo.layout * Now we add support for v2, calling it foo.layout but still support the old one (a copy of the old foo.layout now called foo1.layout). The template file templates/foo.lyx should be updated to the new layout with a new lyx version. * lyx2lyx can convert old files (made for v1) to use foo1.layout with the new lyx version. This way, no other change to the document is required and users with the old class file can still compile old documents. * a user can convert old documents to v2 manually: changing Document>Settings>Documentclass from foo1 to foo. This will trigger some "obsoletedby" layout replacements and may still require manual adaption. However, what we really need is version detection for the configuration, so that the user can be warned if the required class file has the wrong version. (If the class file keeps the name over the version change, only one of the two layout files generates compilable documents.) > But > - what can i do for LyX 2.1.5 where no fileformats are allowed? Provide the new layout version via the wiki for download and use in the personal lyx folder. Günter