Whenever I import a TEX file into LyX, LyX adds the following lines:
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
   \theoremstyle{plain}
   \newtheorem{thm}{Theorem}[section]
   \numberwithin{equation}{section} %% Comment out for sequentially-numbered
   \numberwithin{figure}{section} %% Comment out for sequentially-numbered

These lines do not appear in the LyX preamble but are there if I export back
out to TEX. The lines are giving me a theorem environment redefined error.

Question:
How do I stop LyX from trying to define its own Theorem environment? 
(Note: I have to use a stacs.cls file that already defines the theorem
environment, so I cannot afford for LyX to insert these lines into the
code.)

Thank you,
-Atlas
-- 
View this message in context: 
http://n2.nabble.com/Textclass-specific-LaTeX-commands.-tp1083305p1083305.html
Sent from the LyX - Users mailing list archive at Nabble.com.

Reply via email to