Theorem環境について
! Missing \endcsnname inserted
<to be read again>
\relax
l.8 \newtheorem{theo}{定理}[section]
というエラーが出てきます。
定理環境部分に関しての最小限
\theoremstyle{definition,break}
\newtheorem{theo}{定理}[section]
\newtheorem{axi}{公理}
\newtheorem{defi}[theo]{定義}
\newtheorem{lemm}[theo]{補題}
のみをプリアンブルに書くと,エラーは出ないので何かが干渉したりしてるのかなと思うのですが,どこを直せばよいでしょうか?
宜しくお願いします。
<エラーが出るプリアンブル>
\documentclass[uplatex,titlepage]{jsarticle}
\setcounter{tocdepth}{3}
\usepackage{amsmath,amssymb,amsthm,bm,cases,url,theorem}
\usepackage[dvipdfmx,hiresbb]{graphicx}
\usepackage[dvipdfmx,bookmarks=true,pdfborder={0 0 0},pdfauthor={(私の本名)}]{hyperref}
\usepackage{pxjahyper}
\theoremstyle{definition,break}
\newtheorem{theo}{定理}[section]
\newtheorem{axi}{公理}
\newtheorem{defi}[theo]{定義}
\newtheorem{lemm}[theo]{補題}
%%%ここから参照コマンドの定義%%%
\renewcommand{\eqref}[1]{式(\ref{#1})} %式参照
\newcommand{\figref}[1]{図\ref{#1}} %図参照
\newcommand{\tabref}[1]{表\ref{#1}} %表参照
\newcommand{\theoref}[1]{定理\ref{#1}} %定理参照
\newcommand{\defiref}[1]{定義\ref{#1}} %定義参照
\newcommand{\lemmref}[1]{補題\ref{#1}} %補題参照
%%%ここまで参照コマンドの定義%%%
%%%ここから数学記号マクロの定義%%%
\newcommand{\eqdef}{\stackrel{\mathrm{def.}}{\equiv}} %定義記号
\newcommand{\dif}[2]{\dfrac{d #1}{d #2}} %導関数
\newcommand{\pdif}[2]{\dfrac{\partial #1}{\partial #2}} %偏導関数
\renewcommand{\div}{{\rm div}} %div
\newcommand{\rot}{{\rm rot}} %rot
\newcommand{\grad}{{\rm grad}} %grad
\newcommand{\unit}[1]{\ \rm{#1}} %単位
%%%ここまで数学記号マクロの定義%%%
\renewcommand{\theequation}{\arabic{section}.\arabic{equation}} %数式番号を(section.通し番号)の形式に
\renewcommand\proofname{\bf 証明} %証明の書き出しを設定
\makeatletter
\@addtoreset{equation}{section} %数式番号を節ごとにリセット
\AtBeginDocument{\hypersetup{pdftitle={\@title}}} %pdfのタイトルを自動的に\titleにする
%%%ここから定理環境後の.削除%%%
\def\@thm#1#2#3{
\ifhmode\unskip\unskip\par\fi
\normalfont
\trivlist
\let\thmheadnl\relax
\let\thm@swap\@gobble
\thm@notefont{\fontseries\mddefault\upshape}
\thm@headpunct{}
\thm@headsep 5\p@ plus\p@ minus\p@\relax
\thm@space@setup
#1
\@topsep \thm@preskip
\@topsepadd \thm@postskip
\def\@tempa{#2}\ifx\@empty\@tempa
\def\@tempa{\@oparg{\@begintheorem{#3}{}}[]}
\else
\refstepcounter{#2}
\def\@tempa{\@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]}
\fi
\@tempa
}
%%%ここまで定理環境後の.削除%%%
\makeatother