Am Mittwoch, dem 07.05.2025 um 16:09 +0000 schrieb Marco Morandini:
> Consider the attached .tex file. 
> 
> tex2lyx (lyx 2.4, commit 0a2cc00ddda101eadbe12e5b9c8f23c00fb7f9f3 )
> is not able to import it because
> 
> marco@sun:/tmp/lyx_tmpdir.vyYLPhOYXMfW/lyx_tmpbuf0> tex2lyx2.4 -f
> newfile2.tex newfile2.lyx 
> tex2lyx warning: Creating file
> /tmp/lyx_tmpdir.vyYLPhOYXMfW/lyx_tmpbuf0/newfile2.lyx
> tex2lyx error: Could not read layout file for textclass "svjour3".
> 
> Everything works fine if I add "-c svglobal3". If I get this right
> this is because tex2lyx gets 
> confused by the fact that the layout for svjour3 is called svglobal3
> . 

Yes, this problem has been reported several times, but it hasn't been
addressed yet. One solution would be to rename the layout (but I think
there are other layouts with the same problem), another to make tex2lyx
aware of the differing name.

We have the information in textclass.lst, so tex2lyx could access that
to find the appropriate layout. However, there are also cases where a
class is used by several layouts (e.g.: svjour by svjog.layout and
svglobal.layout). So there might be cases which can only be solved by
manual intervention.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to