일부 패키지 간의 충돌

일부 패키지 간의 충돌

다음은 제가 사용하고 있는 패키지이지만 계속해서 오류를 보고합니다.

LaTeX 오류: \theoremstyle 명령이 이미 정의되어 있습니다. 또는 이름 \end... 불법입니다. 매뉴얼 192페이지를 참조하세요.

예:

\documentclass[twocolumn]{autart}    

\usepackage{graphics,epsfig,epstopdf}
\usepackage{amsmath,amssymb,psfrag,mathtools}
\usepackage{amsthm}
\usepackage{cite}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{mleftright}
\usepackage[makeroom]{cancel}
\usepackage{tikz}

\newcommand{\lla}{\langle\langle}
\newcommand{\rra}{\rangle\rangle}
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
            \node[shape=circle,draw,inner sep=1pt] (char) {#1};}}

\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{remark}{Remark}
\newtheorem{proposition}{Proposition}

\begin{document}

 ...  

\end{document}

답변1

사용하는 문서 클래스에는 패키지 작업을 위한 옵션이 있습니다 amsthm.

또한 정의하려는 모든 환경은 이미 문서 클래스에 의해 다음과 같이 정의되어 있습니다.

\newtheorem{thm}{Theorem}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{rem}[thm]{Remark}

나는 이것을 단순히 사용할 것입니다 ...


\documentclass[twocolumn,amsthm]{autart}    

\usepackage{graphics,epsfig,epstopdf}
\usepackage{amsmath,amssymb,psfrag,mathtools}
%\usepackage{amsthm}
\usepackage{cite}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{mleftright}
\usepackage[makeroom]{cancel}
\usepackage{tikz}

\newcommand{\lla}{\langle\langle}
\newcommand{\rra}{\rangle\rangle}
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
            \node[shape=circle,draw,inner sep=1pt] (char) {#1};}}

\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{remark}{Remark}
\newtheorem{proposition}{Proposition}

\begin{document}

 ...  

\end{document}

관련 정보