%\documentclass[a4j]{jsarticle}
\usepackage{amsmath, graphics}
\usepackage{latexsym,theorem}
\usepackage[psamsfonts]{amssymb}
%\usepackage{amsmath,amssymb}
\usepackage{wrapfloat}

\newcommand{\mathsym}[1]{{}}  %
\newcommand{\unicode}[1]{{}}  %

\usepackage{pifont}
%\ding{30} & \ding{31} & \ding{32} & \ding{33} & 。。。 & \ding{254} 
\usepackage[dviout]{graphicx,color}
\usepackage{verbatim}

%\begin{proof}[Proof of hogehoge]
%   定理の証明
%\end{proof}
%\usepackage{mathpazo}            
%\usepackage{booktabs}
%\usepackage[dvips]{graphicx,color}

\usepackage{shadethm}
\newshadetheorem{theorem}{定理}[section]
\newshadetheorem{cor}[theorem]{系}
\newtheorem{remark}[theorem]{注釈}
\newtheorem{unshadedtheorem}[theorem]{定理}
%\newtheorem{comment}{コメント}[section]
\newtheorem{prop}{命題}[section]%命題
\newtheorem{defn}{定義}[section]%定義
\newtheorem{assm}{仮定}[section]%仮定
%                       theorem ---> theorem
%\newtheorem{theorem}{定理}[section]%定理
\newtheorem{cory}{系　}[section]%系
\newtheorem{lema}{補題}[section]%補題
\newtheorem{remk}{注意}[section]%注意
\newtheorem{exap}{例題}[section]%例題
\newtheorem{yotn}{要点}[section]%要点
\newcommand{\proof}{\textbf{証明：}}%証明
\newtheorem{Toi}{問}[section]   %問い 


%\newcommand{\hxi}{\matheorem{\xi}}
%\newcommand{\remark}{\textbf{注意}}

\renewcommand{\theequation}{%
\thesection.\arabic{equation}}
\numberwithin{equation}{section}   % amsmath パッケージ
%%%
%%%\@addtoreset{equation}{section} 
%%%\def\theequation{\thesection.\arabic{equation}}



\makeatletter
\newenvironment{indentverb}
  {\def\verbatim@processline{%
    \hspace*{4zw}\the\verbatim@line\par}%
   \verbatim}
  {\endverbatim}
\makeatother 
%\verb|\begin{quote}\begin{verbatim}|
%\begin{quote}
% \begin{verbatim}
%   abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
%   !"#$\%&`'()~\|/
% \end{verbatim}
%\end{quote}



\usepackage{wrapfig}
%2段に分けて図を入れるコマンド
% \rightfigure{ここに文章を入れる}{scale=0.4}{filename.eps}{図のキャプション}
% \leftfigure{ここに文章を入れる}{scale=0.4}{filename.eps}{図のキャプション}
%
% \rightfigure{
%   ここは図の左側にくる文章です．
%   }{scale=0.4}{filename.eps}{図のキャプション}
\newlength{\minitwocolumn}
\newcommand{\rightfigure}[4]{%
\setlength{\minitwocolumn}{0.5\textwidth}
\addtolength{\minitwocolumn}{-0.5\columnsep}%
\ \vspace*{-1\baselineskip}\\
\begin{minipage}[t]{\minitwocolumn}%
#1\end{minipage}%
\hspace{\columnsep}%
\begin{minipage}[t]{\minitwocolumn}%
\begin{center}
\ \vspace*{2mm}\\
\includegraphics[#2]{#3}\\
\refstepcounter{figure}
\vspace*{2mm}
図\thefigure:~#4
\end{center}\end{minipage}\\%
\vspace*{-0.16\baselineskip}
}%%%%
% \leftfigure{
%   ここは図の右側にくる文章です．
%   }{scale=0.4}{filename.eps}{図のキャプション}
\newcommand{\leftfigure}[4]{%
\begin{minipage}[t]{\minitwocolumn}
 \begin{center}
  \ \vspace*{2mm}\\
  \includegraphics[#2]{#3}\\
  \refstepcounter{figure}
  \vspace*{2mm}図\thefigure:~#4
 \end{center}
\end{minipage}%
\hspace{\columnsep}%
\begin{minipage}[t]{\minitwocolumn}%
  #1%
\end{minipage}%
\vspace*{-0.16\baselineskip}
}%%%%%

%  両幅いっぱいにテキストを囲む枠
%   \begin{FRAME}
%     枠内の内容
%   \end{FRAME}
\newenvironment{FRAME}{\begin{trivlist}\item[]
  \hrule
  \hbox to \linewidth\bgroup
    \advance\linewidth by -30pt
    \hsize=\linewidth
    \vrule\hfill
    \vbox\bgroup
      \vskip15pt
      \def\thempfootnote{\arabic{mpfootnote}}%foot note to arabic
      \begin{minipage}{\linewidth}}{%
      \end{minipage}\vskip15pt
    \egroup\hfill\vrule
  \egroup\hrule
\end{trivlist}}

\renewcommand{\labelenumi}{(\theenumi)}

