help

Richard Kimberly Heck rikiheck at lyx.org
Tue Nov 9 17:03:12 UTC 2021


On 11/9/21 03:39, Komeil Nosrati wrote:
>
> Dear users,
>
> I hope you are doing very well.
>
> Recently I tried to import a .tex file (attached with this email)  to 
> Lyx software, however the following error happened.
>
> *An error occurred while running:*
>
> *“C:/Program Files/LyX 2.3/bin/tex2lyx” -f “generic-color.tex” 
> “generic0color.lyx”*
>
> It would be appreciated if you let me know if there is any solution 
> for this problem.
>
Looking at the tex file, it appears that it uses a document class 
ieeecolor. LyX does not have a layout file for that, so that is the 
cause of the error.

The solution is to write a layout file for ieeecolor.cls. That appears 
to be based upon ieeetran, so something like:

    #% Do not delete the line below; configure depends on this
    #  \DeclareLaTeXClass{ieeeolor}
    #  \DeclareCategory{Articles}

    Format 66
    Input IEEETran.layout

(saved as layouts/ieeecolor.layout, then reconfigure) should get you 
much of the way there. Some things will import as ERT (whatever 
ieeecolor does that IEEETran does not), but that can be fixed. Please 
see chapter 5 of the Customization manual for more info.

Riki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20211109/350b8cac/attachment.html>


More information about the lyx-users mailing list