LyXuse a cls file in lyx

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
liangbright
Posts: 1
Joined: Sat Jan 11, 2014 4:31 am

use a cls file in lyx

Post by liangbright »

Hi all

I find a strange thing about LyX.

When I was using LyX 2.0.4 on windows 7 several month ago, I could add a XXX.cls file, mitex->refresh FNDB, lyx->reconfig, and then I could use it with my new LyX file.

Now I use LyX 2.0.6 on the same machine, and add the same XXX.cls file, and go through the same process, but I can not use it with my new lyx file => lyx can not find the layout file.

I check the folder ...\LyX 2.0.4\Resources\layouts, and I find XXX.layout which was automatically created by LyX 2.0.4

I check the folder ...\LyX 2.0.6\Resources\layouts, and I can not find XXX.layout.

It seems LyX 2.0.6 removed the auto-converting (from .cls to .layout) function.

BTW, the content of the XXX.layout is

Code: Select all

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[XXX]{article (XXX)}
# Input general definitions
Input stdclass.inc
Last edited by cgnieder on Sun Jan 12, 2014 12:15 pm, edited 1 time in total.

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

StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Re: use a cls file in lyx

Post by StarValkyrie »

Try putting in a new line reading:
Input article.layout

Place it right before Input stdclass.inc and then save, reconfigure LyX, and see if the class becomes available. It should, but depending on your class file, you might need to make additional changes or use ERT.
Post Reply