% preamble
\usepackage{amsmath,amssymb,latexsym}
\usepackage{graphicx}%%% グラフ
\usepackage{dashrule}
\usepackage{wrapfloat}%回り込み環境
\usepackage{slashbox}% 斜め罫線
\usepackage{mathpazo}%期待値のところで
\usepackage{comment}
%\usepackage{eclclass}
%\usepackage{titletoc}
%\usepackage[bf,raggedleft,compact,topmarks,calcwidth,pagestyles]{titlesec}
%\usepackage{fancyhdr}
%\usepackage{multicol}
\usepackage{enumerate}
\usepackage[all]{xy}
%   \begin{xy}  ...  \end{xy}
%\usepackage{lastpage}
\usepackage{url}
\usepackage{comment,dashrule,ascmac} %itembox
%\pagestyle{empty}
%\newcommand{\hxi}{\matheorem{\xi}}
%\newcommand{\remark}{\textbf{注意}}
\renewcommand{\theequation}{%
\thesection.\arabic{equation}}
%\@addtoreset{equation}{section}
%
%印刷部分の大きさの指定
\setlength{\topmargin}{-50pt}
\setlength{\oddsidemargin}{-3mm}
\setlength{\evensidemargin}{-3mm}
\setlength{\textheight}{25cm}
\setlength{\textwidth}{16cm}
\setlength{\footskip}{6mm}
%
%定理環境
\usepackage{theorem}
\theorembodyfont{\upshape }
\theoremstyle{break}
\newtheorem{Def}{定義}[section]
\newtheorem{Toi}{問}[section]
\newtheorem{Thm}{定理}[section]
\newtheorem{Lem}[Thm]{補題}
\newtheorem{Cor}[Thm]{系}
\newtheorem{Exa}{例題}
%
%  \begin{Thm}  ...  \end{Thm}
%
%
% 式番号の付け方
\makeatletter
 \renewcommand{\theequation}{%
   \thesection.\arabic{equation}}
  \@addtoreset{equation}{section}
\makeatother
%
%両幅いっぱいにテキストを囲む枠
%   \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}}
%
%
%  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}
}%%%%%
%
%
%
\usepackage{makeidx}
\makeindex   
%
%

