Dear Riki, I have positioned the conflict in cls file:
\RequirePackage{pifont,latexsym,ifthen,theorem,rotating,calc} \theorembodyfont{\itshape} \theoremheaderfont{\normalfont\bfseries} \setlength{\theorempreskipamount}{6pt plus 2pt} \setlength{\theorempostskipamount}{6pt plus 2pt} \begingroup \makeatletter \gdef\th@plain{\normalfont\itshape \def\@begintheorem##1##2{% \item[\hskip\labelsep \theorem@headerfont ##1\ {##2.}]}% \def\@opargbegintheorem##1##2##3{% \item[\hskip\labelsep \theorem@headerfont ##1\ ##2\ (##3)]}} \endgroup After I comment them and moved them to the layout, the layout cannot be recognized after restart the LyX. There are more errors now. And there is nothing in the preamble except % rncdoc.tex V1.0, 11 November 2002 %\usepackage[dvips,colorlinks,bookmarksopen,bookmarksnumbered,citecolor=red,urlcolor=red]{hyperref} Thank you so much. Best Regards, KC Cao 发件人: Richard Kimberly Heck [mailto:rikih...@lyx.org] 发送时间: Thursday, November 1, 2018 11:47 AM 收件人: caoke...@gmail.com 抄送: lyx-users@lists.lyx.org 主题: Re: 答复: Conflict between module and cls On 11/1/18 12:42 PM, caoke...@gmail.com <mailto:caoke...@gmail.com> wrote: #% Do not delete the line below; configure depends on this #\DeclareLaTeXClass[rncauth]{article (rncauth)} #Input general definitions Input stdclass.inc OK, then you need to copy the theorem stuff into this file (so LyX knows about it), but REMOVE the preamble parts, which are what are causing the conflict. Riki 发件人: Richard Kimberly Heck [mailto:rikih...@lyx.org] 发送时间: Thursday, November 1, 2018 11:27 AM 收件人: Ke-Cai Cao <mailto:caoke...@gmail.com> <caoke...@gmail.com> 抄送: lyx-users@lists.lyx.org <mailto:lyx-users@lists.lyx.org> 主题: Re: Conflict between module and cls On 10/31/18 10:45 PM, Ke-Cai Cao wrote: Dear Riki, the cls is download from a journal and it has been attached. So what LyX layout file are you using with this? Riki On Wed, Oct 31, 2018 at 9:37 PM Richard Kimberly Heck <rikih...@lyx.org <mailto:rikih...@lyx.org> > wrote: On 10/31/18 9:54 PM, Ke-Cai Cao wrote: Dear all, After I choose the module of Theorem in using LyX, there is conflict between the theoremstyle of LyX’s module and that in .cls. Which cls? If the class file provides the theorem style, then that should be said there, and we should have a way to avoid duplication. Riki