Thanks a lot.
I have done as you said. But it is the same error. Do i need to change the
cls file ?
Layout file has been attached.
Sorry to disturbe you again.
Best,
KC Cao

On Thu, Nov 1, 2018 at 1:56 PM Richard Kimberly Heck <rikih...@lyx.org>
wrote:

> On 11/1/18 1:07 PM, caoke...@gmail.com wrote:
>
> 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.
>
>
> Yes, that is the offending code, since it imports the theorem environment.
> But that's not what I said to do. You need to do the following:
>
> (1) Stop using the theorems module.
>
> (2) Instead of using the theorems module, copy all the code from
> theorems-std.inc, theorems-proof.inc, and theorems-proof-std.inc (the
> theorems module just imports these) over to your layout file for mcauth.
> BUT, when you do that, comment out sections that look like this:
>
>         Preamble
>                 \theoremstyle{plain}
>                 \newtheorem{thm}{\protect\theoremname}
>         EndPreamble
>         LangPreamble
>                 \providecommand{\theoremname}{_(Theorem)}
>         EndLangPreamble
>         BabelPreamble
>
> \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
>         EndBabelPreamble
>
> Better to comment them out. Then, if you happen to have used some type of
> theorem environment that is not already defined in mcauth, you can
> uncomment that one.
>
> Note that you should only copy the stuff AFTER the format tag.
> Riki
>
>
>
>
> Best Regards,
>
>
>
> KC Cao
>
>
>
>
>
>
>
> *发件人**:* Richard Kimberly Heck [mailto:rikih...@lyx.org <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 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 <rikih...@lyx.org>]
>
> *发送时间:* Thursday, November 1, 2018 11:27 AM
> *收件人:* Ke-Cai Cao <caoke...@gmail.com> <caoke...@gmail.com>
> *抄送:* 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>
> 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
>
>
>
>
>
>
>
>
>

Attachment: rncauth_revise.layout
Description: Binary data

Reply via email to