LyXAdding a custom Class Template

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
iammaxus
Posts: 1
Joined: Sat Jul 30, 2011 5:29 am

Adding a custom Class Template

Post by iammaxus »

I am trying to add a custom .cls template to use in LyX, but seem to be having some trouble. I've attached the .cls, .layout, .tex and .lyx files. Note that I made this .layout file from instructions I found on the web, so it may be the problem. This is under Windows 7

I put the .cls under C:\Users\max\AppData\Roaming\MiKTeX\2.9\tex\latex and ran texhash
I put the .layout under C:\Program Files (x86)\LyX20\Resources\layouts

When I compile under LyX, I get "Undefined control sequence" errors on basically every command defined in the .cls (\prevdegrees, \department, etc). But, I do believe LyX has found my .cls, because when the .cls wasn't in the right place, I got errors about not being able to find it. Additionally, when the compiled directly through pdflatex, it seems to work fine. Seems to be that LyX is just having a problem in generating the correct command for pdflatex.

Any ideas?

Thanks,
Max
Attachments
mitthesis_mas.layout.txt
Note, I had to add the .txt extension to get it past the forums upload filters.
(182 Bytes) Downloaded 243 times
abstract.zip
(84.73 KiB) Downloaded 143 times
mitthesis_mas.cls
(20.34 KiB) Downloaded 240 times

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

Post Reply