%
% memo.tex
%

\newenvironment{EnvT}[2]{{\em #1}({\em #2})\begin{quote}}{\end{quote}}

\newcommand{\DefEnvT}[2]{\newenvironment{#1}[1]{\begin{EnvT}{#2}{##1}}{\end{EnvT}}}

\DefEnvT{Def}{定義}
\DefEnvT{Th}{定理}
\DefEnvT{Example}{例}
\DefEnvT{SubExample}{類例}

\newenvironment{EnvO}[1]{\begin{description}\item[{[#1]}]}{\end{description}}
\newcommand{\DefEnvO}[2]{\newenvironment{#1}{\begin{EnvO}{#2}}{\end{EnvO}}}

\DefEnvO{Point}{ポイント}
\DefEnvO{Memo}{Memo}
\DefEnvO{Proof}{Proof}
\DefEnvO{Cf}{cf.}
\DefEnvO{Ans}{解答例}

%
%
%

\newcommand{\ST}{\mbox{s.t.}}

%
%
%

\newcommand{\RA}{\rightarrow}

\newcommand{\RAP}{\\ \hspace{1cm} $\RA$}

%
%
%

\newcommand{\VArray}[2]{\left(\begin{array}{#1} #2 \end{array}\right)}
\newcommand{\tVec}[2]{\VArray{c}{#1 \\ #2}}
\newcommand{\TVec}[3]{\VArray{c}{#1 \\ #2 \\ #3}}
\newcommand{\TVecD}[3]{\VArray{c}{#1 \\ #2 \\ .. \\ #3}}
\newcommand{\TVecN}[1]{\TVecD{#1_1}{#1_2}{#1_n}}

\newcommand{\EAry}[4]{%
  \left(%
    \begin{array}{#1}%
      #2%
    \end{array}
  \right.\left|%
    \begin{array}{#3}%
      #4%
    \end{array}%
  \right)%
}

\newcommand{\EAryFE}[2]{\EAry{rrrr}{#1}{c}{#2}}

\newcommand{\POp}[3]{\overrightarrow{ (#1) #2 \times (#3) }}

\newcommand{\NAry}[2]{%
  \left|%
    \begin{array}{#1}%
      #2%
    \end{array}
  \right|%
}

\newcommand{\NAryF}[1]{\NAry{rrrr}{#1}}

\newcommand{\LSum}[2]{ #1_1 #2_1 + #1_2 #2_2 + .. #1_n #2_n }
\newcommand{\LSumCV}{\LSum{c}{v}} 

%
%
%

\newcommand{\DefVecSpace}[2]{%
演算を、次のように定めればよい。%
  \begin{description}%
    \item[(ベクトル和)] #1%
    \item[(スカラー倍)] #2%
  \end{description}%
}






