LyXError with Import from TeX

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
dragoshenron
Posts: 4
Joined: Fri Sep 16, 2011 4:20 pm

Error with Import from TeX

Post by dragoshenron »

Hello there!
I'm writing my PhD thesis with Lyx.
My university has a specific class, layouts and so on. These is the content of the latex package:

Code: Select all

[.]                      [..]                     adsphd.cls
allpapers.bib            cover_sample.tex         defs.tex
extract_from_bibtex.py   glossary.sty             Makefile
Makefile.settings        mycoverpage.tex          README.txt
thesis.tex               VERSION                  [image]
[chapters]
where 'thesis.tex' is the main tex file for the final booklet.
I'm using Lyx 2.0.0 for windows.

First attempt: I tried to import this .tex in LyX but I got this error:

Code: Select all

15:41:09.393: Importing X:\adsphd\thesis.lyx...
15:41:14.815: tex2lyx -f "thesis.tex" "thesis.lyx"
15:41:29.456: Overwriting existing file X:/adsphd/thesis.lyx
15:41:30.581: Cannot read layout file `'.
15:41:30.596: Error reading `'
15:41:30.596: (Check `adsphd')
15:41:30.596: Check your installation and try Options/Reconfigure...
15:41:30.596: Error: Could not read layout file for textclass "adsphd".
..\..\..\lyx-2.0.0\src\support\Systemcall.cpp(238): Systemcall: 'tex2lyx -f "thesis.tex" "thesis.lyx"' finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred while running:
tex2lyx -f "thesis.tex" "thesis.lyx"
15:41:41.581: file not imported!
15:41:41.596: (buffer-import latex)
So I tried to launch it from console, but the same error appears.

Someone could give me an hint? I can send the zip file with the full package to someone can help me to 'lyxifing' it :)

Thanks in advance and very best regards,
Alex Masolin

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kl19
Posts: 1
Joined: Wed Dec 05, 2012 1:03 pm

Re: Error with Import from TeX

Post by kl19 »

Does anybody have a solution for the specified problem? I have the same Eroor message reading (or trying to read) a tex file. The class file is DissOnlineLatex.cls if anybody knows it...
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Error with Import from TeX

Post by scottkosty »

kl19 wrote:Does anybody have a solution for the specified problem? I have the same Eroor message reading (or trying to read) a tex file. The class file is DissOnlineLatex.cls if anybody knows it...
It is very difficult to parse LaTeX so LaTeX -> LyX is far from perfect and should not be expected to work well. However, I have seen some patches in the last few weeks regarding tex2lyx so you could try with the development version. I would not be too hopeful though.

Best of luck!

Scott
marcos
Posts: 14
Joined: Mon Feb 04, 2013 10:45 am

Re: Error with Import from TeX

Post by marcos »

Hello,

I'm haveing the same problem with my PhD thesis. The problem seem to be related with the bibliography. When I try to insert the bibliography in my Lyx document it does not work. At the moment I don't have the solution.

Regards
Post Reply