LyXNew text class breaks old document

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
polyparadigm
Posts: 1
Joined: Sat Mar 12, 2011 6:04 am

New text class breaks old document

Post by polyparadigm »

A LaTeX .cls file became available for dissertations from my university after I began writing with LyX.

I created a .layout file according to the recommendations of the help file, and the text class became available, and changing (a fork of) my dissertation to this new text class raised no errors initially.

Unfortunately, upon trying to typeset the old file, LaTeX complains that I haven't

Code: Select all

\define
d

Code: Select all

\maketitle
e or

Code: Select all

\begin{abstract}
, and refuses to produce an output.

Should I start digging through the .cls file to see what it depends on, and start referring to extra files in my new .layout where the appropriate text class is defined? Do I need to somehow change my document, so that the title and abstract call different functions? What should my next steps be?

By the way, the .cls file is working fine within LaTeX: the sample .tex file included with the document class produces a .pdf output without incident. That .tex file calls

Code: Select all

\begin{abstract}
, so I'm pretty sure the problem is with my .layout file, rather than with MikTeX or the files I received.

Also of interest: switching the text class back breaks the document in a different way. Trying to typeset after changing to thesis.layout, and back to report.layout, gives:
LaTeX Error: Something's wrong--perhaps a missing \item.
Description:
...tentsline {part}{I\hspace {1em}Overview}{3}

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Such errors don't occur in the trunk version, which has remained in report.layout.

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