On 3/22/22 09:23, Uwe Brauer wrote:
Hi
I tried with the above version to import a LaTeX file that is written with the
exam class.
The error message reads:
Creating file /home/oub/Downloads/Annu/annu-sol-template.lyx
Error: Could not read layout file for textclass "exam".
support/Systemcall.cpp (276): Systemcall: '/usr/bin/tex2lyx -f "annu-sol-template.tex"
"annu-sol-template.lyx"' finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred while running:
/usr/bin/tex2lyx -f "annu-sol-template.tex" "annu-sol-template.lyx"
I attach the file just in case.
Any change to convert that?
Thanks and regards
Uwe Brauer
In order to use a LaTeX class in LyX, you have to have a corresponding
layout file (which essentially maps elements of the LaTeX class to
visual elements in the GUI). As far as I know, LyX does not provide a
layout file for the exam class. There is a user-provided layout at
https://github.com/fuhrmanator/lyx-layouts. Assuming you have the TeX
class (exam.cls) installed, you can download the layout file from
GitHub, put in your local layouts file (~/.lyx/layouts), reconfigure and
restart LyX and try that.
Paul
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel